/* =============================================================================
   KOTOVA BOOKS · shared page system for kotova.io/books/*
   -----------------------------------------------------------------------------
   Load AFTER /styles.css. It builds on the site's dark navy/gold tokens
   (--color-*, --gradient-*, --spacing-*, --radius-*, --shadow-*, --font-*).

   Leak rules — keep this file safe to link from any page (the homepage does
   not link it: its Books section carries a trimmed copy of the rules it uses
   in /books/section.css, Part 1, so mock fixes made here must be copied
   there), so:
     • every class is prefixed bk- (page system) or scoped under .bk-app (app
       mock kit); app buttons are .abtn, never the site's .btn;
     • nothing styles bare elements, body or html;
     • :root only gains NEW custom properties (--bk-*), never redefines one.

   Navigation: the generated product nav of kotova.io (Kotova X and Kotova
   Books share it): scripts/generate-x-nav.mjs + scripts/books-nav.json fill
   <!--XNAV:START product=books current=…--> on every Books page; styles in
   /x/x.css (load it after /styles.css, before this file), behaviour in
   /x/x.js. It also sets the header's scroll padding (html:has(.xn-navbar)).

   Do NOT use these global hooks inside Books pages, script.js binds them:
     .service-card .visual-card .contact-item (fade-in), .stat-value (count-up),
     .provider-card .animated-cursor #demo-* (Kotova X demo),
     .faq-accordion .faq-item (single-open FAQ across the whole page).

   Sections
     0. Tokens + self-hosted mono font
     1.–2. (removed 26.11.2026: navbar and sub-navigation are the generated
           product nav, /x/x.css; section numbers kept for references)
     3. Page frame: offsets, sections, headings, text
     4. Hero
     5. Buttons and links
     6. Badges, chips, tags, coin marks
     7. Grids and cards (feature, module, stat, step)
     8. Split rows (text + visual)
     9. Lists, notes, fine print
    10. Segmented control (price book, billing)
    11. Plan cards (pricing)
    12. Tables and the plan comparison table
    13. FAQ accordion (details/summary, no JS)
    14. CTA band
    15. Browser frame + scaled screenshot (bk-frame, bk-shot)
    16. App mock kit (.bk-app): the Kotova Books app, dark theme
        16b. Review list ("Zu prüfen": .rv-*, .tag-mod, .conf, .ibx-create)
    17. State utilities (price book / billing interval / pending)
   ========================================================================== */


/* =============================================================================
   0. TOKENS + FONT
   ========================================================================== */

:root {
    /* Fixed header height: the product nav's two rows (x/x.css --xn-offset,
       which x.js re-measures and writes on <html>; 126-134px). Every first
       section pads by it. */
    --bk-offset: var(--xn-offset);

    --bk-surface: #151C2C;              /* = --color-background-card */
    --bk-surface-2: #1A2234;
    --bk-surface-3: #232D44;
    --bk-ink-2: #CDD5E2;                /* light body text on dark cards */
    --bk-line: rgba(255, 255, 255, 0.1);
    --bk-line-strong: rgba(255, 255, 255, 0.16);
    --bk-gold-tint: rgba(197, 165, 114, 0.1);
    --bk-gold-tint-2: rgba(197, 165, 114, 0.15);
    --bk-gold-line: rgba(197, 165, 114, 0.45);
    --bk-pos: #22D3AD;
    --bk-neg: #FF6B78;
    --bk-warn: #F5B82E;
    --bk-info: #5FB0FF;
    /* Page type: figures in Space Grotesk with tabular numerals (as the site
       sets the Kotova X prices), small uppercase labels in Inter. JetBrains
       Mono is the APP's mono: only inside .bk-app mocks (--f-mono there). */
    --bk-figures: var(--font-display);
    --bk-label: var(--font-primary);

    /* Module hues, identical to the Kotova Books app's dark theme. */
    --bk-m-exchange: #5AA8F7;
    --bk-m-payments: #2EC6AC;
    --bk-m-transfers: #8E8EF5;
    --bk-m-sales: #8FCB52;
    --bk-m-inventory: #F0AD3C;
    --bk-m-fleet: #C084EC;
    --bk-m-financial: #F472A6;
    --bk-m-invoices: #4CC3E6;
    --bk-m-payroll: #FF8A65;
    --bk-m-ledger: #93A3B8;
    --bk-m-ai: #4FA8FF;
}

/* JetBrains Mono (SIL OFL 1.1, books/fonts/OFL-JetBrainsMono.txt), latin
   subset, self-hosted (no extra <head> link; /books/section.css repeats
   these faces for the homepage mock). The app mocks use it (--f-mono);
   page text does not. Browsers download a face only when text uses it. */
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =============================================================================
   3. PAGE FRAME
   ========================================================================== */

/* Every scroll the browser makes on its own must clear the fixed header:
   keyboard focus moving up (Shift+Tab, when row 1 slides back in) would
   otherwise park the focused control under it (WCAG 2.2 SC 2.4.11), and
   native anchor jumps (/books/pricing#faq from another page) would hide the
   heading. x/x.css sets that scroll padding for every page with the product
   nav (html:has(.navbar.xn-navbar)). Fallback where :has() is missing: at
   least anchor targets clear it (not both: scroll-margin adds to
   scroll-padding). */
@supports not selector(:has(a)) {
    .bk-main [id] {
        scroll-margin-top: calc(var(--bk-offset) + var(--spacing-md));
    }
}

/* First block of a page that has no .bk-hero. */
.bk-first {
    padding-top: calc(var(--bk-offset) + var(--spacing-3xl));
}

.bk-section {
    position: relative;
    padding: var(--spacing-4xl) 0;
}

.bk-section--tight {
    padding: var(--spacing-3xl) 0;
}

.bk-section--flush-top {
    padding-top: 0;
}

/* Alternating band, same colour as the homepage About/Contact sections. */
.bk-section--alt {
    background: var(--color-background-light);
}

/* Soft navy-to-background wash, like services' detail sections. */
.bk-section--wash {
    background: linear-gradient(180deg, rgba(21, 28, 44, 0.55) 0%, var(--color-background) 100%);
}

.bk-container-narrow {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

/* Section heading block. Centred by default; --left for split layouts. */
.bk-head {
    max-width: 760px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.bk-head--left {
    margin-left: 0;
    text-align: left;
}

.bk-head--wide {
    max-width: 920px;
}

.bk-head .bk-lead {
    margin-top: var(--spacing-md);
}

/* Head with an action on the right (e.g. "Expand all"). */
.bk-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--spacing-md) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.bk-head-row .bk-head {
    margin: 0;
    flex: 1 1 520px;
}

.bk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.85rem;     /* = the site's .section-tag */
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.bk-eyebrow .bk-ico {
    width: 16px;
    height: 16px;
}

.bk-h1,
.bk-h2,
.bk-h3 {
    font-family: var(--font-display);
    color: var(--color-text-primary);
    text-wrap: balance;
}

.bk-h1 {
    font-size: clamp(2.25rem, 5.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.bk-h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;      /* tighter than .section-title (1.6): Books headings run to two lines */
    letter-spacing: normal; /* = the site's .section-title */
}

.bk-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Headlines: a word moves to the next line whole (no auto-hyphens, no
   mid-word breaks), only a word longer than the line may break. Matters for
   German at display size ("Steuerberater", "Buchungssätze"). */
.bk-h1, .bk-h1 span,
.bk-h2, .bk-h2 span,
.bk-h3, .bk-h3 span {
    word-break: normal;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}

/* Running text. styles.css hyphenates all body copy (hyphens:auto on p, li,
   span, a, td …), which splits English words ("con-fidence", "typ-ing") and
   short German ones ("Sum-me"). Books copy is English (also the fallback for
   it/es/fr/ru) or German: English wraps whole words, a word longer than its
   line still breaks (overflow-wrap stays on); German keeps hyphenation, but
   only for long compounds. The :where() wrappers keep this at the specificity
   of one class, so a page's own hyphenation rule always wins. */
:where(html:not(:lang(de))) .bk-main :where(p, li, span, a, b, strong, em, small, td, th, dt, dd, label) {
    -webkit-hyphens: manual;
    hyphens: manual;
}

:where(html:lang(de)) .bk-main :where(p, li, span, a, b, strong, em, small, td, th, dt, dd, label) {
    hyphenate-limit-chars: 10 4 4;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
}

/* Gold gradient words inside a headline. */
.bk-gold {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Marker-style highlight (the mock-up's <em> highlight in a headline). */
.bk-mark {
    font-style: normal;
    background: linear-gradient(transparent 64%, rgba(197, 165, 114, 0.35) 64%);
    padding: 0 0.08em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.bk-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    color: var(--color-text-secondary);
    text-wrap: pretty;
}

.bk-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    text-wrap: pretty;
}

.bk-text + .bk-text {
    margin-top: var(--spacing-md);
}

.bk-text strong,
.bk-lead strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.bk-muted {
    color: var(--color-text-secondary);   /* AA on the dark cards; muted (#5A6478) is for decoration only */
}

.bk-num {
    font-family: var(--bk-figures);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.bk-nowrap {
    white-space: nowrap;
}

/* Generic inline icon (inline Lucide SVG, landing-kit/icons.html). */
.bk-ico {
    width: 20px;
    height: 20px;
    flex: none;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .bk-section {
        padding: var(--spacing-3xl) 0;
    }

    .bk-section--tight {
        padding: var(--spacing-2xl) 0;
    }

    .bk-head {
        margin-bottom: var(--spacing-xl);
    }
}


/* =============================================================================
   4. HERO
   <section class="bk-hero [bk-hero--center|bk-hero--split]">
     <div class="container bk-hero-inner"> <div class="bk-hero-copy">…</div>
       [<div class="bk-hero-visual">…</div>] </div></section>
   ========================================================================== */

.bk-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--bk-offset) + 72px) 0 var(--spacing-4xl);
    background:
        radial-gradient(1100px 560px at 88% -12%, rgba(197, 165, 114, 0.11), transparent 62%),
        radial-gradient(900px 520px at -8% 0%, rgba(27, 43, 75, 0.75), transparent 70%),
        var(--color-background);
}

/* Faint dot grid, fading out downwards. */
.bk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
    pointer-events: none;
}

.bk-hero > .container {
    position: relative;
}

