/* =====================================================================
   BOOKKIZEE — 2026 REFRESH LAYER
   Loaded after theme.css. Overrides tokens site-wide and restyles the
   shell (header, footer, section heads, buttons, icons) plus the new
   homepage components. Remove this file's <link> in partials/header.php
   to roll back to the previous look.

   Direction: modern SaaS, cleaner.
   - One accent (brand blue). No violet gradients, no rainbow icon tiles.
   - Flat white/mist surfaces, hairline borders, restrained shadows.
   - Lighter display weights; sentence-case labels instead of caps badges.
   ===================================================================== */

:root {
  --bk-blue: #2350e6;
  --bk-blue-deep: #1a3fc0;
  --bk-blue-soft: #eef2fe;
  --bk-indigo: #2350e6;
  --bk-violet: #2350e6;
  --bk-emerald: #12a150;

  --bk-ink-900: #0e1b2c;
  --bk-ink-800: #132438;
  --bk-ink-700: #1d3149;
  --bk-surface-2: #f4f6f8;
  --bk-surface-3: #eceff3;
  --bk-text: #0e1b2c;
  --bk-text-2: #4a5768;
  --bk-text-3: #7b8796;
  --bk-border: #e3e7ec;
  --bk-border-strong: #cfd5dd;

  --bk-grad-brand: linear-gradient(0deg, #2350e6, #2350e6);
  --bk-grad-blue: linear-gradient(0deg, #2350e6, #2350e6);
  --bk-grad-cool: linear-gradient(0deg, #2350e6, #2350e6);
  --bk-grad-ink: linear-gradient(0deg, #0e1b2c, #0e1b2c);

  --fs-display: clamp(2.4rem, 4.6vw, 3.6rem);
  --fs-h1: clamp(2.1rem, 4vw, 3rem);
  --fs-h2: clamp(1.7rem, 3vw, 2.4rem);

  --bk-r-lg: 14px;
  --bk-r-xl: 18px;
  --bk-r-2xl: 22px;

  --bk-sh-1: 0 1px 2px rgba(14, 27, 44, .04);
  --bk-sh-2: 0 1px 2px rgba(14, 27, 44, .04), 0 4px 12px rgba(14, 27, 44, .05);
  --bk-sh-3: 0 2px 4px rgba(14, 27, 44, .04), 0 10px 24px rgba(14, 27, 44, .07);
  --bk-sh-4: 0 4px 8px rgba(14, 27, 44, .05), 0 24px 48px rgba(14, 27, 44, .10);
  --bk-sh-glow: none;

  --bk-nav-h: 68px;
}

/* ---------------------------------------------------------------------
   Base type
--------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.025em; }
.u-display { font-weight: 700; }
::selection { background: rgba(35, 80, 230, .16); }
.u-grad-text, .u-grad-cyan { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; }

/* Quieter scroll reveals: fade only, short */
.js [data-reveal],
.js [data-reveal="left"],
.js [data-reveal="right"],
.js [data-reveal="scale"] { transform: none; transition: opacity .5s ease; }

/* ---------------------------------------------------------------------
   Header — flat full-width bar instead of a floating pill
--------------------------------------------------------------------- */
.site-nav, .site-nav.is-scrolled {
  padding-top: 0;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--bk-border); }
.nav-pill, .site-nav.is-scrolled .nav-pill {
  max-width: var(--bk-container);
  height: var(--bk-nav-h);
  padding: 0 clamp(20px, 4vw, 40px);
  background: none; border: 0; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.brand { font-weight: 700; font-size: 1.2rem; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 1rem; box-shadow: none; background: var(--bk-blue); }
.brand .dot { display: none; }

.gnav { gap: 2px; }
.m-link { font-family: var(--bk-font-body); font-weight: 500; font-size: var(--fs-xs); padding: 8px 12px; border-radius: 8px; color: var(--bk-text-2); }
.m-item:hover .m-link, .m-item:focus-within .m-link { background: var(--bk-surface-2); color: var(--bk-ink-900); }
.m-link.current, .m-item.is-open .m-link { background: none; color: var(--bk-ink-900); box-shadow: inset 0 -2px 0 var(--bk-blue); border-radius: 0; }
.drop-menu { border-radius: 12px; top: calc(100% + 10px); }
.drop-menu a { font-family: var(--bk-font-body); font-weight: 500; }
.drop-menu a:hover { transform: none; }
.nav-burger { border-radius: 10px; }
.mobile-drawer .m-group > button, .mdraw-link { font-family: var(--bk-font-body); font-weight: 600; }

/* ---------------------------------------------------------------------
   Buttons — solid, calm, no sheen
--------------------------------------------------------------------- */
.btn { font-family: var(--bk-font-body); font-weight: 600; border-radius: 10px; padding: 13px 22px; }
.btn:hover { transform: none; }
.btn-primary { --_bg: var(--bk-blue); --_sh: none; }
.btn-primary:hover { --_bg: var(--bk-blue-deep); }
.btn-primary::after { display: none; }
.btn-outline { --_border: var(--bk-border-strong); }
.btn-outline:hover { --_fg: var(--bk-ink-900); --_border: var(--bk-ink-900); box-shadow: none; }
.btn-white { --_fg: var(--bk-ink-900); --_sh: none; }
.btn-white:hover { --_bg: #e8edf6; }
.btn-ghost-dark { --_fg: #e6ebf2; --_border: rgba(255, 255, 255, .24); }
.btn-sm { padding: 9px 16px; font-size: var(--fs-xs); }
.nav-actions .btn { padding: 9px 16px; font-size: var(--fs-xs); }
.btn-lg { padding: 15px 26px; font-size: var(--fs-sm); }
.btn .arr { display: none; }
.pill-link { font-family: var(--bk-font-body); font-weight: 600; background: none; border: 0; padding: 0; border-radius: 0; }
.pill-link:hover { background: none; color: var(--bk-blue-deep); transform: none; text-decoration: underline; text-underline-offset: 4px; border-color: transparent; }

/* ---------------------------------------------------------------------
   Section heads — left aligned, sentence-case label
--------------------------------------------------------------------- */
.sec-head, .sec-head.center { max-width: 760px; margin-inline: 0; text-align: left; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center p { margin-inline: 0; }
.sec-head p { font-size: var(--fs-md); max-width: 620px; }
.sec-tag, .sec-tag.on-dark {
  font-family: var(--bk-font-body); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: 0; text-transform: none;
  background: none; border: 0; padding: 0; border-radius: 0;
  justify-content: flex-start !important;
}
.sec-tag i { display: none; }
.sec-tag.on-dark { color: #8fb0ff; }
.feature-copy .kicker { font-family: var(--bk-font-body); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0; text-transform: none; }
.feature-copy .kicker i { display: none; }
.dark-panel .feature-copy .kicker { color: #8fb0ff; }
.feature-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.feature-copy .lead { font-size: var(--fs-md); }

/* ---------------------------------------------------------------------
   Icons — one colour family instead of rainbow gradients
--------------------------------------------------------------------- */
.ic-blue, .ic-cool, .ic-violet, .ic-emerald, .ic-sunset, .ic-rose, .ic-ink {
  background: var(--bk-blue-soft); color: var(--bk-blue); box-shadow: none;
}
.icon-shell { box-shadow: none; color: var(--bk-blue); border-radius: 10px; }
.icon-shell.sm { border-radius: 9px; }
.feature-bullet .fb-ic { box-shadow: none; color: var(--bk-blue); }
.dark-panel .ic-blue, .dark-panel .ic-cool, .dark-panel .ic-violet, .dark-panel .ic-emerald,
.dark-panel .ic-sunset, .dark-panel .ic-rose, .dark-panel .fb-ic,
.dash-console .ic-blue, .dash-console .ic-violet {
  background: rgba(255, 255, 255, .08); color: #a9c1ff;
}
.flow-node .fn-ic { color: var(--bk-blue); }
.mega-link .ic { color: var(--bk-blue); }

/* ---------------------------------------------------------------------
   Cards — flatter
--------------------------------------------------------------------- */
.card { box-shadow: none; }
.card-hover:hover { transform: none; box-shadow: var(--bk-sh-2); border-color: var(--bk-border-strong); }
.card-glow::before { display: none; }
.section-muted { background: var(--bk-surface-2); border-block: 0; }

/* ---------------------------------------------------------------------
   Dark bands — plain ink, no glow blobs
--------------------------------------------------------------------- */
.dark-panel::before { display: none; }
.dark-panel h2, .dark-panel h3, .dark-panel h4 { color: #f3f6fa; }
.dark-panel p, .dark-panel .feature-copy .lead, .dark-panel .feature-bullet span { color: #a3b0c2; }
.vis-frame .frame-glow { display: none; }
.dark-panel.band-cont { padding-top: 0; }
.dark-panel.band-cont > .container { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: var(--bk-section); }

/* ---------------------------------------------------------------------
   Homepage — hero
--------------------------------------------------------------------- */
.hero { padding: calc(var(--bk-nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px); }
.hero-bg { background: var(--bk-surface); }
.hero-grid { display: none; }
.hero-kicker {
  background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0;
  font-family: var(--bk-font-body); font-weight: 600; font-size: var(--fs-xs); color: var(--bk-blue);
  margin-bottom: 18px;
}
.hero h1 { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -.035em; max-width: 13ch; margin-bottom: 20px; }
.hero .hero-sub { font-size: var(--fs-lg); max-width: 500px; margin-bottom: 30px; }
.hero-actions { gap: 12px; margin-bottom: 34px; }
.hero-trust { gap: 8px 26px; padding-top: 22px; }
.ht-item { font-weight: 500; }
.ht-item i { color: var(--bk-text-3); font-size: 1.1rem; }
.ht-item .n { font-weight: 700; }

.dash-console {
  background: var(--bk-ink-900); border-radius: 16px; padding: 12px;
  transform: none; animation: none;
}
.dash-card { border-radius: 10px; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.dash-card .dc-value { font-weight: 700; }
.dash-top .title { letter-spacing: 0; font-weight: 600; }
.dash-top .traffic i { background: rgba(255, 255, 255, .22) !important; }
.bar, .bars .bar:nth-child(3n), .bars .bar:nth-child(2n) { background: #4a74ff; opacity: .9; }
.bars .bar:nth-child(2n) { background: #7f9cff; }
.spark .area { opacity: .35; }
.float-card { border-radius: 12px; box-shadow: var(--bk-sh-3); background: #fff; }
.float-card .fc-ic { border-radius: 10px; }
.fl-1 { top: -22px; left: -22px; }
.fl-2 { bottom: -24px; right: -18px; }
@media (max-width: 640px) { .fl-1 { left: -4px; } .fl-2 { right: -4px; } }

/* logo strip */
.logo-strip { border-block: 1px solid var(--bk-border); padding-block: 28px; }
.logo-strip .ls-label { letter-spacing: 0; font-weight: 500; margin-bottom: 18px; }
.logo-item { border: 0; background: none; padding: 6px 18px; font-family: var(--bk-font-body); font-weight: 600; color: var(--bk-text-3); }
.logo-item img { filter: grayscale(1); opacity: .75; }

/* ---------------------------------------------------------------------
   Homepage — before / after comparison
--------------------------------------------------------------------- */
.cmp { border: 1px solid var(--bk-border); border-radius: 14px; overflow: hidden; background: #fff; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-row + .cmp-row { border-top: 1px solid var(--bk-border); }
.cmp-cell { display: flex; gap: 14px; align-items: flex-start; padding: 18px 24px; }
.cmp-cell + .cmp-cell { border-left: 1px solid var(--bk-border); }
.cmp-head .cmp-cell { padding-block: 14px; font-weight: 600; font-size: var(--fs-xs); color: var(--bk-text-3); background: var(--bk-surface-2); }
.cmp-head .cmp-cell + .cmp-cell { color: var(--bk-blue); }
.cmp-cell i { font-size: 1.25rem; line-height: 1.3; flex-shrink: 0; }
.cmp-cell b { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--bk-text); }
.cmp-cell span { display: block; font-size: var(--fs-xs); color: var(--bk-text-2); }
.cmp-before i { color: var(--bk-text-3); }
.cmp-before b { color: var(--bk-text-2); }
.cmp-after { background: #fbfcff; }
.cmp-after i { color: var(--bk-blue); }
@media (max-width: 720px) {
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-head { display: none; }
  .cmp-cell + .cmp-cell { border-left: 0; border-top: 1px dashed var(--bk-border); }
  .cmp-before::after { content: "Today"; margin-left: auto; font-size: var(--fs-2xs); color: var(--bk-text-3); }
}

/* ---------------------------------------------------------------------
   Homepage — industries
--------------------------------------------------------------------- */
.industry-card { border-radius: 16px; box-shadow: none; border: 0; min-height: 440px; }
.industry-card:hover { transform: none; box-shadow: var(--bk-sh-3); }
.industry-card .ind-img { opacity: .62; }
.industry-card:hover .ind-img { opacity: .72; transform: scale(1.03); }
.industry-card::after { background: linear-gradient(180deg, rgba(14, 27, 44, 0) 20%, rgba(14, 27, 44, .94) 72%); }
.industry-card .ind-body { min-height: 440px; padding: 26px; }
.ind-tag { text-transform: none; letter-spacing: 0; font-family: var(--bk-font-body); font-weight: 600; background: rgba(14, 27, 44, .45); border-color: rgba(255, 255, 255, .18); }
.industry-card h3 { font-size: 1.4rem; }
.industry-card .ind-desc { color: #c3ccd8; }
.industry-card .ind-chip { background: none; border-color: rgba(255, 255, 255, .22); color: #dfe5ee; font-weight: 500; }
.industry-card .ind-chips { margin-bottom: 18px; }
.industry-card .ind-link { font-family: var(--bk-font-body); font-weight: 600; }

/* ---------------------------------------------------------------------
   Homepage — module list (ruled grid instead of 12 cards)
--------------------------------------------------------------------- */
.mods {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--bk-border); border-left: 1px solid var(--bk-border);
  border-radius: 14px; overflow: hidden;
}
.mod {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 22px 24px;
  border-right: 1px solid var(--bk-border); border-bottom: 1px solid var(--bk-border);
  background: #fff; transition: background .15s ease;
}
.mod > i { font-size: 1.35rem; color: var(--bk-blue); line-height: 1.2; }
.mod b { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--bk-text); margin-bottom: 2px; }
.mod span span { display: block; font-size: var(--fs-xs); color: var(--bk-text-2); line-height: 1.5; }
a.mod:hover { background: var(--bk-surface-2); }
a.mod:hover b { color: var(--bk-blue); }
@media (max-width: 1024px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mods { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Homepage — feature visuals
--------------------------------------------------------------------- */
.scan-step.is-done .ss-ic { background: rgba(18, 161, 80, .16); color: #4ade80; }
.plate { box-shadow: none !important; }
.an-card { border-radius: 12px; }
.an-card:hover { transform: none; }
.an-card .an-v { font-weight: 700; }
.tour-shell { border-radius: 16px; box-shadow: var(--bk-sh-3); }
.tour-tab { font-family: var(--bk-font-body); font-weight: 500; border-radius: 8px; }
.tour-tab.is-on { background: #fff; color: var(--bk-ink-900); box-shadow: none; }
.flow-node { box-shadow: none; }
.flow-node:hover { transform: none; box-shadow: none; }
.flow-node .fn-num { background: #fff; color: var(--bk-text-2); border: 1px solid var(--bk-border-strong); box-shadow: none; font-weight: 600; }
.roi-wrap { box-shadow: var(--bk-sh-2); }
.roi-wrap::before { display: none; }
.roi-out .ro:hover { transform: none; box-shadow: none; }
.roi-out .ro h4 { font-weight: 700; }
.roi-out .ro .ro-lbl { text-transform: none; letter-spacing: 0; }
.video-frame { border-radius: 16px; }

/* security: two-column list instead of narrow cards */
.sec-grid { grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--bk-border); }
.sec-item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 20px 8px 20px 0; border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--bk-border); }
.sec-item:hover { transform: none; box-shadow: none; }
.sec-item .icon-shell { grid-row: span 2; }
.sec-item h3 { margin: 2px 0 2px; }
@media (max-width: 640px) { .sec-grid { grid-template-columns: 1fr; } }

/* operational wins */
.tst-card { border-radius: 14px; box-shadow: none; min-height: 280px; }
.tst-card:hover { transform: none; box-shadow: var(--bk-sh-2); }
.tst-card .tst-q { display: none; }
.tst-card .tst-text { margin-top: 0; }
.tst-card .tst-name { font-weight: 700; }

/* CTA band */
.cta-band { border-radius: 20px; box-shadow: none; text-align: left; border: 0; }
.cta-band::before { display: none; }
.cta-band .grid-z > span:first-child { letter-spacing: 0 !important; text-transform: none !important; font-family: var(--bk-font-body) !important; font-weight: 600; font-size: var(--fs-xs) !important; color: #8fb0ff !important; }
.cta-band h2 { margin-inline: 0; max-width: 640px; }
.cta-band p { margin-inline: 0; }
.cta-actions { justify-content: flex-start; }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer { color: #9aa7b8; }
.footer-col h5 { text-transform: none; letter-spacing: 0; font-family: var(--bk-font-body); font-weight: 600; font-size: var(--fs-xs); }
.footer-col a.fl i { display: none; }
.footer-col a.fl:hover { transform: none; }

/* ---------------------------------------------------------------------
   Inner pages — keep them consistent with the calmer hero
--------------------------------------------------------------------- */
.page-hero.bg-grad, .bg-grad { background: var(--bk-surface-2) !important; }
.page-hero h1 { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------------------------------------------------------------------
   Pass 2 fixes
--------------------------------------------------------------------- */
.hero h1 { max-width: 19ch; font-size: clamp(2.3rem, 4.1vw, 3.3rem); }
.fl-1 { top: 36%; left: -44px; }
.fl-2 { bottom: -26px; right: -18px; }
@media (max-width: 1024px) { .fl-1 { left: -8px; } }
.float-card .fc-ic.ic-emerald, .float-card .fc-ic.ic-blue, .float-card .fc-ic.ic-cool { color: var(--bk-blue); }
.dash-card .dc-delta { color: #8b98ad; padding-left: 0; }
.dash-card .dc-delta.dc-up { color: #4ade80; padding-left: 9px; }
.tour-pane p, .td-copy p { color: #a3b0c2; }

/* FAQ aligned with the left-aligned section head */
.acc-wrap { margin-inline: 0; }

/* CTA: brand-blue band so it doesn't merge with the dark footer */
.cta-band { background: var(--bk-blue); }
.cta-band p { color: #dbe3ff; }
.cta-band .grid-z > span:first-child { color: #c9d6ff !important; }
.cta-band .btn-ghost-dark { --_fg: #fff; --_border: rgba(255, 255, 255, .45); }
.cta-band .btn-ghost-dark:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 640px) { .float-card.fl-1, .float-card.fl-2 { display: none; } }

/* ---------------------------------------------------------------------
   Pass 3 — accessibility & touch (WCAG AA)
--------------------------------------------------------------------- */
/* muted text was #7b8796 (3.6:1 on white); this passes 4.5:1 on white and mist */
:root { --bk-text-3: #5d6977; }
.cta-band .grid-z > span:first-child { color: #e6ecff !important; }
.f-reg-pills span { font-size: .75rem; }

/* focus ring: brand blue disappears on ink/blue surfaces */
.dark-panel :focus-visible, .site-footer :focus-visible,
.cta-band :focus-visible, .dash-console :focus-visible, .industry-card:focus-visible { outline-color: #fff; }

/* touch targets ≥ 24px (WCAG 2.5.8), visuals unchanged */
.tst-dots { gap: 0; }
.tst-dot { box-sizing: content-box; padding: 8px; background-clip: content-box; cursor: pointer; }
.footer-bottom a { display: inline-block; padding: 10px 4px; }
.form-toast .close { min-width: 44px; min-height: 44px; cursor: pointer; }
[role="tab"], .tst-dot, .nav-burger, .m-group > button { cursor: pointer; }

/* scrollable product-tour tabs: hint there is more to the right */
@media (max-width: 760px) {
  .tour-tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    scroll-snap-type: x proximity;
  }
  .tour-tab { scroll-snap-align: start; }
}

/* Client logo strip — logos only, larger */
.logo-strip .marquee-track { align-items: center; gap: 28px; }
.logo-item { padding: 0; }
.logo-item img { height: 72px; width: auto; }
@media (max-width: 760px) { .logo-item img { height: 56px; } }

/* Industry hero photos — keep natural aspect ratio */
.about-map-card img { width: 100%; height: auto; }

/* Contact form status messages */
.form-status { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--bk-r-md); font-size: var(--fs-xs); font-weight: 600; background: #fdecec; color: #a3231b; }
.form-status.ok { background: #e7f6ec; color: #1f6b3a; }
form[data-toast] .form-status[data-form-error] { margin: 14px 0 0; }
form[data-toast] button[disabled] { opacity: .6; cursor: progress; }

/* Brand logo image */
.brand-logo { height: 32px; width: auto; display: block; }
@media (max-width: 760px) { .site-nav .brand-logo { height: 28px; } }
