/* ============================================================
   home-v3.css — homepage redesign (replaces theme.css + home.css on index.php only).
   Brand blue as flat fields; the product pictures are rebuilt from FAKTUUR 2.6.2's own screens
   (invoice PDF layout, invoices.php list, quotation/credit-note heroes, stock movements, showroom).
   Logical properties throughout so Arabic (dir="rtl") mirrors without separate rules.
   ============================================================ */
#page-home {
    --hv-paper: #ffffff; --hv-paper-2: #f3f6fc; --hv-ink: #0f172a; --hv-pale: #eaf1ff; --hv-night: #0f172a;
    --hv-m: 32px; --hv-axis: 41.66%;
    --hv-display: clamp(40px, 4.4vw, 64px); --hv-huge: clamp(64px, 9vw, 136px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px; line-height: 1.55; color: var(--hv-ink); background: var(--hv-paper);
}
#page-home h1, #page-home h2, #page-home h3 { margin: 0; letter-spacing: -.025em; color: inherit; font-family: inherit; }
#page-home .num { font-variant-numeric: tabular-nums; }
#page-home :focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.hv-wrap { padding-inline: var(--hv-m); max-width: 1440px; margin-inline: auto; }
.hv-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--primary); margin-block-end: 14px; }
.hv-tag-light { color: #dbe6ff; }

/* ---------- Buttons ---------- */
.hv-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding-inline: 22px; border-radius: 6px; background: var(--primary); color: #fff; font-weight: 600; font-size: 16px; line-height: 1; font-family: inherit; text-decoration: none; border: 0; cursor: pointer; transition: background-color 120ms; }
.hv-btn:hover { background: #1d4ed8; color: #fff; }
.hv-btn-paper { background: #fff; color: var(--primary-dark); }
.hv-btn-paper:hover { background: var(--hv-pale); color: var(--primary-dark); }
.hv-link { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.hv-link:hover { color: #dbe6ff; }

/* ---------- Navbar: logos follow the surface (1.png on blue, 2.png on white) ---------- */
#page-home .navbar .container { max-width: 1440px; padding-inline: var(--hv-m); }
.hv-logo img { height: 36px; width: auto; display: block; }
.hv-logo .hv-logo-light, .navbar.scrolled .hv-logo .hv-logo-dark { display: none; }
.navbar.scrolled .hv-logo .hv-logo-light { display: block; }
#page-home .nav-links a, #page-home .nav-actions .btn { font-family: inherit; }

/* ---------- Hero: a deep-blue field, the invoice on the right ---------- */
.hv-hero { position: relative; background: var(--primary-dark); color: #fff; overflow: hidden; padding-block: 128px 56px; }
.hv-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; align-items: start; }
.hv-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #dbe6ff; margin-block-end: 18px; }
.hv-hero h1 { font-size: clamp(44px, 3.9vw, 60px); line-height: 1.06; font-weight: 800; color: #fff; }
.hv-hero .hv-h1-2 { color: #bfd5ff; display: block; }
.hv-lead { margin: 22px 0 0; max-width: 40ch; font-size: 20px; color: #e6edff; }
.hv-try { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.hv-try label { display: block; font-size: 13px; color: #c9d7ff; margin-block-end: 6px; }
.hv-try input { width: 100%; height: 48px; border-radius: 6px; border: 0; padding-inline: 14px; font-weight: 500; font-size: 16px; font-family: inherit; color: var(--hv-ink); background: #fff; }
.hv-try p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 15px; color: #c9d7ff; min-height: 2.4em; }
.hv-try p b { color: #fff; font-weight: 600; }
.hv-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.hv-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0 0; }
.hv-stats div { display: flex; flex-direction: column-reverse; }
.hv-stats dt { font-size: 13px; color: #c9d7ff; }
.hv-stats dd { margin: 0; font-size: 24px; font-weight: 800; color: #fff; }
.hv-cards { display: flex; gap: 16px; margin-top: 40px; }
.hv-card { width: 236px; text-decoration: none; color: var(--hv-ink); background: #fff; border-radius: 6px; overflow: hidden; display: block; transition: transform 160ms ease-out; }
.hv-card:hover { transform: translateY(-3px); color: var(--hv-ink); }
.hv-shot { background: var(--hv-paper-2); padding: 12px; font-size: 13px; line-height: 1.4; }
.hv-mini { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; background: #fff; border-radius: 4px; margin-block-end: 5px; }
.hv-mini:last-child { margin-block-end: 0; }
.hv-mini .fk-pill { display: inline-flex; align-items: center; height: 20px; padding-inline: 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hv-ttl { height: 44px; display: flex; align-items: center; justify-content: space-between; padding-inline: 14px; font-weight: 600; font-size: 15px; }
[dir="rtl"] .hv-arrow { transform: scaleX(-1); display: inline-block; }

/* The invoice, as FAKTUUR 2.6.2 lays it out (includes/pdf-doc-layout.php + invoice-pdf-download.php + pdf-payment-block.php) */
.hv-doc-stage { min-width: 0; }
.fkd { --p: #1565c0; --t: #1e293b; --m: #64748b; background: #fff; color: var(--t); border-radius: 4px; padding: 0 40px 40px; font-size: 13px; line-height: 1.5; box-shadow: 0 30px 60px rgba(4, 12, 40, .25); }
.fkd table { width: 100%; border-collapse: collapse; }
.fkd-band { height: 10px; background: var(--p); margin: 0 -40px 26px; border-radius: 4px 4px 0 0; }
.fkd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fkd-brandname { font-size: 25px; font-weight: 700; color: var(--p); line-height: 1.15; }
.fkd-brandcity { font-size: 13px; color: var(--m); margin-top: 4px; }
.fkd-doc { text-align: end; }
.fkd-title { font-size: 32px; font-weight: 700; color: var(--p); line-height: 1.1; text-transform: uppercase; letter-spacing: .5px; }
[dir="rtl"] .fkd-title, [dir="rtl"] .fkd-card-label, [dir="rtl"] .fkd-items th, [dir="rtl"] .fkd-pill, [dir="rtl"] .fkd-pay .lab, [dir="rtl"] .fkd-pay .h { letter-spacing: 0; }
.fkd-number { font-size: 17px; font-weight: 700; margin-top: 5px; }
.fkd-pill { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: #dbeafe; color: #1e40af; }
.fkd-meta { width: auto !important; margin-block-start: 10px; margin-inline-start: auto; }
.fkd-meta td { padding-block: 1px; padding-inline: 20px 0; font-size: 13px; text-align: end; }
.fkd-meta .ml { color: var(--m); } .fkd-meta .mv { font-weight: 700; }
.fkd-rule { border-top: 1px solid #e2e8f0; margin: 22px 0; }
.fkd-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4%; margin-block-end: 28px; }
.fkd-card-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--p); margin-block-end: 8px; }
.fkd-card-name { font-size: 15px; font-weight: 700; margin-block-end: 2px; overflow-wrap: anywhere; }
.fkd-card-lines { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.fkd-items th { background: var(--p); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 12px 9px; text-align: start; white-space: nowrap; }
.fkd-items td { padding: 12px 9px; border-bottom: 1px solid #e9eef4; font-size: 13px; vertical-align: middle; }
.fkd-items tr.alt td { background: #f4f7fb; }
.fkd-items .c { text-align: center; } .fkd-items .r { text-align: end; }
.fkd-iname { font-weight: 700; }
.fkd-totals { width: 340px !important; margin-block-start: 26px; margin-inline-start: auto; }
.fkd-totals td { padding: 11px 16px; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.fkd-totals td + td { text-align: end; }
.fkd-totals .total td { background: var(--p); color: #fff; font-weight: 700; }
.fkd-totals .balance td { background: #fef3c7; color: #92400e; font-weight: 700; }
.fkd-pay { margin-top: 26px; border: 1px solid #e2e8f0; }
.fkd-pay .h { background: #f8fafc; padding: 10px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid #e2e8f0; }
.fkd-pay .b { display: grid; grid-template-columns: 36% 1fr; }
.fkd-pay .l { padding: 16px; border-inline-end: 1px solid #e2e8f0; }
.fkd-pay .rr { padding: 14px 16px; }
.fkd-pay .lab { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--m); font-weight: 700; }
.fkd-pay .due { font-size: 25px; font-weight: 700; color: var(--p); margin: 2px 0 10px; }
.fkd-pay .dd { font-size: 15px; font-weight: 700; }
.fkd-pay .terms { font-size: 12px; color: var(--m); margin-top: 8px; }
.fkd-pay .rr td { padding-block: 4px; font-size: 14px; vertical-align: top; text-align: start; }
.fkd-pay .rr td.lab { width: 30%; padding-inline-end: 12px; font-size: 11px; }
.fkd-pay .rr .s { font-weight: 700; }
.fkd-foot { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 14px; border-top: 1px solid #e2e8f0; font-size: 12px; color: var(--m); }
.fkd-foot .ft { color: var(--t); margin-block-end: 2px; }
/* Masked sample details: the seller, the bill-to address and the footer show as grey bars, so the picture
   never reads as a real company's invoice. Only what the visitor types (company, VAT) is shown in BILL TO. */
.fkd-mask { display: inline-block; vertical-align: middle; width: var(--w, 8em); max-width: 100%; height: .72em; border-radius: 3px; background: #e2e8f0; }
.fkd-brandname .fkd-mask { height: .62em; background: #c7d7f2; }
.fkd-card-name .fkd-mask, .fkd-pay .s .fkd-mask, .fkd-foot .ft .fkd-mask { background: #cbd5e1; }
.fkd-card-lines .fkd-mask { margin-block: 3px; }

/* ---------- Trust strip (admin-editable) ---------- */
.hv-trust { background: var(--hv-paper-2); }   /* a tone step instead of a divider line */
.hv-trust-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 22px; }
.hv-trust p { margin: 0; font-weight: 600; color: #334155; }
.hv-trust ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; color: #334155; font-size: 15px; }
.hv-trust i { color: var(--primary); margin-inline-end: 6px; }

/* ---------- Invoice list (invoices.php, List 4) ---------- */
.hv-board { background: #f1f5f9; padding-block: 120px; }
.hv-axis-head { display: grid; grid-template-columns: var(--hv-axis) 1fr; column-gap: 48px; margin-block-end: 40px; }
.hv-axis-head h2 { grid-column: 2; font-size: var(--hv-display); line-height: 1.04; font-weight: 800; max-width: 14ch; }
.hv-axis-head p { grid-column: 2; margin: 18px 0 0; max-width: 52ch; color: #1e293b; }
.fk-app { color: #1e293b; font-size: 14px; }
.fk-list4 .fk-l4-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 4px 0 16px; }
.fk-list4 .fk-l4-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: #1e293b; }
.fk-list4 .fk-l4-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.fk-list4 .fk-l4-btn { height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 13.5px; line-height: 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.fk-list4 .fk-l4-pri { color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.fk-list4 .fk-l4-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block-end: 18px; }
.fk-list4 .fk-l4-kpi { position: relative; display: grid; gap: 2px; padding-block: 14px; padding-inline: 18px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; color: inherit; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s, box-shadow .15s; font: inherit; text-align: start; cursor: pointer; }
.fk-list4 .fk-l4-kpi:hover { border-color: #bfd3ee; }
.fk-list4 .fk-l4-kpi::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; border-start-end-radius: 3px; border-end-end-radius: 3px; background: #1565c0; }
.fk-list4 .fk-l4-kpi small { font-size: 12.5px; font-weight: 600; color: #475569; }
.fk-list4 .fk-l4-kpi b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #1e293b; }
.fk-list4 .fk-l4-kpi span { font-size: 12px; color: #64748b; }
.fk-list4 .fk-l4-over::before { background: #ef4444; } .fk-list4 .fk-l4-over b { color: #b91c1c; }
.fk-list4 .fk-l4-week::before { background: #f59e0b; } .fk-list4 .fk-l4-in::before { background: #10b981; }
.fk-list4 .fk-l4-kpi.is-on { border-color: #1565c0; box-shadow: 0 0 0 3px rgba(21, 101, 192, .12); }
.fk-list4 .fk-l4-over.is-on { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.fk-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-block-end: 18px; }
.fk-tabs { display: flex; gap: 4px; background: #e2e8f0; border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.fk-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; line-height: 1.2; font-family: inherit; color: #475569; border: 0; background: none; cursor: pointer; transition: .15s; white-space: nowrap; }
.fk-tab:hover { color: #1d4ed8; }
.fk-tab.active { background: #fff; color: #0d47a1; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.fk-tab .cnt { font-size: 11px; font-weight: 700; background: #f1f5f9; color: #475569; border-radius: 20px; padding: 1px 8px; min-width: 20px; text-align: center; }
.fk-tab.active .cnt { background: #dbeafe; color: #1d4ed8; }
.fk-list4 .fk-tab.fk-tab-over .cnt { background: #fee2e2; color: #b91c1c; }
.invoices-card-modern { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.fk-tablewrap { overflow-x: auto; }
.invoices-table-modern { width: 100%; border-collapse: collapse; }
.invoices-table-modern thead { background: #f8fafc; }
.invoices-table-modern thead th { padding: 14px 16px; text-align: start; font-size: 13px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
[dir="rtl"] .invoices-table-modern thead th { letter-spacing: 0; }
.invoices-table-modern tbody tr { border-bottom: 1px solid #f1f5f9; }
.invoices-table-modern tbody tr:hover { background: #f8fafc; }
.invoices-table-modern tbody td { padding: 14px 16px; font-size: 14px; color: #334155; white-space: nowrap; }
.fk-list4 .invoices-table-modern .fk-num { text-align: end; }
.invoice-number-link { color: #1565c0; font-weight: 700; }
.cust-chip { display: inline-flex; align-items: center; gap: 9px; }
.cust-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--cav-bg, #1D4ED8); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .3px; }
.fk-list4 .fk-open { font-weight: 700; color: #1e293b; }
.fk-list4 .fk-zero { color: #64748b; }
.fk-list4 .fk-cn { display: block; font-size: 11.5px; color: #92400e; font-weight: 600; margin-top: 2px; }
.fk-pill { display: inline-flex; align-items: center; height: 24px; padding-inline: 9px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.fk-p-over { background: #fee2e2; color: #991b1b; } .fk-p-today { background: #fef3c7; color: #92400e; } .fk-p-soon { background: #e3effd; color: #1565c0; }
.fk-p-open { background: #f1f5f9; color: #475569; } .fk-p-paid { background: #d1fae5; color: #065f46; } .fk-p-draft { background: #f1f5f9; color: #475569; }
.fk-list4 .invoices-table-modern tr.fk-row-over td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
[dir="rtl"] .fk-list4 .invoices-table-modern tr.fk-row-over td:first-child { box-shadow: inset -3px 0 0 #ef4444; }
.fk-list4 .fk-acts { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.fk-list4 .fk-ab { height: 30px; min-width: 30px; padding-inline: 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; line-height: 1; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; background: #fff; }
.fk-list4 .fk-ab-rec { border: 1px solid #1565c0; color: #1565c0; } .fk-list4 .fk-ab-ghost { border: 1px solid #cbd5e1; color: #475569; }
.fk-list4 .fk-ab-more { border: 1px solid #e2e8f0; color: #64748b; padding: 0; width: 30px; }
.fk-empty { padding: 28px 16px; color: #64748b; text-align: center; }

/* ---------- Features: the app's own screens in the margin, text on the axis ---------- */
.hv-features { padding-block: 152px 40px; }
.hv-statement { padding-inline-start: var(--hv-axis); margin-block-end: 96px; }
.hv-statement h2 { font-size: var(--hv-display); line-height: 1.04; font-weight: 800; max-width: 18ch; }
.hv-frow { display: grid; grid-template-columns: var(--hv-axis) 1fr; column-gap: 48px; padding-block-end: 96px; align-items: start; }
.hv-t { grid-column: 2; grid-row: 1; padding-top: 8px; }
.hv-t h3 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.hv-t p { margin: 12px 0 0; max-width: 42ch; color: #1e293b; }
.hv-pic { grid-column: 1; grid-row: 1; justify-self: end; max-width: 100%; }
.hv-frow > *, .hv-hero-grid > *, .hv-demo-grid > *, .hv-faq-grid > * { min-width: 0; }
.hv-field { width: 260px; aspect-ratio: 4 / 5; background: var(--primary-dark); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; font-weight: 700; font-size: 24px; line-height: 1.2; border-radius: 6px; }
.hv-field small { display: block; font-weight: 400; font-size: 15px; line-height: 1.4; font-family: inherit; color: #dbe6ff; margin-top: 8px; }
/* quotation-view.php hero */
.qv-hero { width: 520px; max-width: 100%; background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%); border-radius: 16px; padding: 22px 24px; color: #fff; box-shadow: 0 6px 20px rgba(13, 71, 161, .18); }
.qv-hero-main, .cn-hero-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.qv-hero-number, .cn-hero-number { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.qv-hero-sub, .cn-hero-sub { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.qv-hero-pill, .cn-hero-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .18); color: #fff; }
.cn-hero-pill { background: rgba(0, 0, 0, .2); }
.qv-hero-meta { font-size: 13px; color: #cde1fb; display: inline-flex; align-items: center; gap: 6px; }
.cn-hero-meta { font-size: 13px; color: #dbeafe; display: inline-flex; align-items: center; gap: 6px; }
.qv-hero-right, .cn-hero-right { text-align: end; }
.qv-hero-amount-label { font-size: 12px; color: #cde1fb; } .cn-hero-amount-label { font-size: 12px; color: #dbeafe; }
.qv-hero-amount, .cn-hero-amount { font-size: 30px; font-weight: 800; margin-top: 2px; }
.qv-acts { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; flex-wrap: wrap; }
.qv-acts span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
/* stock-movements.php, one product */
.fk-mv { width: 540px; max-width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; color: #1e293b; font-size: 13px; }
.fk-mv .mvh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 14px 10px; }
.fk-mv .mvh b { font-size: 16px; } .fk-mv .mvh span { color: #64748b; font-size: 13px; }
.fk-mv table { width: 100%; border-collapse: collapse; }
.fk-mv th { text-align: start; font-size: 11.5px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .4px; padding: 9px 13px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
[dir="rtl"] .fk-mv th { letter-spacing: 0; }
.fk-mv td { padding: 10px 13px; border-bottom: 1px solid #f1f5f9; vertical-align: top; white-space: nowrap; text-align: start; }
.fk-mv .fk-num { text-align: end; }
.fk-mv tr.fk-day td { background: #f8fafc; font-size: 12px; font-weight: 700; color: #475569; padding: 8px 13px; }
.fk-mv .fk-tp { display: inline-flex; align-items: center; height: 22px; padding-inline: 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.fk-mv .fk-tp-out { background: #fee2e2; color: #991b1b; } .fk-mv .fk-tp-in { background: #d1fae5; color: #065f46; }
.fk-mv .fk-subn { display: block; margin-top: 3px; font-size: 12px; color: #64748b; font-weight: 500; }
.fk-mv .fk-doc { color: #1565c0; font-weight: 600; }
.fk-mv .fk-in { color: #047857; } .fk-mv .fk-out { color: #b91c1c; }
.fk-mv .fk-ba { color: #64748b; font-variant-numeric: tabular-nums; } .fk-mv .fk-ba b { color: #1e293b; }
/* showroom/products.php card, navy glass theme */
.sr-stage { width: 340px; max-width: 100%; background: #0a1f3c; border-radius: 16px; padding: 18px; font-family: 'Montserrat', 'Inter', sans-serif; }
.product-card { background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; overflow: hidden; color: #eaf1fb; }
.product-image { height: 150px; background: #0a1f3c; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #a9bad3; border-bottom: 1px solid rgba(255, 255, 255, .10); }
.product-info { padding: 20px; }
.product-category { font-size: 11px; color: #93b4ff; text-transform: uppercase; letter-spacing: .5px; margin-block-end: 8px; font-weight: 600; }
.product-name { font-size: 17px; font-weight: 600; margin-block-end: 8px; line-height: 1.3; }
.product-description { font-size: 13px; color: #9fb3d1; margin: 0 0 16px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product-price { font-size: 22px; font-weight: 700; color: #93b4ff; }
.product-price-vat { font-size: 11px; color: #a9bad3; font-weight: 400; }
.wholesale-badge { display: inline-block; font-size: 10px; padding: 2px 8px; background: #d1fae5; color: #065f46; border-radius: 10px; font-weight: 600; vertical-align: middle; }
.product-stock { font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.stock-in { background: rgba(76, 175, 80, .16); color: #6ee7b7; }
.product-actions { padding: 0 20px 20px; display: flex; gap: 10px; }
.qty-input { display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; overflow: hidden; }
.qty-input span { width: 34px; height: 42px; display: grid; place-items: center; font-size: 13px; }
.qty-input .qv { width: 30px; font-weight: 600; }
.sr-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); white-space: nowrap; }
/* credit-note-view.php hero + the invoice's totals once applied */
.cn-pic { width: 560px; max-width: 100%; }
.cn-hero { background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%); border-radius: 16px; padding: 22px 24px; color: #fff; box-shadow: 0 6px 20px rgba(21, 101, 192, .18); }
.cn-totals { margin-block-start: 14px; margin-inline-start: auto; width: 320px; max-width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; font-size: 14px; color: #1e293b; }
.cn-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; }
.cn-totals .total { background: #1565c0; color: #fff; font-weight: 700; }
.cn-totals .cn { color: #b91c1c; }
.cn-totals .balance { background: #fef3c7; color: #92400e; font-weight: 600; border-bottom: 0; }
.cn-cap { text-align: end; font-size: 12px; color: #475569; margin-top: 6px; }
/* the admin-editable feature list, under the screens */
.hv-more { list-style: none; margin: 24px 0 0; padding: 48px 0 0; border-top: 1px solid #e2e8f0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.hv-more li { display: flex; gap: 14px; align-items: flex-start; }
.hv-more i { color: var(--primary); font-size: 18px; margin-top: 4px; width: 20px; text-align: center; flex: none; }
.hv-more h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.hv-more p { margin: 6px 0 0; font-size: 15px; color: #334155; }

/* ---------- Pricing: two fields that meet at a hard edge ---------- */
.hv-pricing { display: grid; grid-template-columns: 5fr 7fr; min-height: 90svh; }
.hv-field-try, .hv-field-buy { padding: 48px var(--hv-m) var(--hv-m); display: flex; flex-direction: column; }
.hv-field-try { background: var(--hv-pale); color: var(--hv-ink); }
.hv-field-try .hv-price-row { justify-content: flex-start; align-items: center; gap: 20px 28px; }
/* menu jumps (Pricing, Demo) stop just under the fixed top bar */
#pricing, #demo { scroll-margin-top: 80px; }
.hv-field-try .hv-cred { margin: 32px 0 0; }
.hv-field-try .hv-cred code { background: #fff; font-size: 15px; }
.hv-field-try .hv-cred dt { color: #334155; }
.hv-link.hv-link-ink { color: var(--hv-ink); }
.hv-link.hv-link-ink:hover { color: var(--primary); }
.hv-field-buy { background: var(--primary-dark); color: #fff; }
.hv-field-buy.hv-full { grid-column: 1 / -1; }
.hv-pricing h2 { font-size: var(--hv-display); line-height: 1.04; font-weight: 800; }
.hv-who { margin: 16px 0 0; font-size: 20px; max-width: 34ch; }
.hv-incl { margin: 22px 0 0; padding: 0; list-style: none; max-width: 46ch; display: grid; gap: 6px; }
.hv-incl li { padding-inline-start: 22px; position: relative; }
.hv-incl li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 6px; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .8; }
[dir="rtl"] .hv-incl li::before { transform: rotate(45deg) scaleX(-1); }
.hv-field-buy .hv-incl, .hv-field-buy .hv-who, .hv-tier-desc { color: #e6edff; }
.hv-price-row { margin-top: auto; padding-top: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hv-price { font-size: var(--hv-huge); font-weight: 800; line-height: .9; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 12px; }
/* The edition switch is one motion, 340 ms: the pill springs to the tab, the price rolls digit by digit
   (60 ms apart, up when it rises, down when it falls) and the description and features rise in. */
.hv-roll { display: inline-flex; overflow: hidden; height: .92em; vertical-align: bottom; }
.hv-roll > span { display: block; }
.hv-roll > .hv-d { display: inline-grid; }
.hv-d > span { grid-area: 1 / 1; display: block; transition: transform 340ms cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 60ms); }
.hv-tier-in .hv-tier-desc, .hv-tier-in .hv-incl { animation: hv-tier-in 340ms cubic-bezier(.2, .8, .2, 1); }
@keyframes hv-tier-in { from { opacity: 0; transform: translateY(8px); } }
.hv-price small { font-size: 16px; font-weight: 400; line-height: 1.3; letter-spacing: 0; opacity: .9; max-width: 14ch; }
.hv-tiers { position: relative; display: inline-flex; flex-wrap: wrap; margin-top: 28px; background: rgba(255, 255, 255, .12); border-radius: 8px; padding: 4px; align-self: flex-start; }
.hv-tiers button { position: relative; z-index: 1; border: 0; background: none; color: #dbe6ff; font-weight: 600; font-size: 16px; font-family: inherit; height: 44px; padding-inline: 18px; cursor: pointer; border-radius: 6px; transition: color 150ms; display: inline-flex; align-items: center; gap: 8px; }
.hv-tiers button[aria-checked="true"] { color: var(--primary-dark); }
.hv-pill { position: absolute; z-index: 0; top: 0; left: 0; height: 44px; background: #fff; border-radius: 6px; width: 0; will-change: transform;
    transition: transform 340ms cubic-bezier(.34, 1.56, .64, 1), width 340ms cubic-bezier(.34, 1.56, .64, 1), height 340ms cubic-bezier(.34, 1.56, .64, 1); }
.hv-feat { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: #fef3c7; color: #92400e; }
.hv-tier { display: flex; flex-direction: column; flex: 1; margin-top: 24px; }
.hv-tier-name { font-size: 24px; font-weight: 800; }
.hv-tier-desc { margin: 8px 0 0; }
.js .hv-tier:not([data-on]) { display: none; }
.js .hv-tier-name { display: none; }
html:not(.js) .hv-tiers { display: none; }
html:not(.js) .hv-tier { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 24px; }
.hv-guarantee { margin-top: 28px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #e6edff; }
.hv-guarantee strong { color: #fff; }

/* ---------- Demo (admin-editable) ---------- */
.hv-demo { padding-block: 140px; background: #fff; }
.hv-demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hv-demo h2 { font-size: var(--hv-display); line-height: 1.04; font-weight: 800; }
.hv-demo p { margin: 16px 0 0; max-width: 42ch; color: #1e293b; }
.hv-live { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; display: inline-block; }
.hv-cred { margin: 24px 0; display: grid; gap: 8px; }
.hv-cred div { display: flex; gap: 12px; align-items: baseline; }
.hv-cred dt { width: 84px; font-size: 14px; color: #475569; flex: none; }
.hv-cred dd { margin: 0; }
.hv-cred code { font-family: 'JetBrains Mono', monospace; font-size: 14px; background: var(--hv-paper-2); padding: 3px 8px; border-radius: 4px; color: var(--hv-ink); }
.hv-video { aspect-ratio: 16 / 9; background: var(--primary-dark); border-radius: 6px; overflow: hidden; }
.hv-video iframe { width: 100%; height: 100%; border: 0; }
.hv-video-ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font-weight: 600; }
.hv-play { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--primary-dark); display: grid; place-items: center; }
.hv-play svg { width: 28px; height: 28px; }
[dir="rtl"] .hv-play svg { transform: scaleX(-1); }

/* ---------- FAQ as reading text (admin-editable) ---------- */
.hv-faq { padding-block: 140px; background: var(--hv-paper-2); }
.hv-faq-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.hv-faq h2 { font-size: 32px; line-height: 1.15; font-weight: 800; }
.hv-faq-text { columns: 2; column-gap: 56px; }
.hv-faq-text p { margin: 0 0 22px; break-inside: avoid; color: #1e293b; }
.hv-faq-text b { font-weight: 700; color: var(--hv-ink); }

/* ---------- Bottom CTA (admin-editable) ---------- */
.hv-cta { background: var(--primary); color: #fff; }
.hv-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 72px; }
.hv-cta h2 { font-size: 40px; line-height: 1.1; font-weight: 800; }
.hv-cta p { margin: 10px 0 0; color: #fff; font-size: 19px; }   /* white on the blue: 5.17:1 (#e6edff was 4.4:1) */

/* ---------- Footer: name first ---------- */
.hv-footer { background: var(--hv-night); color: #e2e8f0; padding-block: 96px 32px; overflow: hidden; }
.hv-bigword { display: inline-block; line-height: 0; margin-inline-start: -1.1%; }
.hv-bigword img { width: min(100%, 440px); height: auto; }
.hv-foot-row { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.hv-foot-brand p { margin: 0 0 20px; max-width: 36ch; color: #cbd5e1; }
.hv-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hv-foot-cols h3 { font-size: 15px; letter-spacing: 0; color: #94a3b8; font-weight: 500; margin-block-end: 10px; }
.hv-foot-cols a { display: block; font-size: 15px; color: #e2e8f0; padding-block: 4px; }
.hv-foot-cols a:hover { color: #fff; }
.hv-legal { margin-top: 72px; font-size: 13px; color: #94a3b8; }
.hv-legal p { margin: 0; }

/* ---------- Motion: entrances only when motion is welcome ---------- */
.hv-motion .rise { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease-out, transform 600ms cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.hv-motion .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hv-card, .hv-pill, .hv-btn, .fk-tab, .fk-l4-kpi, .hv-roll > span { transition: none !important; } .hv-tier-in .hv-tier-desc, .hv-tier-in .hv-incl { animation: none; } }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1100px) {
    .hv-hero-grid { grid-template-columns: 1fr; row-gap: 48px; }
    .hv-doc-stage { max-width: 760px; }
    .fk-list4 .fk-l4-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hv-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    #page-home { --hv-m: 16px; --hv-axis: 0px; }
    .hv-hero { padding-block: 104px 32px; }
    .hv-hero h1 { font-size: 9vw; }
    .hv-try { grid-template-columns: 1fr; }
    .hv-cards { flex-direction: column; } .hv-card { width: 100%; }
    .hv-doc-stage { overflow: hidden; }
    .hv-doc-stage .fkd { width: 640px; zoom: .53; }
    .hv-board { padding-block: 72px; }
    .hv-axis-head { grid-template-columns: 1fr; } .hv-axis-head h2, .hv-axis-head p { grid-column: 1; } .hv-axis-head h2 { font-size: 9vw; }
    .fk-list4 .fk-l4-kpis { gap: 10px; } .fk-list4 .fk-l4-kpi b { font-size: 18px; }
    .hv-features { padding-block: 96px 16px; } .hv-statement { margin-block-end: 48px; } .hv-statement h2 { font-size: 9vw; }
    .hv-frow { grid-template-columns: 1fr; padding-block-end: 64px; } .hv-t, .hv-pic { grid-column: 1; } .hv-pic { grid-row: 2; justify-self: stretch; margin-top: 20px; }
    .hv-field { width: 100%; aspect-ratio: 16 / 10; }
    .qv-hero, .fk-mv, .sr-stage, .cn-pic { width: 100%; } .fk-mv { overflow-x: auto; }
    .hv-more { grid-template-columns: 1fr; }
    .hv-pricing { grid-template-columns: 1fr; } .hv-field-buy { order: -1; } .hv-field-try, .hv-field-buy { min-height: 70svh; padding: 32px 20px 24px; }
    .hv-pricing h2 { font-size: 11vw; } .hv-price { font-size: 18vw; } .hv-price-row .hv-btn { width: 100%; justify-content: center; }
    .hv-tiers { display: flex; align-self: stretch; } .hv-tiers button { flex: 1; padding-inline: 8px; justify-content: center; }
    .hv-tiers:has(> button:nth-of-type(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .hv-tiers:has(> button:nth-of-type(4)) button { height: auto; min-height: 48px; padding-block: 6px; flex-wrap: wrap; text-align: center; line-height: 1.2; }
    .hv-demo, .hv-faq { padding-block: 88px; } .hv-demo-grid, .hv-faq-grid { grid-template-columns: 1fr; gap: 32px; } .hv-demo h2 { font-size: 9vw; }
    .hv-faq-text { columns: 1; }
    .hv-cta h2 { font-size: 30px; }
    .hv-foot-row { grid-template-columns: 1fr; } .hv-foot-cols { grid-template-columns: 1fr 1fr; }
    .hv-bigword img { width: min(100%, 300px); }
}

/* No underlines on links or buttons (hover/focus included); links read by colour and weight instead */
a, a:hover, a:focus, a:active, a:visited { text-decoration: none !important; }

/* ---------- Arriving from a sign-in page (assets/js/auth-motion.js): the blue curtain that covered the
   screen slides back off the brand side, over a hero of the same blue. Phones / reduced motion: none. ---------- */
html.au-arriving body#page-home::after { content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none; background: #1e40af; animation: au-home-retreat 500ms cubic-bezier(.65,0,.35,1) 50ms both; }
@keyframes au-home-retreat { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }
html[dir="rtl"].au-arriving body#page-home::after { animation-name: au-home-retreat-rtl; }
@keyframes au-home-retreat-rtl { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
html.au-arriving .hv-hero-copy > *, html.au-arriving .hv-doc-stage { animation: au-home-in 450ms cubic-bezier(.2,.8,.2,1) 300ms both; }
@keyframes au-home-in { from { opacity: 0; transform: translateX(calc(-60px * var(--au-o, 1))); filter: blur(8px); } }
html[dir="rtl"] body#page-home { --au-o: -1; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
    html.au-arriving body#page-home::after { display: none; }
    html.au-arriving .hv-hero-copy > *, html.au-arriving .hv-doc-stage { animation: none; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Invoice list: customer names masked like the hero invoice (no initials on the avatar either) */
.invoices-table-modern .cust-chip .fkd-mask { background: #cbd5e1; height: .8em; }

/* Footer language button: flush with the text above it, menu opening inwards (as .footer-brand on the old footer) */
.hv-foot-brand .lang-dropdown { margin: 0; width: fit-content; }
.hv-foot-brand .lang-dropdown-menu { right: auto; left: 0; transform-origin: bottom left; }
[dir="rtl"] .hv-foot-brand .lang-dropdown-menu { left: auto; right: 0; transform-origin: bottom right; }
/* ---------- Shared nav, language menu and phone menu on the four site pages (index, overview, about,
   checkout): flat FAKTUUR blue, the page's own face, no glow, no blur, no hairline. Scoped to
   #page-home / .hv-page, so the admin panel and client portal keep theirs. ---------- */
:is(#page-home, .hv-page) .lang-dropdown-btn { font-family: inherit; font-size: 13px; letter-spacing: 0; }
:is(#page-home, .hv-page) .navbar .nav-actions .btn-primary { background: var(--primary); color: #fff; box-shadow: none; }
:is(#page-home, .hv-page) .navbar .nav-actions .btn-primary:hover { background: #1d4ed8; color: #fff; box-shadow: none; transform: none; }
:is(#page-home, .hv-page) .navbar:not(.scrolled) .nav-actions .btn-primary { background: #fff; color: var(--primary); }
:is(#page-home, .hv-page) .navbar:not(.scrolled) .nav-actions .btn-primary:hover { background: var(--hv-pale); color: var(--primary); }
:is(#page-home, .hv-page) .mobile-toggle { -webkit-backdrop-filter: none; backdrop-filter: none; }
:is(#page-home, .hv-page) .mobile-nav { border-left: 0; border-inline-start: 0; }
:is(#page-home, .hv-page) .mobile-nav-brand { border-bottom: 0; padding-bottom: 8px; }
:is(#page-home, .hv-page) .mobile-nav-actions { border-top: 0; padding-top: 28px; }
:is(#page-home, .hv-page) .mobile-nav-links a.nav-current, :is(#page-home, .hv-page) .mobile-nav-links a.is-active { color: #93c5fd; }   /* the current page on the dark panel (blue was 3.7:1) */
:is(#page-home, .hv-page) .mobile-nav-actions .btn-primary { background: var(--primary); box-shadow: none; }
:is(#page-home, .hv-page) .mobile-nav-actions .btn-primary:hover { background: #1d4ed8; box-shadow: none; }
/* the closed overlay was an invisible layer over the whole page; now it is gone until the menu opens */
:is(#page-home, .hv-page) .mobile-nav-overlay { -webkit-backdrop-filter: none; backdrop-filter: none; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
:is(#page-home, .hv-page) .mobile-nav-overlay.active { visibility: visible; transition: opacity .3s ease; }
/* with reduced motion there is no fade to keep, so a closed language menu is simply not there */
@media (prefers-reduced-motion: reduce) {
    :is(#page-home, .hv-page) .lang-dropdown:not(.open) .lang-dropdown-menu { display: none; }
}