.bk-hero-inner {
    display: grid;
    gap: var(--spacing-3xl);
    align-items: center;
}

.bk-hero--split .bk-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.bk-hero--center .bk-hero-copy {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.bk-hero--center .bk-lead {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.bk-hero-copy .bk-h1 + .bk-lead {
    margin-top: var(--spacing-lg);
}

.bk-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.bk-hero--center .bk-hero-cta,
.bk-hero--center .bk-chips {
    justify-content: center;
}

.bk-hero-copy .bk-chips {
    margin-top: var(--spacing-xl);
}

.bk-hero-visual {
    min-width: 0;
}

@media (max-width: 1024px) {
    .bk-hero--split .bk-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    .bk-hero {
        padding: calc(var(--bk-offset) + 48px) 0 var(--spacing-3xl);
    }
}

@media (max-width: 480px) {
    .bk-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .bk-hero-cta .btn {
        width: 100%;
    }
}


/* =============================================================================
   5. BUTTONS AND LINKS
   Use the site buttons: .btn.btn-primary (gold) and .btn.btn-secondary
   (outline). These modifiers only add sizes and a ghost variant.
   ========================================================================== */

.bk-btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.bk-btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.bk-btn-block {
    width: 100%;
}

.bk-btn-ghost {
    background: transparent;
    color: var(--color-secondary);
    border: 1px solid transparent;
}

.bk-btn-ghost:hover {
    background: var(--bk-gold-tint);
}

.btn .bk-ico {
    width: 18px;
    height: 18px;
}

/* Scoped to Books content and the homepage Books section (copied into
   /books/section.css): the homepage's other buttons (hero, Kotova X,
   contact form) keep the site's focus style. */
.bk-main .btn:focus-visible,
.bks-section .btn:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.7);
    outline-offset: 3px;
}

/* Registration is not open yet (books.js §6): a control into the app keeps
   its design, dimmed and without its hover lift, and shows "Coming soon" on
   hover and focus (.kx-tip). It stays hoverable and focusable, so no
   pointer-events: none. */
.btn[data-bk-soon] {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary[data-bk-soon]:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary[data-bk-soon]:hover {
    border-color: var(--color-border-light);
    color: var(--color-text-primary);
}

/* Text link with an arrow ("Read more →"). */
.bk-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
}

.bk-link .bk-ico {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.bk-link:hover .bk-ico {
    transform: translateX(3px);
}

.bk-link:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.6);
    outline-offset: 3px;
    border-radius: 4px;
}


/* =============================================================================
   6. BADGES, CHIPS, TAGS, COIN MARKS
   ========================================================================== */

/* Gold status pill (like .hero-badge, smaller). */
.bk-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bk-gold-tint);
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.bk-badge .bk-ico {
    width: 14px;
    height: 14px;
}

/* "New" / "Live": green, with the site's pulsing dot. */
.bk-badge--new {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.bk-badge--solid {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-background);
}

.bk-badge--muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-border-light);
    color: var(--color-text-secondary);
}

.bk-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
    animation: pulse-glow 2s ease infinite;   /* keyframes in styles.css */
}

/* Feature chip (like .feature-pill). */
.bk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.bk-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    background: var(--color-background-card);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.bk-chip .bk-ico {
    width: 16px;
    height: 16px;
    color: var(--color-secondary);
}

/* Small uppercase label (column heads, card kickers). */
.bk-tag {
    display: inline-block;
    font-family: var(--bk-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

/* Coin / currency marks: <span class="bk-coin" data-coin="BTC" role="img"
   aria-label="BTC"></span>. The same marks serve .coin inside .bk-app. */
.bk-coin {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    background: center / contain no-repeat;
    vertical-align: middle;
}

.bk-coin--sm { width: 18px; height: 18px; }
.bk-coin--lg { width: 32px; height: 32px; }

.bk-coins {
    display: inline-flex;
}

.bk-coins > * + * {
    margin-left: -6px;
    box-shadow: 0 0 0 2px var(--color-background);
}

:is(.bk-coin, .bk-app .coin)[data-coin="BTC"]  { background-image: url("img/coins/BTC.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="ETH"]  { background-image: url("img/coins/ETH.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="SOL"]  { background-image: url("img/coins/SOL.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="BNB"]  { background-image: url("img/coins/BNB.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="HYPE"] { background-image: url("img/coins/HYPE.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="USDT"] { background-image: url("img/coins/USDT.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="USDC"] { background-image: url("img/coins/USDC.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="EURC"] { background-image: url("img/coins/EURC.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="TRX"]  { background-image: url("img/coins/TRX.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="XRP"]  { background-image: url("img/coins/XRP.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="LTC"]  { background-image: url("img/coins/LTC.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="POL"]  { background-image: url("img/coins/POL.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="ARB"]  { background-image: url("img/coins/ARB.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="USD"]  { background-image: url("img/coins/USD.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="EUR"]  { background-image: url("img/coins/EUR.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="GBP"]  { background-image: url("img/coins/GBP.svg"); }
:is(.bk-coin, .bk-app .coin)[data-coin="CHF"]  { background-image: url("img/coins/CHF.svg"); }


/* =============================================================================
   7. GRIDS AND CARDS
   ========================================================================== */

.bk-grid {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .bk-grid,
    .bk-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Two columns and an odd number of cards (the three on
       /books/accountants#collaboration): the last card takes the whole row
       instead of sitting alone beside an empty cell. */
    .bk-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .bk-grid,
    .bk-grid--2,
    .bk-grid--4 {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
    }
}

/* Card. Flex column so a .bk-card-foot sits at the bottom of equal-height
   cards. Make the whole card a link with <a class="bk-card bk-card--link">. */
.bk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 0;
    padding: var(--spacing-xl);
    background: var(--gradient-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.bk-card--link:hover,
.bk-card--link:focus-visible {
    border-color: rgba(197, 165, 114, 0.45);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bk-card--link:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.6);
    outline-offset: 3px;
}

.bk-card--hot {
    border-color: rgba(197, 165, 114, 0.5);
    background: linear-gradient(160deg, rgba(197, 165, 114, 0.1) 0%, rgba(21, 28, 44, 0.9) 45%);
}

.bk-card--flat {
    background: var(--color-background-card);
}

.bk-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--bk-gold-tint);
    color: var(--color-secondary);
    flex: none;
}

.bk-card-icon .bk-ico {
    width: 24px;
    height: 24px;
}

.bk-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-primary);
}

.bk-card-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.bk-card .bk-checks {
    margin-top: var(--spacing-sm);
}

.bk-card-foot {
    margin-top: auto;
    padding-top: var(--spacing-md);
}

/* Module card: a module hue (set with a .bk-m-* class) on the top edge and
   the icon tile — the same colour language as the app. */
.bk-card--module {
    --bk-mc: var(--color-secondary);
    border-top: 3px solid var(--bk-mc);
}

.bk-card--module .bk-card-icon {
    background: color-mix(in srgb, var(--bk-mc) 15%, transparent);
    color: var(--bk-mc);
}

.bk-m-exchange  { --bk-mc: var(--bk-m-exchange); }
.bk-m-payments  { --bk-mc: var(--bk-m-payments); }
.bk-m-transfers { --bk-mc: var(--bk-m-transfers); }
.bk-m-sales     { --bk-mc: var(--bk-m-sales); }
.bk-m-inventory { --bk-mc: var(--bk-m-inventory); }
.bk-m-fleet     { --bk-mc: var(--bk-m-fleet); }
.bk-m-financial { --bk-mc: var(--bk-m-financial); }
.bk-m-invoices  { --bk-mc: var(--bk-m-invoices); }
.bk-m-payroll   { --bk-mc: var(--bk-m-payroll); }
.bk-m-ledger    { --bk-mc: var(--bk-m-ledger); }
.bk-m-ai        { --bk-mc: var(--bk-m-ai); }
.bk-m-gold      { --bk-mc: var(--color-secondary); }

/* Hue dot / square used in lists and table rows: <i class="bk-dot bk-m-sales"></i> */
.bk-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--bk-mc, var(--color-secondary));
    flex: none;
}

/* Big-number strip. NOT .stat-value (script.js animates every .stat-value). */
.bk-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.bk-stat {
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    background: var(--color-background-card);
    border: 1px solid var(--color-border-light);
    min-width: 0;
}

.bk-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bk-stat-label {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
    .bk-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Numbered steps (connect → inbox → book → report). <ol class="bk-steps">
   <li class="bk-step"><span class="bk-step-n">1</span><div>…</div></li></ol> */
.bk-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(var(--bk-steps, 4), minmax(0, 1fr));
    gap: var(--spacing-lg);
    counter-reset: bk-step;
}

.bk-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 0;
}

.bk-step-n {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--spacing-sm);
    border-radius: 50%;
    border: 1px solid var(--bk-gold-line);
    background: var(--bk-gold-tint);
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Connector line between steps (desktop). */
.bk-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 52px;
    right: calc(-1 * var(--spacing-lg) + 12px);
    height: 1px;
    background: linear-gradient(90deg, var(--bk-gold-line), rgba(197, 165, 114, 0.08));
}

@media (max-width: 900px) {
    .bk-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-lg);
    }

    .bk-step {
        padding-left: 56px;
    }

    .bk-step-n {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

    .bk-step:not(:last-child)::after {
        top: 44px;
        bottom: calc(-1 * var(--spacing-lg) + 4px);
        left: 20px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, var(--bk-gold-line), rgba(197, 165, 114, 0.08));
    }
}


/* =============================================================================
   8. SPLIT ROWS (text + visual)
   DOM order is always copy first, visual second (that is the reading and
   mobile order). --reverse puts the visual on the LEFT above 1024px.
   ========================================================================== */

.bk-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-3xl);
    align-items: center;
}

.bk-split + .bk-split {
    margin-top: var(--spacing-4xl);
}

.bk-split--wide-visual {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.bk-split--reverse > .bk-split-visual {
    order: -1;
}

.bk-split--reverse.bk-split--wide-visual {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.bk-split-copy,
.bk-split-visual {
    min-width: 0;
}

.bk-split-copy .bk-h2 + .bk-text,
.bk-split-copy .bk-h2 + .bk-lead {
    margin-top: var(--spacing-md);
}

.bk-split-copy .bk-checks,
.bk-split-copy .bk-chips {
    margin-top: var(--spacing-lg);
}

.bk-split-copy .bk-hero-cta {
    margin-top: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .bk-split,
    .bk-split--wide-visual,
    .bk-split--reverse.bk-split--wide-visual {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-2xl);
    }

    .bk-split--reverse > .bk-split-visual {
        order: 0;
    }

    .bk-split + .bk-split {
        margin-top: var(--spacing-3xl);
    }
}


/* =============================================================================
   9. LISTS, NOTES, FINE PRINT
   ========================================================================== */

/* Check list: <ul class="bk-checks"><li>…</li></ul> (gold ticks). */
.bk-checks {
    list-style: none;
    display: grid;
    gap: 10px;
}

.bk-checks li {
    position: relative;
    padding-left: 30px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
}

.bk-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bk-gold-tint-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A572' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.bk-checks li strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.bk-checks--sm li {
    font-size: 0.875rem;
    padding-left: 26px;
}

.bk-checks--sm li::before {
    width: 17px;
    height: 17px;
    background-size: 10px 10px;
}

/* Callout. */
.bk-note {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: var(--color-background-card);
    border: 1px solid var(--color-border-light);
    border-left: 3px solid var(--color-secondary);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.bk-note .bk-ico {
    color: var(--color-secondary);
    margin-top: 2px;
}

.bk-note strong {
    color: var(--color-text-primary);
}

/* Fine print row under plan cards: <p class="bk-fine"><span>…</span>…</p> */
.bk-fine {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-lg);
    margin-top: var(--spacing-lg);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.bk-fine > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bk-fine .bk-ico {
    width: 15px;
    height: 15px;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .bk-fine {
        flex-direction: column;
    }
}


/* =============================================================================
   10. SEGMENTED CONTROL
   <div class="bk-seg" role="group" aria-label="Price book">
     <button type="button" class="bk-seg-btn" aria-pressed="true" data-bk-book="eu">
       <span class="bk-coin bk-coin--sm" data-coin="EUR" aria-hidden="true"></span>EU</button> …
   ========================================================================== */

.bk-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-lg);
    background: var(--color-background-card);
    border: 1px solid var(--color-border-light);
}

.bk-seg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.bk-seg-btn:hover {
    color: var(--color-text-primary);
}

.bk-seg-btn[aria-pressed="true"] {
    background: var(--bk-gold-tint-2);
    color: var(--color-secondary);
    box-shadow: inset 0 0 0 1px var(--bk-gold-line);
}

.bk-seg-btn:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.6);
    outline-offset: 2px;
}

/* "−15 %" saving tag inside a segment button. */
.bk-save {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: var(--radius-full);
    background: rgba(0, 212, 170, 0.14);
    color: var(--color-success);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

/* Labelled control group: label above (mobile) or beside (desktop). */
.bk-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm) var(--spacing-md);
}

.bk-control-label {
    font-family: var(--bk-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

@media (max-width: 480px) {
    .bk-seg {
        display: flex;
        width: 100%;
    }

    .bk-seg-btn {
        flex: 1 1 0;
        padding: 0 8px;
        min-height: 42px;
    }
}


/* =============================================================================
   11. PLAN CARDS
   Four columns >1100px, two to 640px, then one. Meter colours: legal
   entities = gold (brand), journal entries = ledger slate, AI documents =
   AI blue — the same order and colours as "Plan & Nutzung" in the app.
   ========================================================================== */

.bk-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-md);
    align-items: stretch;
}

.bk-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-width: 0;
    padding: 28px 22px 24px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
}

.bk-plan--hot {
    border-color: rgba(197, 165, 114, 0.65);
    background: linear-gradient(165deg, rgba(197, 165, 114, 0.12) 0%, rgba(21, 28, 44, 0.92) 42%);
    box-shadow: 0 0 0 1px rgba(197, 165, 114, 0.22), 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Centred on the top edge, one line ("Popular with crypto companies" /
   "Beliebt bei Krypto-GmbHs" fit a 250px card). */
.bk-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.bk-plan-badge .bk-ico {
    width: 13px;
    height: 13px;
}

.bk-plan-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.bk-plan-for {
    margin-top: 4px;
    min-height: 2.9em;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.bk-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.bk-plan-amt {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--color-text-primary);
}

/* "ab" / "from" before a plan's price (Plans v4: every price starts there). */
.bk-plan-from {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.bk-plan-per {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* Yearly equivalent under the price, one line each:
   <div class="bk-plan-alt"><span>€25.49 / mo billed yearly</span>
     <span class="bk-plan-save">save €54.00 a year</span></div>
   Free: <span>Free forever</span><b>no credit card</b> */
.bk-plan-alt {
    margin-top: -6px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.bk-plan-alt > span,
.bk-plan-alt > b {
    display: block;
}

.bk-plan-alt > b {
    font-weight: 600;
    color: var(--bk-ink-2);
}

.bk-plan-save {
    font-weight: 600;
    color: var(--color-success);
}

.bk-plan .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
}

/* The three meters. */
.bk-meters {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--color-border-light);
}

.bk-meter {
    --bk-mc: var(--color-secondary);
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    min-width: 0;
}

.bk-meter-ico {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bk-mc) 16%, transparent);
    color: var(--bk-mc);
}

.bk-meter-ico .bk-ico {
    width: 16px;
    height: 16px;
}

.bk-meter-val {
    font-family: var(--bk-figures);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.bk-meter-label {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--color-text-secondary);
}

.bk-meter-hint {
    display: block;
    font-size: 0.74rem;
    color: var(--color-text-secondary);   /* AA on the dark cards; muted (#5A6478) is for decoration only */
}

.bk-meter--entity { --bk-mc: var(--color-secondary); }
.bk-meter--entries { --bk-mc: var(--bk-m-ledger); }
.bk-meter--ai { --bk-mc: var(--bk-m-ai); }
.bk-meter--seats { --bk-mc: var(--bk-m-payroll); }
.bk-meter--sources { --bk-mc: var(--bk-m-transfers); }

/* Top-ups ("Monthly top-ups, no upgrade"). */
.bk-topup-h {
    margin-bottom: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bk-ink-2);
}

.bk-topup-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--spacing-sm);
    padding: 6px 0;
    border-bottom: 1px dashed var(--bk-line-strong);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.bk-topup-row:last-child {
    border-bottom: 0;
}

.bk-topup-row b {
    font-family: var(--bk-figures);
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.bk-topup-row b.is-na {
    font-weight: 500;
    color: var(--color-text-secondary);   /* AA on the dark cards; muted (#5A6478) is for decoration only */
}

.bk-plan-feat {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
}

@media (max-width: 1100px) {
    .bk-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-lg) var(--spacing-md);
    }

    .bk-plan-for {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .bk-plans {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-xl);
    }
}


/* =============================================================================
   12. TABLES
   <div class="bk-table-wrap"><table class="bk-table">…</table></div>
   Numbers: <td class="is-num">. Highlighted column: .is-hot on th and td.
   ========================================================================== */

.bk-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    background: var(--color-background-card);
    -webkit-overflow-scrolling: touch;
}

.bk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
    color: var(--bk-ink-2);
}

.bk-table caption {
    caption-side: bottom;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.bk-table th {
    padding: 14px 16px;
    text-align: left;
    vertical-align: bottom;
    font-family: var(--bk-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--bk-line-strong);
    white-space: nowrap;
}

.bk-table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border-light);
}

/* No rule under the table's last row. Only the LAST tbody: a table that
   splits its rows into groups (one tbody each, like .bk-cmp) keeps the
   separator between them. Same specificity as a plain "tbody tr td". */
.bk-table tbody:where(:last-child) tr:last-child td {
    border-bottom: 0;
}

.bk-table td:first-child {
    color: var(--color-text-primary);
}

.bk-table .is-num {
    text-align: right;
    font-family: var(--bk-figures);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bk-table .is-center {
    text-align: center;
}

.bk-table .is-hot {
    background: rgba(197, 165, 114, 0.06);
}

.bk-table th.is-hot {
    color: var(--color-secondary);
    box-shadow: inset 0 3px 0 var(--color-secondary);
}

.bk-table-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
    white-space: normal;
}

/* Yes / no marks: <span class="bk-yes" role="img" aria-label="Included"></span> */
.bk-yes,
.bk-no {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background: center / 18px 18px no-repeat;
}

.bk-yes {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D4AA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* #6B758A: quieter than the check, still >= 3:1 on every card (SC 1.4.11). */
.bk-no {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B758A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
    background-size: 16px 16px;
}

/* --- Plan comparison table --------------------------------------------------
   <div class="bk-table-wrap bk-cmp-wrap"><table class="bk-table bk-cmp">
     <colgroup><col class="bk-cmp-f"><col><col><col class="is-hot"><col></colgroup>
     <thead><tr><th>Feature</th><th>Free<small>€0</small></th>…</tr></thead>
     <tbody> <tr class="bk-cmp-group"><td colspan="5"><button class="bk-cmp-toggle"
        aria-expanded="true" aria-controls="cmp-modules">…</button></td></tr> </tbody>
     <tbody id="cmp-modules"> …rows… </tbody>
   Group bodies can be collapsed by books.js ([data-bk-toggle]) or left open.
   The first column sticks while the table scrolls sideways on phones. */
.bk-cmp {
    table-layout: fixed;
    min-width: 640px;
}

.bk-cmp .bk-cmp-f {
    width: 34%;
}

.bk-cmp thead th {
    text-align: center;
    vertical-align: bottom;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--color-text-primary);
}

.bk-cmp thead th:first-child {
    text-align: left;
    font-family: var(--bk-label);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.bk-cmp thead th small {
    display: block;
    margin-top: 3px;
    font-family: var(--bk-figures);
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0;
}

.bk-cmp thead th.is-hot,
.bk-cmp thead th.is-hot small {
    color: var(--color-secondary);
}

.bk-cmp td {
    text-align: center;
    font-size: 0.9rem;
}

.bk-cmp td:first-child {
    text-align: left;
}

.bk-cmp .bk-cmp-val {
    font-family: var(--bk-figures);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.bk-cmp td .bk-cmp-note {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

.bk-cmp-feat {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
}

.bk-cmp-group td {
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.875rem;
}

.bk-cmp-group td.is-hot {
    background: rgba(197, 165, 114, 0.08);
}

.bk-cmp-group b {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.bk-cmp-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 4px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bk-cmp-toggle .bk-ico {
    width: 16px;
    height: 16px;
    color: var(--color-text-secondary);
    transition: transform var(--transition-fast);
}

.bk-cmp-toggle[aria-expanded="false"] .bk-ico {
    transform: rotate(-90deg);
}

.bk-cmp-toggle:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* "Same on every plan" summary cell. */
.bk-cmp td.bk-cmp-same {
    text-align: left;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.bk-cmp th:first-child,
.bk-cmp td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--color-background-card);
}

/* Opaque equivalents of the translucent header / group fills over the card
   colour, so the sticky column matches its row while content slides under. */
.bk-cmp thead th:first-child {
    background: #1A2130;
}

.bk-cmp .bk-cmp-group td:first-child {
    background: #1D2433;
}

/* Phones: a narrower sticky feature column so more plan columns show while
   the table scrolls sideways. */
@media (max-width: 640px) {
    .bk-cmp {
        min-width: 560px;
    }

    .bk-cmp .bk-cmp-f {
        width: 150px;
    }

    .bk-cmp th,
    .bk-cmp td {
        padding: 12px 10px;
    }

    .bk-cmp td:first-child,
    .bk-cmp th:first-child {
        padding-left: 14px;
    }
}


/* =============================================================================
   13. FAQ ACCORDION — native <details>, independent of script.js
   <div class="bk-faq">
     <details class="bk-faq-item" name="bk-faq" open>
       <summary class="bk-faq-q"><span class="bk-faq-n">1</span>
         <span class="bk-faq-t" data-i18n="books.pricing.faq.q1">…</span>
         <span class="bk-faq-icon" aria-hidden="true"></span></summary>
       <div class="bk-faq-a"><p data-i18n="books.pricing.faq.a1">…</p></div>
     </details> …
   name="bk-faq" makes it single-open where supported; drop it for multi-open.
   ========================================================================== */

.bk-faq {
    max-width: 860px;
    margin: 0 auto;
    interpolate-size: allow-keywords;
}

.bk-faq-item {
    border-bottom: 1px solid var(--color-border-light);
}

.bk-faq-item:first-child {
    border-top: 1px solid var(--color-border-light);
}

.bk-faq-q {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-sm);
    cursor: pointer;
    list-style: none;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.bk-faq-q::-webkit-details-marker {
    display: none;
}

.bk-faq-q:hover {
    color: var(--color-secondary);
}

.bk-faq-q:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.6);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}

.bk-faq-n {
    min-width: 2rem;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.bk-faq-item[open] .bk-faq-n {
    color: var(--color-secondary);
}

.bk-faq-t {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
}

.bk-faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border-light);
    color: var(--color-text-muted);
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.bk-faq-icon::before,
.bk-faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    border-radius: 1px;
    background: currentColor;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.bk-faq-icon::after {
    transform: rotate(90deg);
}

.bk-faq-item[open] .bk-faq-icon {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: var(--bk-gold-tint);
}

.bk-faq-item[open] .bk-faq-icon::after {
    transform: rotate(90deg) scaleX(0);
    opacity: 0;
}

.bk-faq-a {
    padding: 0 var(--spacing-sm) var(--spacing-lg) calc(2rem + var(--spacing-lg) + var(--spacing-sm));
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.bk-faq-a p + p,
.bk-faq-a p + .bk-table-wrap,
.bk-faq-a .bk-table-wrap + p {
    margin-top: var(--spacing-md);
}

.bk-faq-a strong {
    color: var(--color-text-primary);
}

/* Smooth open/close where ::details-content is supported (in its own rule:
   a browser that does not know the pseudo-element drops only this). */
.bk-faq-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size var(--transition-normal), content-visibility var(--transition-normal) allow-discrete;
}

.bk-faq-item[open]::details-content {
    block-size: auto;
}

@media (max-width: 768px) {
    .bk-faq-q {
        gap: var(--spacing-md);
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .bk-faq-n {
        min-width: 1.5rem;
        font-size: 1.35rem;
    }

    .bk-faq-t {
        font-size: 0.97rem;
    }

    .bk-faq-icon {
        width: 32px;
        height: 32px;
    }

    .bk-faq-a {
        padding-left: calc(1.5rem + var(--spacing-md) + var(--spacing-xs));
        font-size: 0.92rem;
    }
}

@media (max-width: 400px) {
    .bk-faq-a {
        padding-left: var(--spacing-xs);
    }
}


/* =============================================================================
   14. CTA BAND
   <div class="bk-band"><div class="bk-band-copy"><h2 class="bk-h2">…</h2>
     <p class="bk-text">…</p></div><div class="bk-band-actions">…</div></div>
   ========================================================================== */

.bk-band {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg) var(--spacing-2xl);
    padding: 44px 48px;
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(197, 165, 114, 0.18), transparent 55%),
        linear-gradient(145deg, rgba(27, 43, 75, 0.75) 0%, rgba(21, 28, 44, 0.95) 100%);
    border: 1px solid rgba(197, 165, 114, 0.35);
    overflow: hidden;
}

.bk-band-copy {
    flex: 1 1 460px;
    min-width: 0;
}

.bk-band-copy .bk-text {
    margin-top: var(--spacing-sm);
}

.bk-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

@media (max-width: 640px) {
    .bk-band {
        padding: 32px 24px;
    }

    .bk-band-actions,
    .bk-band-actions .btn {
        width: 100%;
    }
}


/* =============================================================================
   15. BROWSER FRAME + SCALED SCREENSHOT
   <figure class="bk-frame">
     <div class="bk-frame-bar"><span class="bk-frame-dots"><i></i><i></i><i></i></span>
       <span class="bk-frame-url"><svg …lock…/>books.kotova.io/financial</span></div>
     <div class="bk-shot" style="--bk-shot-w: 1000; --bk-shot-h: 700">
       <div class="bk-shot-in"><div class="bk-app">…app markup at 1000 x 700…</div></div>
     </div>
   </figure>
   .bk-shot lays its content out at a fixed design size (unitless px numbers
   in --bk-shot-w / --bk-shot-h) and scales it to the available width with
   CSS only: scale = 100cqw / design width, written tan(atan2(…)) because
   calc() cannot divide a length by a length. The frame bar stays at real
   size. Change the design size per breakpoint to keep text legible; the
   app's container queries (section 16) re-lay out at the new width.
   ========================================================================== */

.bk-frame {
    width: 100%;
    margin: 0;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0A0F1C;
    box-shadow: var(--shadow-xl);
}

.bk-frame-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-background-card);
    border-bottom: 1px solid var(--color-border-light);
}

.bk-frame-dots {
    display: flex;
    gap: 6px;
    flex: none;
}

.bk-frame-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F57;
}

.bk-frame-dots i:nth-child(2) { background: #FFBD2E; }
.bk-frame-dots i:nth-child(3) { background: #28C840; }

.bk-frame-url {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-background);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-frame-url svg {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--color-success);
}

.bk-shot {
    --bk-shot-w: 1000;
    --bk-shot-h: 700;
    position: relative;
    width: 100%;
    aspect-ratio: var(--bk-shot-w) / var(--bk-shot-h);
    overflow: hidden;
    container-type: inline-size;
}

.bk-shot-in {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--bk-shot-w) * 1px);
    height: calc(var(--bk-shot-h) * 1px);
    transform-origin: 0 0;
    transform: scale(tan(atan2(100cqw, calc(var(--bk-shot-w) * 1px))));
}

.bk-shot-in > .bk-app {
    height: 100%;
}

/* Fade the bottom edge: suggests the screen continues. */
.bk-shot--fade .bk-shot-in {
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

/* Browsers without trigonometric functions: show the mock unscaled and let
   it scroll sideways instead of overflowing. */
@supports not (transform: scale(tan(atan2(1px, 1px)))) {
    .bk-shot {
        aspect-ratio: auto;
        overflow-x: auto;
    }

    .bk-shot-in {
        position: static;
        transform: none;
    }
}

@media (max-width: 480px) {
    .bk-frame-bar {
        padding: 6px var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .bk-frame-dots i {
        width: 9px;
        height: 9px;
    }

    .bk-frame-url {
        font-size: 0.75rem;
        padding: 3px var(--spacing-sm);
    }
}


/* =============================================================================
   16. APP MOCK KIT — Kotova Books app, dark theme (the app's design tokens)
   Everything is scoped under .bk-app, which also defines the app's own tokens,
   so markup can be transcribed from the mock-ups with the same class names
   (card, kpi, pill, tbl, meter, coin, tabs, seg, lrow …). Icons: inline
   Lucide <svg class="lucide"> (landing-kit/icons.html) where the mock-ups
   have <i data-lucide>. Coins: <span class="coin" data-coin="BTC"></span>.
   Responsive by CONTAINER (.bk-app is container "bkapp"), like the mock-ups'
   device frames: >1100 desktop · 601–1100 tablet (icon rail) · <=600 phone.
   ========================================================================== */

.bk-app {
    /* ---- app tokens (dark) ---- */
    --canvas: #0A0F1C;
    --surface: #131A2A;
    --surface-2: #1A2234;
    --surface-3: #232D44;
    --overlay: #161E30;
    --ink: #F3F6FB;
    --ink-2: #CDD5E2;
    --ink-3: #9CA6B8;
    --ink-4: #6B758A;
    --hairline: rgba(255, 255, 255, 0.09);
    --hairline-strong: rgba(255, 255, 255, 0.16);
    --navy: #1B2B4B;
    --primary: #D9B472;
    --primary-hover: #E6C58A;
    --on-primary: #0A0F1C;
    --gold: #C5A572;
    --gold-ink: #D9B472;
    --focus: #D9B472;
    --pos: #22D3AD;
    --neg: #FF6B78;
    --warn: #F5B82E;
    --info: #5FB0FF;
    --mark-pos: #00D4AA;
    --mark-neg: #FF4757;
    --mark-warn: #F5B82E;
    --mark-info: #4FA8FF;
    --m-exchange: #5AA8F7;
    --m-payments: #2EC6AC;
    --m-transfers: #8E8EF5;
    --m-sales: #8FCB52;
    --m-inventory: #F0AD3C;
    --m-fleet: #C084EC;
    --m-financial: #F472A6;
    --m-invoices: #4CC3E6;
    --m-payroll: #FF8A65;
    --m-ledger: #93A3B8;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
    /* the app's current dark tokens (tokens.css, app-shell.css 5f, ai-assist.css) */
    --canvas-elevated: #0E1424;          /* posting bar */
    --overlay-active: #52689A;           /* selected row in a popup */
    --hairline-overlay: rgba(255, 255, 255, 0.35);
    --field: rgb(0 0 0 / 0.22);          /* input ground, over --surface */
    --fill-neg: #FF4757;                 /* red fills: count badge */
    --on-neg: #0A0F1C;
    --tint-pos: #123940;
    --tint-neg: #3A2333;
    --tint-warn: #39352C;
    --tint-info: #1E324E;
    --tint-accent: #332F26;
    --ai: var(--m-exchange);             /* AI azure: chat, Ausfüllen, Entwurf */
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
    --f-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
    --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;

    container: bkapp / inline-size;
    position: relative;
    display: block;
    overflow: hidden;
    color-scheme: dark;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
    -webkit-user-select: none;
    user-select: none;
}

/* Undo the site's global text rules inside the app (break-word + auto
   hyphens would split figures and labels). */
.bk-app *,
.bk-app *::before,
.bk-app *::after {
    box-sizing: border-box;
}

.bk-app :where(p, li, h1, h2, h3, h4, h5, h6, span, a, td, th, label, dt, dd, b, small, div) {
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.bk-app :where(h1, h2, h3, h4, p, dl, dd, ul, ol, figure) {
    margin: 0;
}

.bk-app :where(ul, ol) {
    padding: 0;
    list-style: none;
}

.bk-app a {
    color: inherit;
    text-decoration: none;
}

.bk-app table {
    border-collapse: collapse;
}

.bk-app svg.lucide {
    width: 16px;
    height: 16px;
    flex: none;
}

/* ---- shell: sidebar + main ---- */
.bk-app .shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100%;
    height: 100%;
}

/* <div class="shell bare">: no sidebar (more room for content in a small mock). */
.bk-app .shell.bare {
    grid-template-columns: minmax(0, 1fr);
}

.bk-app .shell.bare > .side {
    display: none;
}

.bk-app .side {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 10px;
    background: var(--surface);
    border-right: 1px solid var(--hairline);
    overflow: hidden;
}

.bk-app .side .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 14px;
}

/* The Kotova Books icon (navy tile, gold book), as in the app's sidebar since 26.11.2026. */
.bk-app .brand-mark {
    display: block;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--navy) url("https://cdn.kotova.io/images/brand/kotova-books/icon.svg") center / cover no-repeat;
}

/* "Organisation {name}" is cut with an ellipsis, as in the app. */
.bk-app .brand-name {
    min-width: 0;
    font: 600 15px/1.2 var(--f-display);
    color: var(--ink);
    white-space: nowrap;
}

.bk-app .brand-name small {
    display: block;
    font: 500 11px/1.3 var(--f-body);
    color: var(--ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Group headings in --ink-3 (app-shell.css overrides the sketch's --ink-4). */
.bk-app .side .grp {
    padding: 14px 10px 6px;
    font: 600 10.5px var(--f-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.bk-app .nav-i {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.25;
}

.bk-app .nav-i.on {
    background: color-mix(in srgb, var(--mc, var(--primary)) 13%, var(--surface));
    color: var(--ink);
    font-weight: 600;
}

.bk-app .nav-i.on::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--mc, var(--primary));
}

.bk-app .nav-i svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--mc, var(--ink-3));
}

.bk-app .nav-i .lbl {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Open-item count: the red fill pair (app-shell.css; white on --neg failed
   contrast in dark). */
.bk-app .nav-i .cnt {
    padding: 1px 7px;
    border-radius: 99px;
    background: var(--fill-neg);
    color: var(--on-neg);
    font: 600 11px var(--f-mono);
}

.bk-app .side-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
    display: grid;
    gap: 2px;
}

/* Plan meter in the sidebar foot (hidden on the rail, see the container
   rules). Text, then a 7 px .meter (gold fill below 80 %):
   <div class="plan-chip"><span><b>Business</b> · 47 / 1.000 Buchungssätze</span>
     <span class="meter"><i style="width:4.7%"></i></span></div> */
.bk-app .plan-chip {
    display: block;
    margin: 8px 6px 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--surface-2);
    font-size: 12.5px;
    color: var(--ink-2);
}

.bk-app .plan-chip b {
    color: var(--ink);
}

.bk-app .plan-chip .meter {
    display: block;
    margin-top: 6px;
}

/* position: relative anchors absolutely placed parts (the posting bar). */
.bk-app .mainc {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bk-app .top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 10px 28px;
    background: color-mix(in srgb, var(--canvas) 80%, var(--surface));
    border-bottom: 1px solid var(--hairline);
}

.bk-app .top .search {
    flex: 1;
    max-width: 460px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-4);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
}

.bk-app .top .search > span:not(.kbd) {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.bk-app .top .search .kbd {
    margin-left: auto;
}

.bk-app .ent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border-radius: 8px;
    border: 1px solid var(--hairline-strong);
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.bk-app .ent .ent-ico {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--navy);
    color: var(--gold);
}

.bk-app .ent .ent-ico svg {
    width: 14px;
    height: 14px;
}

.bk-app .ent > svg {
    width: 14px;
    height: 14px;
    color: var(--ink-4);
}

.bk-app .avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font: 600 13px var(--f-body);
}

/* Profile button at the right end of the top bar: avatar + chevron-down.
   <span class="prof"><span class="avatar">LH</span>[chevron-down]</span> */
.bk-app .prof {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

.bk-app .prof > svg {
    width: 14px;
    height: 14px;
    color: var(--ink-4);
}

.bk-app .icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--hairline-strong);
    background: var(--surface);
    color: var(--ink-2);
}

.bk-app .icon-btn svg {
    width: 18px;
    height: 18px;
}

.bk-app .icon-btn .notif-dot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neg);
    border: 2px solid var(--surface);
}

/* Small icon button (the app's .btn.btn-sm.btn-icon: ⋯ row menu, ↑/↓ in
   the review queue bar). */
.bk-app .icon-btn.sm {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.bk-app .icon-btn.sm svg {
    width: 16px;
    height: 16px;
}

.bk-app .kbd {
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--hairline-strong);
    background: var(--surface-2);
    color: var(--ink-3);
    font: 500 11px var(--f-mono);
}

.bk-app .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 24px 28px 48px;
}

.bk-app .mtop,
.bk-app .bnav {
    display: none;
}

/* ---- page header ---- */
.bk-app .page-h {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 20px;
}

.bk-app .page-h .ph-t {
    flex: 1 1 320px;
    min-width: 0;
}

.bk-app .eyebrow {
    font: 600 11px var(--f-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

/* Use <div class="h1"> (not <h1>) in a mock embedded in a marketing page, so
   the page keeps a single real <h1>. */
.bk-app .page-h :is(h1, .h1) {
    margin-top: 4px;
    font: 600 28px/1.15 var(--f-display);
    letter-spacing: -0.02em;
}

.bk-app .page-h .ph-d {
    margin-top: 6px;
    max-width: 72ch;
    color: var(--ink-2);
    font-size: 14.5px;
}

.bk-app .page-h .ph-a {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ---- text helpers ---- */
.bk-app .sec { font: 600 17px var(--f-display); letter-spacing: -0.01em; }
.bk-app .muted { color: var(--ink-3); }
.bk-app .small { font-size: 13px; }
.bk-app .xs { font-size: 12px; }
.bk-app .num,
.bk-app .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bk-app .num { white-space: nowrap; }
.bk-app .pos { color: var(--pos); }
.bk-app .neg { color: var(--neg); }
.bk-app .warn { color: var(--warn); }
.bk-app .info { color: var(--info); }
.bk-app .strong { font-weight: 600; }
.bk-app .strong:not(.pos):not(.neg):not(.warn):not(.info) { color: var(--ink); }
.bk-app .trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---- layout helpers ---- */
.bk-app .row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bk-app .row.wrap { flex-wrap: wrap; }
.bk-app .sp { flex: 1; }
.bk-app .stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bk-app .grid { display: grid; gap: 16px; min-width: 0; }
.bk-app .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-app .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-app .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- card ---- */
.bk-app .card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

.bk-app .card-h {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hairline);
}

.bk-app .card-h .ct {
    margin: 0;
    font: 600 15.5px var(--f-display);
    letter-spacing: -0.01em;
}

.bk-app .card-h .cd {
    flex-basis: 100%;
    margin: -4px 0 0;
    font-size: 13px;
    color: var(--ink-3);
}

.bk-app .card-h .ca {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

.bk-app .card-b { padding: 16px 18px; }
.bk-app .card-b.flush { padding: 0; }

.bk-app .card-f {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--ink-3);
}

.bk-app .card.mod { border-top: 3px solid var(--mc, var(--primary)); }
.bk-app .card.tinted { background: color-mix(in srgb, var(--mc, var(--primary)) 6%, var(--surface)); }

/* ---- buttons: .abtn, never the site's .btn (styles.css gives .btn its
   padding, hover lift and transition, and .badge-dot a pulse; app markup
   uses .abtn / .abtn-primary / .abtn-ghost / .abtn-sm and .notif-dot so no
   global rule reaches into a mock) ---- */
.bk-app .abtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: default;
    transform: none;
    box-shadow: none;
    transition: none;
}

.bk-app .abtn:hover {
    transform: none;
    box-shadow: none;
}

.bk-app .abtn svg { width: 16px; height: 16px; flex: none; }
.bk-app .abtn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.bk-app .abtn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.bk-app .abtn-sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }

/* ---- pills ---- */
.bk-app .pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 99px;
    background: var(--surface-3);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.bk-app .pill svg { width: 13px; height: 13px; flex: none; }
.bk-app .pill .dot,
.bk-app .dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bk-app .pill.pos { background: color-mix(in srgb, var(--mark-pos) 15%, var(--surface)); color: var(--pos); }
.bk-app .pill.neg { background: color-mix(in srgb, var(--mark-neg) 14%, var(--surface)); color: var(--neg); }
.bk-app .pill.warn { background: color-mix(in srgb, var(--mark-warn) 17%, var(--surface)); color: var(--warn); }
.bk-app .pill.info { background: color-mix(in srgb, var(--mark-info) 14%, var(--surface)); color: var(--info); }
.bk-app .pill.gold { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); color: var(--gold-ink); }
.bk-app .pill.mod { background: color-mix(in srgb, var(--mc, var(--m-ledger)) 14%, var(--surface)); color: var(--mc, var(--m-ledger)); }
.bk-app .pill.outline { background: transparent; border: 1px solid var(--hairline-strong); color: var(--ink-2); font-weight: 500; }

/* Hedge status badges (Derivate › Netto-Positionen): white = hedged > 90 %,
   yellow = hedged 85–90 %, green .pos = long, red .neg = net short. */
.bk-app .pill.net-w { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); color: var(--gold-ink); }
.bk-app .pill.net-y { background: var(--surface-3); color: var(--ink-2); }

.bk-app .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 99px;
    border: 1px solid var(--hairline-strong);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    white-space: nowrap;
}

.bk-app .chip svg { width: 14px; height: 14px; }
.bk-app .chip.on {
    background: color-mix(in srgb, var(--mc, var(--primary)) 12%, var(--surface));
    border-color: color-mix(in srgb, var(--mc, var(--primary)) 45%, transparent);
    color: var(--ink);
    font-weight: 600;
}

/* ---- module hooks + icon tile ---- */
.bk-app .m-exchange { --mc: var(--m-exchange); }
.bk-app .m-payments { --mc: var(--m-payments); }
.bk-app .m-transfers { --mc: var(--m-transfers); }
.bk-app .m-sales { --mc: var(--m-sales); }
.bk-app .m-inventory { --mc: var(--m-inventory); }
.bk-app .m-fleet { --mc: var(--m-fleet); }
.bk-app .m-financial { --mc: var(--m-financial); }
.bk-app .m-invoices { --mc: var(--m-invoices); }
.bk-app .m-payroll { --mc: var(--m-payroll); }
.bk-app .m-ledger { --mc: var(--m-ledger); }
/* The root itself can carry a module hook: <div class="bk-app m-financial"> */
.bk-app.m-financial { --mc: var(--m-financial); }
.bk-app.m-ledger { --mc: var(--m-ledger); }

.bk-app .mi {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--mc, var(--primary)) 14%, var(--surface));
    color: var(--mc, var(--primary));
}

.bk-app .mi svg { width: 18px; height: 18px; }
.bk-app .mi.sm { width: 26px; height: 26px; border-radius: 7px; }
.bk-app .mi.sm svg { width: 15px; height: 15px; }

/* ---- tabs + segmented ---- */
.bk-app .tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--hairline-strong);
    overflow: hidden;
}

.bk-app .tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: -1px;
    padding: 9px 14px;
    border-bottom: 2px solid transparent;
    color: var(--ink-3);
    font-size: 14px;
    white-space: nowrap;
}

.bk-app .tab svg { width: 16px; height: 16px; flex: none; }
.bk-app .tab.on { color: var(--ink); border-bottom-color: var(--mc, var(--primary)); font-weight: 600; }
.bk-app .tab .n { padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font: 600 11px var(--f-mono); }

.bk-app .seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
}

.bk-app .seg > * {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    color: var(--ink-3);
    font-size: 13px;
    white-space: nowrap;
}

.bk-app .seg > .on { background: var(--surface-3); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }

/* ---- tables ---- */
.bk-app .tbl-wrap { overflow: hidden; min-width: 0; }

.bk-app .tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bk-app .tbl th {
    padding: 10px 12px;
    text-align: left;
    font: 600 11px var(--f-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--hairline-strong);
    white-space: nowrap;
}

.bk-app .tbl td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--hairline);
}

.bk-app .tbl tr:last-child td { border-bottom: 0; }
.bk-app .tbl .num,
.bk-app .tbl th.num { text-align: right; }
.bk-app .tbl tr.sel td { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.bk-app .tbl tr.grp td { background: var(--surface-2); font-weight: 600; font-size: 13px; }
.bk-app .tbl tr.sum td { border-top: 1px solid var(--hairline-strong); font-weight: 600; }
.bk-app .tbl tr.dim td { color: var(--ink-4); }
.bk-app .tbl td .sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.bk-app .tbl.compact td,
.bk-app .tbl.compact th { padding: 7px 10px; }

/* ---- list rows (phone alternative to tables) ---- */
.bk-app .lrow {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hairline);
}

.bk-app .lrow:last-child { border-bottom: 0; }
.bk-app .lrow .lmain { flex: 1; min-width: 0; }
.bk-app .lrow .lt { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-app .lrow .ls { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-app .lrow .lr { flex: none; text-align: right; }

/* ---- KPI tiles ---- */
.bk-app .kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 14px 16px;
}

.bk-app .kpi .kl {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-3);
}

.bk-app .kpi .kl svg { width: 14px; height: 14px; color: var(--mc, var(--ink-3)); }

.bk-app .kpi .kv {
    font: 600 24px/1.2 var(--f-display);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bk-app .kpi .kv.warn { color: var(--warn); }
.bk-app .kpi .kd { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.bk-app .kpi .spark { height: 34px; margin-top: 4px; }
.bk-app .kpi .spark svg { display: block; width: 100%; height: 34px; overflow: visible; }

/* ---- meters ---- */
.bk-app .meter {
    height: 7px;
    border-radius: 99px;
    background: var(--surface-3);
    overflow: hidden;
}

.bk-app .meter > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--mc, var(--primary));
}

.bk-app .meter.pos > i { background: var(--mark-pos); }
.bk-app .meter.warn > i { background: var(--mark-warn); }
.bk-app .meter.neg > i { background: var(--mark-neg); }

/* ---- brand + coin marks ---- */
.bk-app .logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    color: #FFF;
    font: 700 12px var(--f-display);
}

.bk-app .coin {
    display: inline-block;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: center / contain no-repeat;
}

.bk-app .coin.sm { width: 18px; height: 18px; }
.bk-app .stackc { display: inline-flex; }
.bk-app .stackc > * + * { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }

/* ---- journal preview (Soll / Haben) ---- */
.bk-app .jrnl { width: 100%; border-collapse: collapse; font-size: 13px; }
.bk-app .jrnl th { padding: 6px 8px; text-align: left; font: 600 10.5px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--hairline-strong); }
.bk-app .jrnl td { padding: 7px 8px; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.bk-app .jrnl .num { text-align: right; }
.bk-app .jrnl .acc { margin-right: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.bk-app .jrnl tr.tot td { border-top: 1.5px solid var(--ink-2); border-bottom: 0; font-weight: 600; }
.bk-app .balanced { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--pos); }
.bk-app .balanced svg { width: 15px; height: 15px; }

/* ---- banner + legend ---- */
.bk-app .banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid;
    font-size: 14px;
    color: var(--ink-2);
}

.bk-app .banner > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.bk-app .banner.info { background: color-mix(in srgb, var(--mark-info) 8%, var(--surface)); border-color: color-mix(in srgb, var(--mark-info) 35%, transparent); }
.bk-app .banner.info > svg { color: var(--info); }
.bk-app .banner.warn { background: color-mix(in srgb, var(--mark-warn) 9%, var(--surface)); border-color: color-mix(in srgb, var(--mark-warn) 40%, transparent); }
.bk-app .banner.warn > svg { color: var(--warn); }
.bk-app .banner.pos { background: color-mix(in srgb, var(--mark-pos) 8%, var(--surface)); border-color: color-mix(in srgb, var(--mark-pos) 35%, transparent); }
.bk-app .banner.pos > svg { color: var(--pos); }
.bk-app .banner b { color: var(--ink); }
.bk-app .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.bk-app .legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Derivate › Netto-Positionen (financial.html, board "Netto-Positionen") ---- */
.bk-app .fin { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bk-app .fin-tabs { margin: -4px 0; }
.bk-app .fin-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.bk-app .fin-kpis .kl { flex-wrap: wrap; }
.bk-app .fin-kx { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 12.5px; color: var(--ink-3); }
.bk-app .fin-kx .num { font-size: 12px; }
.bk-app .fin-kx.col { flex-direction: column; }
.bk-app .fin-kx.col > span { display: flex; justify-content: space-between; gap: 8px; }
.bk-app .fin-kpis .meter { margin-top: 4px; }
.bk-app .fin-xs { padding: 0 7px; font-size: 10.5px; }
.bk-app .net-tbl td,
.bk-app .net-tbl th { white-space: nowrap; }
.bk-app .net-tbl td { font-size: 13.5px; }
.bk-app .tbl.compact.net-tbl td,
.bk-app .tbl.compact.net-tbl th { padding-left: 9px; padding-right: 9px; }
.bk-app .net-tbl tr.grp td { font-family: var(--f-body); color: var(--ink-2); }
.bk-app .net-tbl tr.grp td .muted { margin-left: 6px; font-weight: 400; }
.bk-app .net-tbl tr.sum td { background: var(--surface-2); }
.bk-app .net-tbl tr.net-tot td { background: var(--surface-2); border-top: 1.5px solid var(--ink-2); font-weight: 600; }
.bk-app .net-inst { display: flex; align-items: center; gap: 10px; }
.bk-app .net-inst b { display: block; font-weight: 600; }
.bk-app .net-inst .sub { font-family: var(--f-body); }
/* Hedge ratio: bar with ticks at 85 % and 90 %. */
.bk-app .net-hg { display: grid; gap: 3px; min-width: 104px; }
.bk-app .net-hg > span { font: 500 12.5px var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bk-app .net-hb { position: relative; height: 7px; border-radius: 99px; background: var(--surface-3); }
.bk-app .net-hb > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--mark-pos); }
.bk-app .net-hb.w > i { background: var(--gold); }
.bk-app .net-hb.y > i { background: var(--ink-3); }
.bk-app .net-hb::before,
.bk-app .net-hb::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink-3); opacity: 0.7; }
.bk-app .net-hb::before { left: 85%; }
.bk-app .net-hb::after { left: 90%; }
.bk-app .net-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.bk-app .net-leg > span { display: inline-flex; gap: 6px; align-items: center; }
.bk-app .net-m .lt { display: flex; align-items: center; gap: 8px; }
.bk-app .net-m .lt .pill { flex: none; }
.bk-app .net-m .lr .ls { font-size: 12px; }

/* ---- 16b. Review list: "Zu prüfen · Eingang" as of R10/R11 (app review.css
   .ibx-*, Conf.tsx). Narrow-first: the page mocks are 320–730 px wide, so a
   row is two lines (title + amount, then suggestion + actions); from an
   860 px wide .bk-app it is the app's one-line desktop row with a checkbox;
   at <= 460 px the title gets the full width. [name] = inline lucide SVG.
     <div class="tabs rv-tabs"><span class="tab on">[inbox]Eingang <span class="n">34</span></span>…</div>
     <div class="card rv-kpis"><div><span class="k">[inbox]Offen</span><span class="v">42</span><span class="s">10 Module · 7 Quellen</span></div>
       <div class="is-warn">…</div>…</div>
     <div class="card rv-tools"><span class="rv-search">[search]<span>Gegenpartei, Betrag, Hash, Beleg</span></span>
       <span class="abtn abtn-sm ibx-create">[wand-sparkles]<span>Entwurf</span>[chevron-down]</span></div>
     <div class="card rv-list">
       <div class="rv-grp m-exchange"><span class="mi sm">[repeat]</span><span class="rv-gt">Tausch</span><span class="pill">1</span>
         <span class="rv-note">1 Rückfrage</span><span class="sp"></span>
         <span class="abtn abtn-sm"><span class="lbl">Stapel öffnen</span>[arrow-right]</span>[chevron-down]</div>
       <div class="rv-row m-exchange"><span class="rv-box"></span>
         <span class="rv-th">[wallet]<span class="coin sm" data-coin="USDT"></span></span>   (or <span class="rv-src">[mail]</span>)
         <div class="rv-main"><div class="rv-t">Havelmark Ventures UG · USDT-Eingang</div><div class="rv-d">27.10.2026, 14:12</div></div>
         <div class="rv-amt"><b>+25.000 USDT</b><span>21.552,50 €</span></div>
         <div class="rv-sug"><span class="tag-mod">Tausch · OTC-Ankauf</span><span class="conf mid">…94 %</span><span class="rv-link">[link-2]3 Belege</span></div>
         <div class="rv-act"><span class="abtn abtn-sm">Öffnen</span><span class="icon-btn sm">[ellipsis]</span></div></div>
     </div> ---- */

/* Tab strip at the top of a card: .tabs / .tab / .tab .n (above), with side padding. */
.bk-app .rv-tabs { padding: 0 8px; }

/* KPI strip: one card, four tiles divided by hairlines (2 x 2 at <= 600). */
.bk-app .rv-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bk-app .rv-kpis > * {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 14px 18px 12px;
    border-left: 1px solid var(--hairline);
}

.bk-app .rv-kpis > :first-child { border-left: 0; }
.bk-app .rv-kpis .k { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-app .rv-kpis .k svg { width: 14px; height: 14px; flex: none; }
.bk-app .rv-kpis .v { font: 600 28px/1.15 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.bk-app .rv-kpis .s { font-size: 12.5px; color: var(--ink-3); }
/* "Ohne Zuordnung" and "Rückfragen" with items: value and icon in --warn (the
   app's .ibx-stat.is-warn; amber, not the gold of --gold-ink). .v.gold is an
   alias for the same look. */
.bk-app .rv-kpis > .is-warn .v,
.bk-app .rv-kpis > .is-warn .k svg,
.bk-app .rv-kpis .v.gold { color: var(--warn); }

/* Toolbar: search field + the azure "Entwurf" button on the right. */
.bk-app .rv-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}

.bk-app .rv-search {
    flex: 1 1 200px;
    min-width: 0;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    background: linear-gradient(var(--field), var(--field)), var(--surface);
    color: var(--ink-4);
    font-size: 14px;
    white-space: nowrap;
}

.bk-app .rv-search > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bk-app .rv-search svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }

/* "Entwurf" with wand-sparkles and chevron-down (app .ibx-create-btn): an
   .abtn.abtn-sm in the AI azure. */
.bk-app .ibx-create {
    border-color: color-mix(in srgb, var(--ai) 55%, transparent);
    background: color-mix(in srgb, var(--ai) 10%, var(--surface));
    color: var(--ai);
    font-weight: 600;
}

.bk-app .ibx-create > svg:last-child:not(:first-child) { width: 14px; height: 14px; opacity: 0.7; }
.bk-app .rv-tools .ibx-create { margin-left: auto; }

/* The list card; tinted stack heads are clipped to its radius. */
.bk-app .rv-list { overflow: hidden; }
.bk-app .rv-list > .rv-grp:first-child { border-top: 0; }

/* Stack head ("Stapel"): hue bar on the left, tinted ground, icon tile,
   name, count, note, "Stapel öffnen →", collapse chevron. */
.bk-app .rv-grp {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 12px;
    border-top: 1px solid var(--hairline);
    background: color-mix(in srgb, var(--mc, var(--m-ledger)) 7%, var(--surface));
}

.bk-app .rv-grp::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--mc, var(--m-ledger));
}

.bk-app .rv-gt { font: 600 14.5px var(--f-display); letter-spacing: -0.01em; white-space: nowrap; }
.bk-app .rv-grp .pill { padding: 0 7px; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink-2); font: 600 11.5px/1.5 var(--f-mono); }
.bk-app .rv-note { min-width: 0; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-app .rv-grp > svg { width: 16px; height: 16px; flex: none; color: var(--ink-4); }

/* Item row. */
.bk-app .rv-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas:
        "th main amt"
        ".  sug  act";
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
    padding: 12px;
    border-top: 1px solid var(--hairline);
    background: var(--surface);
}

.bk-app .rv-box { display: none; grid-area: box; width: 16px; height: 16px; border: 1.5px solid var(--hairline-strong); border-radius: 4px; background: var(--surface); }

/* Source glyph (wallet, bank, document …) with a small source badge. */
.bk-app .rv-th {
    grid-area: th;
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--hairline);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--ink-2);
}

.bk-app .rv-th > svg { width: 17px; height: 17px; }

.bk-app .rv-src,
.bk-app .rv-th > .coin {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--surface);
}

.bk-app .rv-src { display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.bk-app .rv-src svg { width: 10px; height: 10px; }

.bk-app .rv-main { grid-area: main; min-width: 0; }

/* Title: up to two lines, then an ellipsis (app .ibx-t .trunc). */
.bk-app .rv-t {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.bk-app .rv-d { margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bk-app .rv-amt { grid-area: amt; min-width: 0; text-align: right; }
.bk-app .rv-amt b { display: block; font: 600 14px var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.bk-app .rv-amt span { display: block; font: 500 12.5px var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-3); }

/* Suggestion: hue tag (.tag-mod), .conf, linked evidence, warnings. */
.bk-app .rv-sug {
    grid-area: sug;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 13px;
}

.bk-app .rv-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 7px 0 6px;
    border: 1px solid var(--hairline);
    border-radius: 99px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.bk-app .rv-link svg { width: 13px; height: 13px; flex: none; color: var(--ink-3); }

.bk-app .rv-act { grid-area: act; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

/* Module tag: hue square + label in the hue (the app's base stylesheet .tag-mod; the same
   look as modules.css .bkm-app .tag-mod). */
.bk-app .tag-mod {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mc, var(--m-ledger));
    white-space: nowrap;
}

.bk-app .tag-mod::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--mc, var(--m-ledger));
}

/* Confidence: four bars + percentage (Conf.tsx): hi >= 95 % green, 4 bars;
   mid >= 70 % amber, 3 bars; lo below red, 1 bar.
   <span class="conf hi"><span class="bars"><i></i><i></i><i></i><i></i></span>97 %</span> */
.bk-app .conf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 12px var(--f-mono);
    white-space: nowrap;
}

.bk-app .conf .bars { display: inline-flex; gap: 2px; }
.bk-app .conf .bars i { display: block; width: 4px; height: 12px; border-radius: 1px; background: var(--surface-3); }
.bk-app .conf.hi { color: var(--pos); }
.bk-app .conf.hi .bars i { background: var(--mark-pos); }
.bk-app .conf.mid { color: var(--warn); }
.bk-app .conf.mid .bars i:nth-child(-n+3) { background: var(--mark-warn); }
.bk-app .conf.lo { color: var(--neg); }
.bk-app .conf.lo .bars i:nth-child(-n+1) { background: var(--mark-neg); }

/* ---- device classes, by the app's own width ---- */
@container bkapp (min-width: 1101px) {
    .bk-app .only-t, .bk-app .only-m, .bk-app .hide-d { display: none !important; }
}

@container bkapp (min-width: 601px) and (max-width: 1100px) {
    .bk-app .only-d, .bk-app .only-m, .bk-app .hide-t { display: none !important; }
}

@container bkapp (max-width: 600px) {
    .bk-app .only-d, .bk-app .only-t, .bk-app .hide-m { display: none !important; }
}

/* tablet: icon rail */
@container bkapp (max-width: 1100px) {
    .bk-app .shell:not(.bare) { grid-template-columns: 72px minmax(0, 1fr); }
    .bk-app .side { padding: 12px 8px; align-items: center; }
    .bk-app .side .brand { padding: 4px 0 12px; }
    .bk-app .brand-name,
    .bk-app .side .grp,
    .bk-app .nav-i .lbl,
    .bk-app .plan-chip { display: none; }
    .bk-app .side .grp + .nav-i { margin-top: 10px; }
    .bk-app .nav-i { width: 48px; height: 44px; justify-content: center; padding: 0; }
    .bk-app .nav-i .cnt { position: absolute; top: 2px; right: 0; padding: 0 5px; font-size: 10px; }
    .bk-app .nav-i.on::before { left: -8px; }
    .bk-app .top { padding: 10px 20px; }
    .bk-app .top .search { max-width: none; }
    .bk-app .top .search .kbd,
    .bk-app .top .hide-t { display: none; }
    .bk-app .content { padding: 20px 20px 40px; }
    .bk-app .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bk-app .fin-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .bk-app .fin-kpis > * { grid-column: span 2; }
    .bk-app .fin-kpis > :nth-child(-n+2) { grid-column: span 3; }
    .bk-app .net-hg { min-width: 84px; }
}

/* phone: app bar instead of sidebar and top bar */
@container bkapp (max-width: 600px) {
    .bk-app .shell:not(.bare) { grid-template-columns: minmax(0, 1fr); }
    .bk-app .side,
    .bk-app .top { display: none; }
    .bk-app .mtop {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: color-mix(in srgb, var(--canvas) 85%, var(--surface));
        border-bottom: 1px solid var(--hairline);
    }
    .bk-app .mtop .ttl { flex: 1; min-width: 0; font: 600 16px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bk-app .mtop .ttl small { display: block; font: 500 11.5px var(--f-body); color: var(--ink-3); }
    .bk-app .content { padding: 16px 16px 24px; gap: 16px; }
    .bk-app .page-h :is(h1, .h1) { font-size: 23px; }
    .bk-app .kpi { padding: 12px; }
    .bk-app .kpi .kv { font-size: 19px; }
    .bk-app .g2,
    .bk-app .g3 { grid-template-columns: minmax(0, 1fr); }
    .bk-app .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bk-app .fin-kpis > *,
    .bk-app .fin-kpis > :nth-child(-n+2) { grid-column: auto; }
    .bk-app .fin-kpis > :first-child { grid-column: 1 / -1; }
    .bk-app .card-h { padding: 12px 14px; }
    .bk-app .card-b { padding: 14px; }
    .bk-app .card-f { padding: 10px 14px; }
}

/* 16b review list: KPI strip 2 x 2 on a phone-wide app */
@container bkapp (max-width: 600px) {
    .bk-app .rv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bk-app .rv-kpis > * { padding: 12px 14px 10px; }
    .bk-app .rv-kpis > :nth-child(odd) { border-left: 0; }
    .bk-app .rv-kpis > :nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
    .bk-app .rv-kpis .v { font-size: 23px; }
}

/* 16b review list on a phone-narrow mock: the title takes the full width,
   amount and actions share the second line, the suggestion the third; "Stapel
   öffnen" and "Entwurf" keep only their icons (as on the app's phone). */
@container bkapp (max-width: 460px) {
    .bk-app .rv-row {
        grid-template-areas:
            "th main main"
            ".  amt  act"
            ".  sug  sug";
    }
    .bk-app .rv-amt { text-align: left; }
    .bk-app .rv-grp { gap: 8px; }
    .bk-app .rv-grp .abtn { padding: 5px 7px; }
    .bk-app .rv-grp .abtn .lbl,
    .bk-app .ibx-create > span { display: none; }
}

/* 16b review list: one-line desktop rows with a checkbox (app .ibx-row) */
@container bkapp (min-width: 860px) {
    .bk-app .rv-grp { padding: 9px 16px; }
    .bk-app .rv-row {
        grid-template-columns: 18px 44px minmax(0, 1fr) 150px minmax(0, 220px) 110px;
        grid-template-areas: "box th main amt sug act";
        min-height: 64px;
        padding: 10px 16px;
    }
    .bk-app .rv-box { display: block; }
    .bk-app .rv-sug { padding-left: 12px; }
}


/* =============================================================================
   17. STATE UTILITIES (books.js)
   books.js keeps the current price book and billing interval on <html>:
     <html data-bk-book="eu|us|uk|ch" data-bk-interval="monthly|yearly">
   Ship static defaults in the markup so the first paint is right without JS.
   Then: data-bk-show="eu uk"      → only for those books
         data-bk-show-interval="yearly" → only for that interval
         data-bk-show-note="JPY RUB"    → only when the visitor's currency has
                                          no price book of its own
   ========================================================================== */

html[data-bk-book="eu"] [data-bk-show]:not([data-bk-show~="eu"]),
html[data-bk-book="us"] [data-bk-show]:not([data-bk-show~="us"]),
html[data-bk-book="uk"] [data-bk-show]:not([data-bk-show~="uk"]),
html[data-bk-book="ch"] [data-bk-show]:not([data-bk-show~="ch"]),
html[data-bk-interval="monthly"] [data-bk-show-interval]:not([data-bk-show-interval~="monthly"]),
html[data-bk-interval="yearly"] [data-bk-show-interval]:not([data-bk-show-interval~="yearly"]),
html:not([data-bk-note]) [data-bk-show-note],
html[data-bk-note="JPY"] [data-bk-show-note]:not([data-bk-show-note~="JPY"]),
html[data-bk-note="RUB"] [data-bk-show-note]:not([data-bk-show-note~="RUB"]) {
    display: none !important;
}

/* Hide JS-filled figures until books.js has rendered them once (it sets
   html.bk-ready). Pair with, in <head> after this file:
     <noscript><style>html:not(.bk-ready) .bk-pending{visibility:visible}</style></noscript>
   (the same selector: a bare .bk-pending would lose to this rule). */
html:not(.bk-ready) .bk-pending {
    visibility: hidden;
}

.bk-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .bk-card,
    .bk-link .bk-ico,
    .bk-faq-q,
    .bk-faq-icon,
    .bk-faq-icon::before,
    .bk-faq-icon::after,
    .bk-faq-item::details-content {
        transition: none;
    }

    .bk-pulse {
        animation: none;
    }
}


/* =============================================================================
   18. PRICE CALCULATOR (books.js 7.; /books/pricing and /books/accountants)
   <div class="bk-calc" data-bk-calc> inputs left, the result right; one
   column on phones. books.js sets on the root data-best, data-reason,
   data-upsell, data-without-ai; on each plan row data-state
   (best | ok | blocked) and data-without-ai; on each blocker note
   data-bk-why (the first blocker). The texts for every case are in the
   markup; these rules show the one that applies.
   ========================================================================== */

.bk-calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-lg);
    padding: 24px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    border-radius: var(--radius-xl);
    background: var(--gradient-card);
}

.bk-calc-in {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.bk-calc-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.bk-calc-l {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.bk-calc-v {
    font-family: var(--bk-figures);
    font-size: 1.05rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-primary);
    white-space: nowrap;
}

/* Range: a gold fill up to the thumb (--bk-fill from books.js). */
.bk-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    --bk-fill: 0%;
}

.bk-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--color-secondary) var(--bk-fill), rgba(255, 255, 255, 0.12) var(--bk-fill));
}

.bk-range::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.bk-range::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--color-secondary);
}

.bk-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
    background: #0A0F1C;
}

.bk-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
    background: #0A0F1C;
}

.bk-range:focus-visible {
    outline: none;
}

.bk-range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.35);
}

.bk-range:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.35);
}

/* Switch: the native checkbox stays focusable, visually hidden over the track. */
.bk-calc-sw {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    cursor: pointer;
}

.bk-calc-sw input {
    position: absolute;
    left: 0;
    width: 40px;
    height: 24px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.bk-calc-sw-ui {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: background-color 0.15s ease;
}

.bk-calc-sw-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: transform 0.15s ease;
}

.bk-calc-sw input:checked + .bk-calc-sw-ui {
    background: var(--color-secondary);
}

.bk-calc-sw input:checked + .bk-calc-sw-ui::after {
    transform: translateX(16px);
}

.bk-calc-sw input:focus-visible + .bk-calc-sw-ui {
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.45);
}

/* Result */
.bk-calc-out {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    background: rgba(255, 255, 255, 0.03);
}

.bk-calc-best-l {
    font-family: var(--bk-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.bk-calc-best {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-family: var(--font-display);
    color: var(--color-text-primary);
}

.bk-calc-best b {
    font-size: 1.6rem;
    font-weight: 700;
}

.bk-calc-best-amt {
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bk-calc-per {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.bk-calc-why {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.bk-calc-why > span,
.bk-calc-pnote > span {
    display: none;
}

.bk-calc[data-reason="cheapest"] .bk-calc-why > [data-why="cheapest"],
.bk-calc[data-reason="entities"] .bk-calc-why > [data-why="entities"],
.bk-calc[data-reason="api"] .bk-calc-why > [data-why="api"],
.bk-calc[data-reason="area_rights"] .bk-calc-why > [data-why="area_rights"],
.bk-calc[data-reason="ai"] .bk-calc-why > [data-why="ai"],
.bk-calc:not([data-reason]) .bk-calc-why > [data-why="cheapest"] {
    display: inline;
}

.bk-calc-plans {
    display: flex;
    flex-direction: column;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-border-light);
}

.bk-calc-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 2px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9rem;
}

.bk-calc-pn {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.bk-calc-pv {
    font-family: var(--bk-figures);
    font-variant-numeric: tabular-nums;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.bk-calc-pnote {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.bk-calc-pnote[data-bk-why="basic_one_entity"] > [data-why="basic_one_entity"],
.bk-calc-pnote[data-bk-why="basic_one_organisation"] > [data-why="basic_one_organisation"],
.bk-calc-pnote[data-bk-why="api_business_only"] > [data-why="api_business_only"],
.bk-calc-pnote[data-bk-why="area_rights_business_only"] > [data-why="area_rights_business_only"],
.bk-calc-pnote[data-bk-why="ai_from_pro"] > [data-why="ai_from_pro"] {
    display: inline;
}

.bk-calc-pnote:not([data-bk-why]) {
    display: none;
}

.bk-calc-plan[data-state="best"] .bk-calc-pn,
.bk-calc-plan[data-state="best"] .bk-calc-pv {
    color: var(--color-secondary);
}

.bk-calc-plan[data-state="blocked"] .bk-calc-pv {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.bk-calc-noai {
    display: none;
    padding: 1px 7px;
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.bk-calc-plan[data-without-ai="yes"]:not([data-state="blocked"]) .bk-calc-noai {
    display: inline-block;
}

.bk-calc-up {
    display: none;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.bk-calc[data-upsell="yes"] .bk-calc-up {
    display: block;
}

.bk-calc-up b {
    color: var(--color-text-primary);
    white-space: nowrap;
}

.bk-calc-assume {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

@media (max-width: 860px) {
    .bk-calc {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }
}

@media (max-width: 640px) {
    .bk-calc {
        padding: 16px;
        gap: var(--spacing-md);
    }

    .bk-calc-out {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bk-calc-sw-ui,
    .bk-calc-sw-ui::after {
        transition: none;
    }
}
