/* ═══════════════════════════════════════════════════════════════════════
   HASHBACK — PUBLIC SITE DESIGN SYSTEM
   Loaded after hashstyles.css by styles/maincss.php, on public pages only.
   The logged-in portal does not load this file, so nothing here touches it.

   1. Tokens (light + dark)       6. Navigation + drawer
   2. Legacy token bridge         7. Footer
   3. Base + typography           8. Shared components (legacy class names)
   4. Layout primitives           9. Homepage + page sections
   5. Buttons + links            10. Forms, modals, utilities, motion
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────────────────────────── */
:root,
html[data-theme="light"] {
    color-scheme: light;

    --hb-font: 'Century Gothic', CenturyGothic, 'URW Gothic', AppleGothic, 'Jost', sans-serif;
    --hb-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

    /* Light mode is built from the brand, not from greys: page and surfaces
       carry a faint tint of the blue, and text is a deep navy drawn from it.
       Contrast on --hb-bg: text 15:1, body 10.8:1, secondary 5.3:1. */
    --hb-bg: #f7f8ff;
    --hb-bg-alt: #eef1fd;
    --hb-surface: #ffffff;
    --hb-subtle: #eef1fd;
    --hb-text: #141b4d;
    --hb-text-body: #2a3470;
    --hb-text-2: #5a6399;
    --hb-border: #dde2f6;
    /* Cards are told apart by tone, never by an outline. */
    --hb-card: #eef1fd;
    --hb-border-strong: #c3cbef;

    /* Brand blue #4154f1: buttons, links, active states (5.2:1 here). */
    --hb-accent: #4154f1;
    --hb-accent-hover: #2d3ecf;
    --hb-accent-text: #4154f1;
    --hb-accent-soft: rgba(65, 84, 241, .08);
    --hb-on-accent: #ffffff;
    /* Brand green #41aa28 for ticks, icons, rules and status (3:1, the bar for
       non-text marks). Green text uses a deeper step of the same green,
       #2c7d1a (4.8:1), so section labels can be green in both themes. */
    --hb-green: #41aa28;
    --hb-green-text: #2c7d1a;
    --hb-eyebrow: var(--hb-green-text);

    --hb-warn: #8a5a00;
    --hb-danger: #b42318;

    --hb-radius-sm: 4px;
    --hb-radius: 6px;
    --hb-radius-lg: 8px;

    --hb-container: 1200px;
    --hb-gutter: 1.25rem;
    --hb-section: 5rem;
    --hb-section-sm: 3.5rem;

    --hb-ease: 160ms ease;
    --hb-shadow-menu: 0 8px 24px rgba(20, 27, 77, .08);
}

html[data-theme="dark"] {
    color-scheme: dark;

    /* The original HashBack dark: blue-shifted navy surfaces. */
    --hb-bg: #090b12;
    --hb-bg-alt: #0f1118;
    --hb-surface: #111520;
    --hb-subtle: #161a28;
    --hb-text: #f0f2ff;
    --hb-text-body: #c2c8e8;
    --hb-text-2: #7a85b0;
    --hb-border: rgba(65, 84, 241, .16);
    --hb-card: #111520;
    --hb-border-strong: rgba(65, 84, 241, .32);

    /* Buttons keep #4154f1; link text uses the lighter brand blue #6b7fff,
       because #4154f1 is only 3.5:1 on this background. */
    --hb-accent: #4154f1;
    --hb-accent-hover: #2d3ecf;
    --hb-accent-text: #6b7fff;
    --hb-accent-soft: rgba(65, 84, 241, .12);
    --hb-on-accent: #ffffff;
    /* Green reads well here (6.6:1), so it can carry text in dark mode. */
    --hb-green: #41aa28;
    --hb-green-text: #41aa28;
    --hb-eyebrow: #41aa28;

    --hb-warn: #e0b04a;
    --hb-danger: #f07a70;

    --hb-shadow-menu: 0 8px 24px rgba(0, 0, 0, .4);
}

/* ── 2. LEGACY TOKEN BRIDGE ────────────────────────────────────────────
   hashstyles.css and the page-level <style> blocks read these names. Pointing
   them at the new tokens restyles every legacy component in both themes.   */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
    --font-brand: var(--hb-font);
    --font-mono: var(--hb-mono);

    --primary: var(--hb-accent-text);
    --primary-d: var(--hb-accent-text);
    --primary-l: var(--hb-accent-text);
    --blue: var(--hb-accent-text);
    --blue-d: var(--hb-accent);
    --blue-l: var(--hb-accent-text);
    --blue-glow: transparent;
    --blue-soft: var(--hb-accent-soft);
    --blue-border: var(--hb-border-strong);

    --grad-primary: var(--hb-accent);
    --grad: var(--hb-accent);
    --grad-soft: var(--hb-accent-soft);
    --grad-glow: transparent;

    --dark: var(--hb-bg);
    --dark2: var(--hb-bg-alt);
    --dark3: var(--hb-subtle);
    --card-bg: var(--hb-surface);

    --border: var(--hb-border);
    --border-g: var(--hb-border);

    --text-muted: var(--hb-text-2);
    --text-body: var(--hb-text-body);
    --white: var(--hb-text);
    --amber: var(--hb-warn);
    --red: var(--hb-danger);

    --bs-body-font-family: var(--hb-font);
    --bs-body-color: var(--hb-text-body);
    --bs-body-bg: var(--hb-bg);
    --bs-border-color: var(--hb-border);
    --bs-success: var(--hb-green);
    --bs-link-color: var(--hb-accent-text);
    --bs-link-hover-color: var(--hb-accent-hover);
}

/* Dark mode keeps the original HashBack pairing: green primary, blue accent. */
html[data-theme="dark"] {
    --primary: var(--hb-green-text);
    --primary-d: var(--hb-green-text);
    --primary-l: var(--hb-green-text);
    --border-g: rgba(65, 170, 40, .22);
}

/* ── 3. BASE + TYPOGRAPHY ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--hb-font);
    font-size: 1rem;
    line-height: 1.65;
    background: var(--hb-bg);
    color: var(--hb-text-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hb-font);
    color: var(--hb-text);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

p { margin-bottom: 1rem; }

a { color: var(--hb-accent-text); text-underline-offset: 3px; }
a:hover { color: var(--hb-accent-hover); }
html[data-theme="dark"] a:hover { color: var(--hb-text); }

code, kbd, pre, samp { font-family: var(--hb-mono); }

::selection { background: var(--hb-accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--hb-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--hb-border-strong); border-radius: 0; border: 2px solid var(--hb-bg-alt); }

:focus-visible {
    outline: 2px solid var(--hb-accent-text);
    outline-offset: 2px;
    border-radius: 2px;
}

* { text-shadow: none !important; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--hb-text); color: var(--hb-bg); padding: .5rem .9rem;
    border-radius: var(--hb-radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: .75rem; color: var(--hb-bg); }

/* ── 4. LAYOUT PRIMITIVES ──────────────────────────────────────────────── */
.container { max-width: calc(var(--hb-container) + var(--hb-gutter) * 2); padding-left: var(--hb-gutter); padding-right: var(--hb-gutter); }

.hb-section { padding: var(--hb-section) 0; }
.hb-section--alt { background: var(--hb-bg-alt); }
/* On a tinted section a card steps the other way: white in light, raised navy in dark. */
.hb-section--alt, .section-dark, .bg-light { --hb-card: #ffffff; }
html[data-theme="dark"] .hb-section--alt,
html[data-theme="dark"] .section-dark,
html[data-theme="dark"] .bg-light { --hb-card: #161a28; }
.hb-section--tight { padding: var(--hb-section-sm) 0; }
.hb-section + .hb-section:not(.hb-section--alt) { border-top: 1px solid var(--hb-border); }
.hb-section--alt { border-top: 1px solid var(--hb-border); border-bottom: 1px solid var(--hb-border); }

.hb-eyebrow {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--hb-eyebrow);
    margin-bottom: .75rem;
    letter-spacing: .02em;
}

.hb-h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.hb-h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 1rem; }
.hb-h3 { font-size: 1.125rem; line-height: 1.35; margin-bottom: .5rem; }

.hb-lead { font-size: 1.125rem; line-height: 1.65; color: var(--hb-text-2); max-width: 36em; }
.hb-muted { color: var(--hb-text-2); }
.hb-small { font-size: .875rem; }

.hb-section-head { max-width: 640px; margin-bottom: 3rem; }
.hb-section-head p { color: var(--hb-text-2); font-size: 1.0625rem; margin: 0; }
.hb-section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.hb-section-head--split > div { max-width: 640px; }

/* ── 5. BUTTONS + LINKS ────────────────────────────────────────────────── */
.hb-btn,
.btn-primary-g, .btn-grad, .btn-blue,
.btn-outline-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .625rem 1.25rem;
    font-family: var(--hb-font);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: var(--hb-radius);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background-color var(--hb-ease), border-color var(--hb-ease), color var(--hb-ease);
    white-space: nowrap;
}

.hb-btn--primary,
.btn-primary-g, .btn-grad, .btn-blue {
    background: var(--hb-accent);
    border-color: var(--hb-accent);
    color: var(--hb-on-accent);
}
.hb-btn--primary:hover,
.btn-primary-g:hover, .btn-grad:hover, .btn-blue:hover {
    background: var(--hb-accent-hover);
    border-color: var(--hb-accent-hover);
    color: var(--hb-on-accent);
    box-shadow: none;
    transform: none;
}

.hb-btn--secondary,
.btn-outline-g {
    background: var(--hb-surface);
    border-color: var(--hb-border-strong);
    color: var(--hb-text);
}
.hb-btn--secondary:hover,
.btn-outline-g:hover {
    background: var(--hb-subtle);
    border-color: var(--hb-text-2);
    color: var(--hb-text);
    box-shadow: none;
    transform: none;
}

.hb-btn--sm { min-height: 36px; padding: .4rem .9rem; font-size: .875rem; }
.hb-btn i, .btn-primary-g i, .btn-outline-g i, .btn-grad i, .btn-blue i { font-size: 1em; }

.hb-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.hb-link {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--hb-accent-text);
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
}
.hb-link:hover { color: var(--hb-accent-hover); text-decoration: underline; }
html[data-theme="dark"] .hb-link:hover { color: var(--hb-text); }
.hb-link--muted { color: var(--hb-text-2); font-weight: 600; }
.hb-link--muted:hover { color: var(--hb-text); }

/* ── 6. NAVIGATION ─────────────────────────────────────────────────────── */
:root .navbar {
    background: var(--hb-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--hb-border);
    padding: 0;
    min-height: 68px;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: none;
}
:root .navbar > .container { min-height: 68px; flex-wrap: nowrap; }

.hb-logo { display: inline-flex; align-items: center; line-height: 0; }
.hb-logo img { height: 34px; width: auto; display: block; }
.hb-logo .logo-on-dark { display: none; }
html[data-theme="dark"] .hb-logo .logo-on-light { display: none; }
html[data-theme="dark"] .hb-logo .logo-on-dark { display: block; }

.hb-nav { display: flex; align-items: center; gap: .125rem; margin: 0 auto; }

:root .nav-link {
    color: var(--hb-text-body) !important;
    font-weight: 600;
    font-size: .9375rem;
    padding: .5rem .75rem !important;
    border-radius: var(--hb-radius);
    transition: color var(--hb-ease), background-color var(--hb-ease);
}
:root .nav-link:hover { color: var(--hb-text) !important; background: var(--hb-subtle); }
:root .nav-link.active { color: var(--hb-accent-text) !important; }
:root .nav-link.dropdown-toggle::after {
    border: 0; content: "\F282"; font-family: bootstrap-icons; font-size: .7rem;
    vertical-align: 0; margin-left: .3rem; color: var(--hb-text-2);
}

:root .dropdown-menu {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow-menu);
    padding: .375rem;
    min-width: 240px;
    margin-top: .5rem !important;
}
:root .dropdown-item {
    color: var(--hb-text-body);
    font-size: .9375rem;
    border-radius: var(--hb-radius-sm);
    padding: .5rem .75rem;
    white-space: normal;
}
:root .dropdown-item small { display: block; color: var(--hb-text-2); font-size: .8125rem; font-weight: 400; line-height: 1.4; }
:root .dropdown-item:hover, :root .dropdown-item:focus { background: var(--hb-subtle); color: var(--hb-text); }
:root .dropdown-item.active, :root .dropdown-item:active { background: var(--hb-accent-soft); color: var(--hb-accent-text); }
:root .dropdown-item.active small { color: var(--hb-text-2); }
.dropdown-header { color: var(--hb-text-2); font-size: .8125rem; }
.dropdown-header strong { display: block; color: var(--hb-text); font-size: .9375rem; }
.dropdown-header small { display: block; }
.dropdown-divider { border-color: var(--hb-border); opacity: 1; margin: .375rem 0; }
.dropdown-label { padding: .5rem .75rem .25rem; font-size: .75rem; font-weight: 700; color: var(--hb-text-2); }

.hb-nav-actions { display: flex; align-items: center; gap: .5rem; }

:root .btn-user-dropdown {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border-strong);
    color: var(--hb-text);
    border-radius: var(--hb-radius);
    padding: .45rem .85rem;
    font-weight: 600; font-size: .9375rem;
    box-shadow: none;
}

/* Theme toggle — one icon button, same footprint in both themes. */
.hb-theme-toggle {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    color: var(--hb-text-body);
    cursor: pointer;
    transition: background-color var(--hb-ease), border-color var(--hb-ease);
    padding: 0;
    flex: none;
}
.hb-theme-toggle:hover { background: var(--hb-subtle); border-color: var(--hb-border-strong); }
.hb-theme-toggle .bi { font-size: 1rem; line-height: 1; }
.hb-theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .hb-theme-toggle .icon-sun { display: inline; }
html[data-theme="dark"] .hb-theme-toggle .icon-moon { display: none; }

:root .navbar-toggler {
    width: 40px; height: 40px;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    background: transparent;
    box-shadow: none;
}
:root .navbar-toggler:hover { background: var(--hb-subtle); border-color: var(--hb-border-strong); }
:root .navbar-toggler i { color: var(--hb-text); font-size: 1.35rem; transition: none; }
:root .navbar-toggler.open i { transform: none; }
:root .navbar-toggler:focus { box-shadow: none; }

/* Mobile drawer */
.nav-drawer-overlay { background: rgba(20, 27, 77, .45); backdrop-filter: none; -webkit-backdrop-filter: none; transition: opacity 200ms ease; }
:root .nav-drawer {
    left: auto; right: 0;
    width: min(340px, 88vw);
    background: var(--hb-bg);
    border-right: 0;
    border-left: 1px solid var(--hb-border);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 200ms ease;
}
:root .nav-drawer.open { transform: translateX(0); }
.nav-drawer::before { display: none; }
.nav-drawer-header { padding: 0 1.25rem; min-height: 68px; border-bottom: 1px solid var(--hb-border); }
.nav-drawer-close {
    width: 40px; height: 40px; border-radius: var(--hb-radius);
    border: 1px solid var(--hb-border); color: var(--hb-text); background: transparent;
}
.nav-drawer-close:hover { background: var(--hb-subtle); border-color: var(--hb-border-strong); color: var(--hb-text); }
.nav-drawer-body { padding: .75rem 0 1rem; }
.drawer-section-label {
    color: var(--hb-text-2); opacity: 1;
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 1rem 1.25rem .375rem;
}
:root .drawer-link {
    display: flex; align-items: center; gap: .75rem;
    min-height: 44px;
    padding: .5rem 1.25rem;
    color: var(--hb-text);
    font-weight: 600; font-size: 1rem;
    border-left: 0;
    background: transparent;
}
.drawer-link i { display: none; }
:root .drawer-link:hover { background: var(--hb-subtle); color: var(--hb-text); }
:root .drawer-link.active { color: var(--hb-accent-text); background: var(--hb-accent-soft); }
.drawer-link.drawer-sub { padding-left: 1.25rem; font-size: 1rem; color: var(--hb-text); }
.drawer-divider { border-color: var(--hb-border); opacity: 1; margin: .5rem 1.25rem; }
.drawer-live { display: none; }
:root .drawer-user-section { background: var(--hb-bg-alt); border: 1px solid var(--hb-border); border-radius: var(--hb-radius-lg); margin: .25rem 1.25rem .5rem; padding: .75rem; display: flex; gap: .75rem; align-items: center; }
.drawer-user-avatar { color: var(--hb-text-2); font-size: 1.75rem; line-height: 1; }
.drawer-user-info strong { display: block; color: var(--hb-text); }
.drawer-user-info small { display: block; color: var(--hb-text-2); font-size: .8125rem; word-break: break-all; }
.nav-drawer-footer { border-top: 1px solid var(--hb-border); padding: 1rem 1.25rem; gap: .5rem; }
.nav-drawer-footer .hb-btn { width: 100%; }
.drawer-btn-login, .drawer-btn-register, .drawer-btn-logout { display: none; }
.drawer-theme-row { display: flex; align-items: center; justify-content: space-between; padding: .5rem 1.25rem; color: var(--hb-text-2); font-size: .9375rem; }

/* ── 7. FOOTER ─────────────────────────────────────────────────────────── */
footer.hb-footer {
    background: var(--hb-bg-alt);
    border-top: 1px solid var(--hb-border);
    padding: 4rem 0 2rem;
    overflow: visible;
}
footer::before { display: none !important; }
.hb-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.hb-footer-brand img { height: 32px; width: auto; }
.hb-footer-about { color: var(--hb-text-2); font-size: .9375rem; margin: 1rem 0 1.25rem; max-width: 30ch; }
.hb-footer-contact { list-style: none; padding: 0; margin: 0; font-size: .9375rem; }
.hb-footer-contact li { margin-bottom: .35rem; }
.hb-footer-contact a { color: var(--hb-text-body); text-decoration: none; }
.hb-footer-contact a:hover { color: var(--hb-accent-text); text-decoration: underline; }
.hb-footer h2 {
    font-size: .8125rem; font-weight: 700; color: var(--hb-text);
    text-transform: uppercase; letter-spacing: .05em;
    margin: 0 0 1rem;
}
.hb-footer ul.hb-footer-links { list-style: none; padding: 0; margin: 0; }
.hb-footer-links li { margin-bottom: .5rem; }
.hb-footer-links a { color: var(--hb-text-2); text-decoration: none; font-size: .9375rem; }
.hb-footer-links a:hover { color: var(--hb-text); text-decoration: underline; }
.hb-footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.hb-footer-social a {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--hb-border); border-radius: var(--hb-radius);
    color: var(--hb-text-2); text-decoration: none;
}
.hb-footer-social a:hover { color: var(--hb-text); border-color: var(--hb-border-strong); background: var(--hb-surface); }
.hb-footer-bottom {
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hb-border);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-size: .875rem; color: var(--hb-text-2);
}
.hb-footer-bottom a { color: var(--hb-text-2); text-decoration: none; }
.hb-footer-bottom a:hover { color: var(--hb-text); text-decoration: underline; }
.hb-footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.hb-footer-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hb-border); }
.hb-footer-posts-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; gap: 1rem; }
.hb-footer-posts-head h2 { margin: 0; }
.hb-footer-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.hb-footer-post { display: flex; gap: .875rem; text-decoration: none; align-items: flex-start; }
.hb-footer-post img, .hb-footer-post .noimg {
    width: 88px; height: 60px; object-fit: cover; flex: none;
    border-radius: var(--hb-radius-sm); border: 1px solid var(--hb-border); background: var(--hb-subtle);
}
.hb-footer-post .noimg { display: flex; align-items: center; justify-content: center; color: var(--hb-text-2); }
.hb-footer-post-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--hb-text); font-weight: 600; font-size: .9375rem; line-height: 1.4;
}
.hb-footer-post:hover .hb-footer-post-title { text-decoration: underline; }
.hb-footer-post-meta { display: block; color: var(--hb-text-2); font-size: .8125rem; margin-top: .25rem; }

@media (max-width: 991.98px) {
    .hb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb-footer-grid > :first-child { grid-column: 1 / -1; }
    .hb-footer-posts-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── 8. SHARED COMPONENTS (legacy class names, restyled) ───────────────── */

/* Decoration removed outright */
.grid-bg, .dot-grid, .bg-dots { background-image: none !important; }
.blob-1, .blob-2, .blob, .orb, .glow, .error-body::before, .error-body::after,
.service-card::before, .stats-bar::before, .modal-content::before { display: none !important; content: none !important; }
.fade-up, .float, .delay-1, .delay-2, .delay-3, .delay-4 { animation: none !important; }

.section-dark { background: var(--hb-bg-alt); }
.section-darker { background: var(--hb-bg); }

/* Eyebrow labels: plain small text instead of pills */
.label-pill, .label-pill.green, .label-pill.blue,
.page-hero-eyebrow, .hero-eyebrow, .services-hero-badge, .section-pill {
    display: block;
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    color: var(--hb-eyebrow);
    font-family: var(--hb-font);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
    margin-bottom: .75rem;
}
.label-pill i, .services-hero-badge i { display: none; }

.section-title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--hb-text);
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.section-sub { color: var(--hb-text-2); font-size: 1.0625rem; max-width: 640px; line-height: 1.6; }
.highlight, .highlight-blue, .highlight-grad, .hero-title .highlight, .hero-title .highlight-b { color: inherit; }
.text-green, .t-green { color: var(--hb-green) !important; }
.text-blue, .text-blue-l { color: var(--hb-accent-text) !important; }
.text-success { color: var(--hb-green) !important; }
.font-mono { font-family: var(--hb-font); }

/* Inner page heroes */
.page-hero, .services-hero, .dec-hero {
    background: var(--hb-bg) !important;
    border-bottom: 1px solid var(--hb-border);
    padding: 4rem 0 3rem;
}
.page-hero h1, .services-hero h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--hb-text);
}
.page-hero p, .services-hero p { color: var(--hb-text-2); font-size: 1.125rem; max-width: 40em; }

.hero { min-height: 0; }
.hero-title { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--hb-text); }
.hero-subtitle { color: var(--hb-text-2); }
.hero-trust-bar { display: none; }

/* Cards: a flat tone, no outline, no lift, no glow */
.faq-item {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: none !important;
    transform: none !important;
}
.feature-card, .service-card, .step-card, .deep-detail-card, .pricing-card,
.hashpay-plan-card, .sim-card, .decode-demo, .hero-mockup, .error-terminal {
    background: var(--hb-card);
    border: 0;
    border-radius: var(--hb-radius-lg);
    box-shadow: none !important;
    transform: none !important;
}
.feature-card:hover, .service-card:hover, .step-card:hover, .pricing-card:hover,
.hashpay-plan-card:hover, .deep-detail-card:hover {
    border-color: transparent;
    box-shadow: none !important;
    transform: none !important;
}
a.feature-card:hover h5 { color: var(--hb-accent-text); }
.feature-card h5, .service-card h4, .step-card h5 { color: var(--hb-text); font-weight: 700; }
.feature-card p, .service-card p, .step-card p { color: var(--hb-text-2); }

.feature-icon, .service-icon, .service-icon.blue, .service-icon.green, .service-icon.amber,
.deep-dive-icon, .feature-icon.green {
    width: auto; height: auto;
    background: none !important;
    border: 0 !important;
    border-radius: 0;
    color: var(--hb-text-2) !important;
    font-size: 1.25rem;
    justify-content: flex-start;
    margin-bottom: .75rem;
}
.deep-detail-card > i { color: var(--hb-text-2) !important; }

.service-tags { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.service-tag, .chip, .category-pill, .savings-badge, .live-badge, .live-badge.blue, .featured-badge, .credit-chip {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: var(--hb-text-2);
    font-size: .8125rem;
    font-weight: 600;
    box-shadow: none;
}
.featured-badge {
    position: static; transform: none; display: inline-block;
    color: var(--hb-accent-text); text-transform: none; letter-spacing: 0; margin-bottom: .5rem;
}
.live-dot, .live-dot.blue, .drawer-live-dot, .status-dot, .live-dot-sm {
    animation: none !important; box-shadow: none !important; background: var(--hb-green);
}

.step-number, .process-num, .term-number, .hiw-num, .dec-step-n {
    background: none !important; border: 0 !important; box-shadow: none !important;
    color: var(--hb-text-2) !important;
    font-family: var(--hb-font) !important;
    font-weight: 700;
    width: auto; height: auto; border-radius: 0;
}

.process-step { border-top: 1px solid var(--hb-border); padding-top: 1rem; }
.why-stat { border: 0; }

.info-box, .info-box.blue, .info-box.green, .info-box.success {
    background: var(--hb-card) !important;
    border: 0 !important;
    border-radius: var(--hb-radius) !important;
    color: var(--hb-text-body) !important;
}

/* Tabs → underline tabs */
.tab-switcher {
    display: flex; flex-wrap: wrap; gap: 0;
    background: none; border: 0; border-bottom: 1px solid var(--hb-border);
    border-radius: 0; padding: 0;
}
.tab-switcher button {
    background: none; border: 0; border-bottom: 2px solid transparent;
    border-radius: 0; padding: .75rem 1rem; margin-bottom: -1px;
    color: var(--hb-text-2); font-weight: 600; font-size: .9375rem; box-shadow: none !important;
}
.tab-switcher button:hover { color: var(--hb-text); }
.tab-switcher button.active { background: none; color: var(--hb-text); border-bottom-color: var(--hb-accent); }

/* FAQ → separated list */
.faq-item {
    border: 0 !important; border-bottom: 1px solid var(--hb-border) !important;
    border-radius: 0; background: none; margin: 0;
}
.faq-item:first-child { border-top: 1px solid var(--hb-border) !important; }
.faq-question { padding: 1.125rem 0; color: var(--hb-text); font-weight: 700; font-size: 1rem; }
.faq-question:hover { color: var(--hb-accent-text); }
.faq-icon { color: var(--hb-text-2); }
.faq-item.open .faq-icon { color: var(--hb-text); }
.faq-answer { padding: 0 2rem 1.25rem 0; color: var(--hb-text-2); font-size: .9688rem; }

/* Pricing figures use the brand face, not a monospace display font */
.pricing-rate, .plan-price, .stat-number, .hero-stat strong {
    font-family: var(--hb-font);
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--hb-text);
}
.pricing-name { color: var(--hb-text-2); letter-spacing: .04em; }
.pricing-divider { border-color: var(--hb-border); opacity: 1; }
.pricing-feature i { color: var(--hb-green); }
.pricing-card.featured { border: 0; box-shadow: none; }
/* Page-level cards (login, register, blog, reviews, demos): same flat tone. */
:root .auth-card, :root .reg-card, :root .reg-otp-block, :root .tx-detail-card,
:root .b-card, :root .b-promo, :root .author-box, :root .side-related, :root .toc,
:root .side-cta {
    background: var(--hb-card); border: 0; box-shadow: none;
}

/* Partners: a static row of logos */
.partner-strip { background: var(--hb-bg); border-top: 1px solid var(--hb-border); border-bottom: 1px solid var(--hb-border); padding: 2rem 0; }
.partner-label { font-family: var(--hb-font); text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--hb-text-2); text-align: left; margin: 0; }

/* Error page */
.error-code-inner { background: none; -webkit-text-fill-color: currentColor; color: var(--hb-text); }
.error-code, .error-code-ghost { font-family: var(--hb-font); letter-spacing: -0.03em; }
.error-code-ghost { display: none; }
.error-code:hover .error-code-inner { animation: none; }

/* Modal + misc surfaces */
.modal-content { background: var(--hb-surface); border: 0; box-shadow: var(--hb-shadow-menu); border-radius: var(--hb-radius-lg); color: var(--hb-text-body); }
.modal-header, .modal-footer { border-color: var(--hb-border); }
.modal-title { color: var(--hb-text); }
.btn-close { filter: none; }
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
.modal-backdrop.show { opacity: .45; }

/* ── 9. HOMEPAGE + PAGE SECTIONS ───────────────────────────────────────── */

/* Hero */
.hb-hero { padding: 3.5rem 0 4.5rem; }
.hb-hero-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); gap: 3rem; align-items: center; }
/* Hero: headline and intro side by side, the people animation full width below. */
.hb-hero-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: 2.75rem; }
.hb-hero-head .hb-h1 { margin-bottom: 0; }
.hb-hero-head .hb-lead { margin-bottom: 1.5rem; }
/* Dashboard section: copy beside the product-screen animation. */
.hb-dash { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; align-items: center; }
.hb-dash .hb-muted { margin-bottom: 1.5rem; }
.hb-hero .hb-lead { margin-bottom: 2rem; }
.hb-hero-note { margin-top: 1.5rem; font-size: .875rem; color: var(--hb-text-2); }
.hb-hero-note a { color: inherit; }

.hb-shot { margin: 0; }
.hb-shot-frame {
    border: 0;
    border-radius: var(--hb-radius-lg);
    background: var(--hb-bg-alt);
    overflow: hidden;
}
.hb-shot-bar {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .75rem; border-bottom: 1px solid var(--hb-border);
    font-size: .75rem; color: var(--hb-text-2); background: var(--hb-surface);
}
.hb-shot-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--hb-border-strong); }
.hb-shot-bar em { font-style: normal; margin-left: .5rem; }
.hb-shot img { display: block; width: 100%; height: auto; }
.hb-shot figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--hb-text-2); }
.hb-shot--phone { max-width: 340px; width: 100%; justify-self: center; }
.hb-shot--phone .hb-shot-frame { border-radius: 14px; background: #090b12; }
.hb-shot--phone figcaption { text-align: center; }

/* Google rating badge (from GoogleReviewsController) — flat text link */
.gr-badge { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; color: var(--hb-text-2) !important; font-size: .875rem !important; }
.gr-badge:hover { color: var(--hb-text) !important; text-decoration: underline; }
.gr-badge b { color: var(--hb-text) !important; }

/* Logo row */
.hb-logos { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.hb-logos ul { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
/* Several partner marks have white lettering, so each sits on the same dark
   plate in both themes — readable, and one consistent size per logo. */
.hb-logos ul { gap: .75rem; }
.hb-logos li {
    width: 168px; height: 56px; padding: .75rem 1rem;
    display: flex; align-items: center; justify-content: center;
    background: #111520; border: 1px solid var(--hb-border); border-radius: var(--hb-radius);
}
.hb-logos img { max-height: 100%; max-width: 100%; width: auto; height: auto; display: block; object-fit: contain; }
.hb-logos .partner-label { margin-right: 1rem; }

/* Products: a ruled two-column list */
.hb-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hb-border); }
.hb-product {
    padding: 2rem 2.5rem 2rem 0;
    border-bottom: 1px solid var(--hb-border);
    display: flex; flex-direction: column;
}
.hb-product:nth-child(even) { padding: 2rem 0 2rem 2.5rem; border-left: 1px solid var(--hb-border); }
.hb-product-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.hb-product-name { font-size: 1.1875rem; margin: 0 0 .5rem; }
.hb-product-kind { font-size: .8125rem; color: var(--hb-text-2); font-weight: 600; white-space: nowrap; }
.hb-product p { color: var(--hb-text-2); margin-bottom: 1rem; }
.hb-ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .9375rem; color: var(--hb-text-body); }
.hb-ticks li { position: relative; padding-left: 1.375rem; margin-bottom: .375rem; }
.hb-ticks li::before {
    content: ""; position: absolute; left: 0; top: .6em;
    width: .5rem; height: .5rem; border-radius: 1px; background: var(--hb-green);
}
.hb-product .hb-actions { margin-top: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hb-tag-soon { font-size: .75rem; font-weight: 700; color: var(--hb-warn); border: 1px solid currentColor; border-radius: var(--hb-radius-sm); padding: .05rem .4rem; white-space: nowrap; }

/* Solutions: one card per industry, led by a screenshot of the live system */
.hb-solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.hb-solution {
    display: flex; flex-direction: column; background: var(--hb-card);
    border-radius: var(--hb-radius-lg); overflow: hidden;
}
.hb-solution > .hb-visual { border-radius: 0; }
.hb-solution > div { padding: 0 1.5rem; }
.hb-solution > div:nth-of-type(1) { padding-top: 1.5rem; margin-bottom: .875rem; }
.hb-solution h3 { font-size: 1.1875rem; margin: 0 0 .25rem; }
.hb-solution .hb-for { color: var(--hb-text-2); font-size: .9375rem; margin: 0; }
.hb-solution p { margin: 0 0 1.25rem; color: var(--hb-text-body); font-size: .9688rem; }
.hb-solution .hb-solution-links {
    display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center;
    margin-top: auto; padding-bottom: 1.5rem;
}

/* ── Visuals: photos, screenshots and their placeholders ───────────────── */
.hb-visual { margin: 0; position: relative; overflow: hidden; border-radius: var(--hb-radius-lg); background: var(--hb-subtle); width: 100%; }
.hb-visual picture, .hb-visual img { display: block; width: 100%; height: 100%; }
.hb-visual img { object-fit: cover; object-position: top center; }
.hb-visual--banner { margin: 0 0 1.5rem; }
.hb-visual--banner img { object-position: center; }
.hb-visual--inline { margin-top: 2rem; }
.hb-visual--inline img { object-position: center; }

/* Browser-style frame for screenshots of live websites. */
.hb-visual--browser { border-bottom: 0; }
.hb-visual--browser::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 22px; z-index: 1;
    background: #e6e9f7;
    background-image:
        radial-gradient(circle at 12px 11px, #c3cbef 3.5px, transparent 4px),
        radial-gradient(circle at 24px 11px, #c3cbef 3.5px, transparent 4px),
        radial-gradient(circle at 36px 11px, #c3cbef 3.5px, transparent 4px);
}
.hb-visual--browser picture { position: absolute; inset: 22px 0 0 0; height: auto; }
html[data-theme="dark"] .hb-visual--browser::before {
    background-color: #1b2033;
    background-image:
        radial-gradient(circle at 12px 11px, #3a4266 3.5px, transparent 4px),
        radial-gradient(circle at 24px 11px, #3a4266 3.5px, transparent 4px),
        radial-gradient(circle at 36px 11px, #3a4266 3.5px, transparent 4px);
}

/* Placeholder: same footprint as the photo, says what belongs there. */
.hb-visual--empty { display: flex; align-items: center; justify-content: center; background: var(--hb-accent-soft); }
.hb-visual--empty::before { display: none; }
.hb-ph {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    text-align: center; padding: 1.5rem; max-width: 440px; color: var(--hb-text-2);
}
.hb-ph .bi { font-size: 1.75rem; color: var(--hb-accent-text); opacity: .7; }
.hb-ph-brief { font-size: .9375rem; line-height: 1.5; color: var(--hb-text-body); }
.hb-ph-file { font-size: .75rem; color: var(--hb-text-2); background: none; padding: 0; word-break: break-all; }

/* Services: four categories */
.hb-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.hb-service {
    border: 0; border-radius: var(--hb-radius-lg);
    background: var(--hb-card); padding: 1.75rem;
}
.hb-service h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.hb-service > p { color: var(--hb-text-2); margin-bottom: 1rem; }
.hb-service ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hb-border); }
.hb-service li { padding: .625rem 0; border-bottom: 1px solid var(--hb-border); font-size: .9375rem; }
.hb-service li:last-child { border-bottom: 0; padding-bottom: 0; }
.hb-service li strong { display: block; color: var(--hb-text); font-weight: 700; }
.hb-service li span { color: var(--hb-text-2); }

/* Why: numbered principle list */
.hb-why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 4rem; }
.hb-why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; margin: 0; }
.hb-why-list > div { border-top: 1px solid var(--hb-border); padding-top: 1rem; }
.hb-why-list dt { color: var(--hb-text); font-weight: 700; margin-bottom: .375rem; }
.hb-why-list dd { color: var(--hb-text-2); margin: 0; font-size: .9375rem; }

/* Services page: intro column + definition list */
.hb-svc-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 4rem; align-items: start; }
.hb-svc-list { margin: 0; border-top: 1px solid var(--hb-border); }
.hb-svc-list > div { padding: 1.25rem 0; border-bottom: 1px solid var(--hb-border); }
.hb-svc-list dt { color: var(--hb-text); font-weight: 700; margin-bottom: .25rem; font-size: 1.0625rem; }
.hb-svc-list dd { color: var(--hb-text-2); margin: 0; }

/* Numbered steps */
.hb-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.hb-steps li { counter-increment: step; border-top: 1px solid var(--hb-border); padding-top: 1rem; }
.hb-steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--hb-eyebrow); font-weight: 700; font-size: .875rem; margin-bottom: .5rem; }
.hb-steps strong { display: block; color: var(--hb-text); margin-bottom: .25rem; }
.hb-steps span { color: var(--hb-text-2); font-size: .9375rem; }

/* FAQ page */
.hb-faq-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4rem; align-items: start; max-width: 960px; }
.hb-faq-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: .25rem; }
.hb-faq-nav a { color: var(--hb-text-2); text-decoration: none; font-weight: 600; padding: .35rem 0; }
.hb-faq-nav a:hover { color: var(--hb-text); }
.hb-faq-group + .hb-faq-group { margin-top: 3rem; }
.hb-faq-group h2 { margin-bottom: 1rem; }
.hb-faq { border-bottom: 1px solid var(--hb-border); }
.hb-faq:first-of-type { border-top: 1px solid var(--hb-border); }
.hb-faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; gap: 1rem;
    padding: 1.125rem 0; color: var(--hb-text); font-weight: 700;
}
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: "+"; color: var(--hb-text-2); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.hb-faq[open] summary::after { content: "–"; }
.hb-faq summary:hover { color: var(--hb-accent-text); }
.hb-faq p { color: var(--hb-text-2); margin: 0 2rem 1.25rem 0; }

.hb-why-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-ticks--cols { columns: 2; column-gap: 2.5rem; margin: 0; }
.hb-ticks--cols li { break-inside: avoid; margin-bottom: .75rem; }
@media (max-width: 991.98px) { .hb-why-list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hb-why-list--3 { grid-template-columns: 1fr; } .hb-ticks--cols { columns: 1; } }

/* Developer strip */
.hb-dev { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hb-dev a { display: block; padding: 1.5rem; text-decoration: none; background: var(--hb-card); border-radius: var(--hb-radius-lg); color: inherit; transition: background-color var(--hb-ease); }
.hb-dev a:hover { background: var(--hb-accent-soft); }
.hb-dev strong { display: block; color: var(--hb-text); margin-bottom: .25rem; }
.hb-dev span { color: var(--hb-text-2); font-size: .9375rem; display: block; }
.hb-dev em { font-style: normal; color: var(--hb-accent-text); font-weight: 700; font-size: .875rem; margin-top: .75rem; display: inline-block; }

/* Contact */
.hb-contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.hb-contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hb-border); }
.hb-contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hb-border); flex-wrap: wrap; }
.hb-contact-list span { color: var(--hb-text-2); }
.hb-contact-list a { font-weight: 700; text-decoration: none; }
.hb-contact-list a:hover { text-decoration: underline; }

/* Page header for inner pages built on the new system */
.hb-page-head { padding: 4rem 0 3rem; border-bottom: 1px solid var(--hb-border); }
.hb-page-head .hb-lead { margin: 0; }
.hb-crumbs { font-size: .875rem; color: var(--hb-text-2); margin-bottom: 1rem; }
.hb-crumbs a { color: var(--hb-text-2); text-decoration: none; }
.hb-crumbs a:hover { color: var(--hb-text); text-decoration: underline; }

/* Prose for long-form pages */
.hb-prose { max-width: 70ch; }
.hb-prose h2 { font-size: 1.375rem; margin: 2.5rem 0 .75rem; }
.hb-prose h3 { font-size: 1.125rem; margin: 2rem 0 .5rem; }
.hb-prose p, .hb-prose li { color: var(--hb-text-body); }

/* Google reviews */
.hb-testimonials-grid {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    gap: 4rem; align-items: start;
}
.hb-testimonials-intro .hb-h2 { margin-bottom: 1.75rem; }

/* Aggregate rating: a big figure, not a pill. */
.hb-rating { display: flex; align-items: center; gap: 1rem; text-decoration: none; margin-bottom: 1.5rem; }
.hb-rating-score { font-size: 3.5rem; font-weight: 700; line-height: 1; color: var(--hb-text); letter-spacing: -.02em; }
.hb-rating-detail { display: flex; flex-direction: column; gap: .35rem; }
.hb-rating-stars, .hb-quote-stars { color: #f5a623; display: inline-flex; gap: 2px; font-size: 1rem; line-height: 1; }
.hb-rating-count { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--hb-text-2); }
.hb-rating:hover .hb-rating-count { color: var(--hb-text); text-decoration: underline; }

/* Quotes: tone, not outlines. */
.hb-quote {
    margin: 0; background: var(--hb-card); border-radius: var(--hb-radius-lg);
    padding: 1.75rem; display: flex; flex-direction: column;
}
.hb-quote-stars { margin-bottom: 1rem; font-size: .875rem; }
.hb-quote-text { margin: 0; color: var(--hb-text-body); font-size: 1rem; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hb-quote-text p { margin: 0; }
.hb-quote-text.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.hb-quote--lead { padding: 2.25rem; }
.hb-quote--lead .hb-quote-text { font-size: 1.1875rem; line-height: 1.65; color: var(--hb-text); -webkit-line-clamp: 9; }
.hb-quote-more {
    align-self: flex-start; margin-top: .75rem; padding: 0; border: 0; background: none;
    color: var(--hb-accent-text); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.hb-quote-more:hover { text-decoration: underline; }
.hb-quote-who { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1.5rem; }
.hb-quote-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.hb-quote-avatar--initial { display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-accent-soft); color: var(--hb-accent-text); font-weight: 700; }
.hb-quote-meta { display: flex; flex-direction: column; min-width: 0; }
.hb-quote-meta a, .hb-quote-meta > span { color: var(--hb-text); font-weight: 600; font-size: .9375rem; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-quote-meta a:hover { text-decoration: underline; }
.hb-quote-meta small { color: var(--hb-text-2); font-size: .8125rem; }

.hb-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
@media (min-width: 992px) { .hb-quotes { margin-left: calc((100% - 4rem) * .8 / 2.2 + 4rem); } }
@media (max-width: 991.98px) {
    .hb-testimonials-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hb-rating-score { font-size: 3rem; }
    .hb-quote--lead { padding: 1.75rem; }
    .hb-quote--lead .hb-quote-text { font-size: 1.0625rem; }
}

/* ── 10. FORMS, UTILITIES, MOTION ──────────────────────────────────────── */
:root .form-control, :root .form-select, .reg-input, .decode-input, .code-input {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border-strong);
    color: var(--hb-text) !important;
    border-radius: var(--hb-radius);
    min-height: 44px;
    font-family: var(--hb-font);
    font-size: 1rem;
    box-shadow: none;
}
:root .form-control:focus, :root .form-select:focus, .reg-input:focus, .decode-input:focus {
    background: var(--hb-surface);
    border-color: var(--hb-accent-text);
    box-shadow: 0 0 0 3px var(--hb-accent-soft);
    outline: none;
}
.form-control::placeholder { color: var(--hb-text-2) !important; opacity: .8; }
.form-label { color: var(--hb-text); font-weight: 600; font-size: .9375rem; }
.form-check-input { border-color: var(--hb-border-strong); background-color: var(--hb-surface); }
.form-check-input:checked { background-color: var(--hb-accent); border-color: var(--hb-accent); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--hb-surface) inset !important;
    -webkit-text-fill-color: var(--hb-text) !important;
    border: 1px solid var(--hb-border-strong) !important;
}

/* Bootstrap colour utilities pulled back into the palette */
.text-muted { color: var(--hb-text-2) !important; }
.border, .border-top, .border-bottom { border-color: var(--hb-border) !important; }
.bg-light { background: var(--hb-bg-alt) !important; }
.text-white { color: var(--hb-text) !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .hb-nav .nav-link { padding: .5rem .55rem !important; font-size: .9rem; }
}
@media (max-width: 991.98px) {
    :root { --hb-section: 3.75rem; --hb-section-sm: 2.75rem; }
    .hb-hero { padding: 3rem 0; }
    .hb-hero-grid, .hb-hero-head, .hb-dash, .hb-why, .hb-contact, .hb-svc-block { grid-template-columns: 1fr; gap: 2.5rem; }
    .hb-hero-head { gap: 1.25rem; margin-bottom: 2rem; }
    .hb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb-faq-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .hb-faq-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; }
    .hb-solutions { grid-template-columns: 1fr; max-width: 640px; }
    .hb-dev { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-hero, .services-hero, .hb-page-head { padding: 3rem 0 2.25rem; }
}
@media (max-width: 767.98px) {
    .hb-products, .hb-services, .hb-why-list, .hb-steps { grid-template-columns: 1fr; }
    .hb-visual--banner { aspect-ratio: 4/3 !important; }
    .hb-product, .hb-product:nth-child(even) { padding: 1.75rem 0; border-left: 0; }
    .hb-logos { gap: 1rem; }
    .hb-logos ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: .5rem; }
    .hb-logos li { width: auto; height: 52px; }
}
@media (max-width: 575.98px) {
    :root { --hb-gutter: 1rem; }
    .hb-btn-row .hb-btn { flex: 1 1 100%; }
    .hb-section-head--split .hb-btn-row .hb-btn, .hb-btn-row .hb-btn--sm { flex: 0 0 auto; }
    .hb-shot--phone { max-width: 300px; }
    .hb-dev { grid-template-columns: 1fr; }
    .hb-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .hb-service { padding: 1.25rem; }
}

/* ── HERO ANIMATION (navs/hero-demo.php) ───────────────────────────────────
   Everything inside the stage is sized in em off a container-query font size
   (1em = 1/48 of the stage width), so devices and UI scale as one.        */
.hd { margin: 0; width: 100%; max-width: 580px; justify-self: center; }
.hd {
    --hd-screen: var(--hb-surface);
    --hd-well: var(--hb-subtle);
    --hd-bezel: #141b4d;
    --hd-metal: #c3cbef;
    --hd-shadow: 0 1.4em 2.8em rgba(20, 27, 77, .16);
}
html[data-theme="dark"] .hd {
    --hd-screen: #111520;
    --hd-well: #181d2d;
    --hd-bezel: #2a3150;
    --hd-metal: #2a3150;
    --hd-shadow: 0 1.4em 2.8em rgba(0, 0, 0, .45);
}
.hd-stage {
    container-type: inline-size; position: relative; aspect-ratio: 48 / 40;
    background: var(--hb-bg-alt); border-radius: var(--hb-radius-lg); overflow: hidden;
}
.hd-scenes { position: absolute; inset: 0; font-size: calc(100cqw / 48); line-height: 1.35; }

/* Scenes cross-fade; the incoming device rises slightly. */
.hd-scene {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(1.2em) scale(.98);
    transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s;
}
.hd-scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease .1s, transform .55s ease .1s; }

/* ── Devices ── */
.hd-device { position: relative; background: var(--hd-bezel); box-shadow: var(--hd-shadow); }
.hd-screen {
    position: relative; overflow: hidden; height: 100%;
    display: flex; flex-direction: column;
    background: var(--hd-screen); color: var(--hb-text-body); font-family: var(--hb-font);
}
.hd-phone  { width: 17em; height: 34em; padding: .55em; border-radius: 2.6em; }
.hd-phone .hd-screen { border-radius: 2.1em; }
.hd-phone .hd-screen::before {           /* camera notch */
    content: ''; position: absolute; top: .55em; left: 50%; width: 4.2em; height: 1.1em;
    transform: translateX(-50%); background: var(--hd-bezel); border-radius: 1em; z-index: 3;
}
.hd-phone .hd-bar { padding-top: 2.1em; }
.hd-tablet { width: 40em; height: 28.5em; padding: 1em; border-radius: 1.8em; }
.hd-tablet .hd-screen { border-radius: .8em; }
.hd-laptop { width: 39em; height: 25.5em; padding: .8em .8em 1em; border-radius: 1.2em 1.2em .2em .2em; margin-bottom: 1.4em; }
.hd-laptop .hd-screen { border-radius: .3em; }
.hd-laptop-base {
    position: absolute; left: -3.5em; right: -3.5em; bottom: -1.4em; height: 1.4em;
    background: var(--hd-metal); border-radius: 0 0 1.2em 1.2em;
}
.hd-laptop-base::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 7em; height: .5em;
    transform: translateX(-50%); background: var(--hd-bezel); opacity: .25; border-radius: 0 0 .6em .6em;
}
.hd-desktop { width: 42em; height: 25em; padding: .7em; border-radius: .9em; margin-bottom: 4.2em; }
.hd-desktop .hd-screen { border-radius: .35em; }
.hd-desktop-neck {
    position: absolute; left: 50%; bottom: -3.6em; width: 5em; height: 3.6em;
    transform: translateX(-50%); background: var(--hd-metal);
}
.hd-desktop-foot {
    position: absolute; left: 50%; bottom: -4.2em; width: 16em; height: .7em;
    transform: translateX(-50%); background: var(--hd-metal); border-radius: .7em .7em .2em .2em;
}

/* ── App chrome ── */
.hd-bar {
    display: flex; align-items: center; gap: .6em; padding: .8em 1.1em;
    border-bottom: 1px solid var(--hb-border); font-size: 1em; flex: none;
}
.hd-bar b { color: var(--hb-text); font-weight: 700; }
.hd-mark {
    width: 1.7em; height: 1.7em; border-radius: .45em; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-accent); color: #fff; font-weight: 700; font-size: .95em;
}
.hd-crumb { color: var(--hb-text-2); font-size: .88em; }
.hd-crumb::before { content: '/'; margin-right: .6em; opacity: .5; }
.hd-ava {
    margin-left: auto; width: 2em; height: 2em; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-green); color: #fff; font-style: normal; font-weight: 700; font-size: .75em;
}
.hd-pad { padding: 1.2em 1.3em; flex: 1; display: flex; flex-direction: column; gap: .75em; min-height: 0; }
.hd-h { font-weight: 700; color: var(--hb-text); font-size: 1.3em; line-height: 1.2; }
.hd-h--sm { font-size: 1.05em; }
.hd-sub { color: var(--hb-text-2); font-size: .85em; }
.hd-field {
    display: flex; flex-direction: column; gap: .2em;
    background: var(--hd-well); border-radius: .55em; padding: .55em .85em; font-size: .95em;
}
.hd-field span { font-size: .78em; color: var(--hb-text-2); }
.hd-field em { font-style: normal; color: var(--hb-text); font-weight: 600; min-height: 1.35em; }

/* Typing: single-line values are revealed left to right. */
.hd-type { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: bottom; max-width: 0; }
.hd-type.is-on { max-width: 22em; transition: max-width .55s steps(14, end); }
.hd-type--msg { display: block; white-space: normal; max-width: none; clip-path: inset(0 0 100% 0); }
.hd-type--msg.is-on { clip-path: inset(0 0 0 0); transition: clip-path 1.1s steps(4, end); }

/* Buttons and the tap that presses them. */
.hd-btn {
    position: relative; align-self: flex-start; white-space: nowrap;
    background: var(--hb-accent); color: #fff; border-radius: .55em;
    padding: .6em 1.1em; font-weight: 700; font-size: .95em;
    transition: transform .15s ease, background-color .15s ease;
}
.hd-btn--block { align-self: stretch; text-align: center; margin-top: auto; padding: .8em 1em; }
.hd-btn.is-pressed, .hd-prompt-actions .is-pressed { transform: scale(.94); background-color: var(--hb-accent-hover); }
.hd-btn.is-pressed::after, .hd-prompt-actions .is-pressed::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 2.4em; height: 2.4em;
    margin: -1.2em 0 0 -1.2em; border-radius: 50%; background: rgba(255, 255, 255, .55);
    animation: hdTap .45s ease-out forwards; pointer-events: none;
}
@keyframes hdTap { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ── Scene 1: STK push ── */
.hd-prompt {
    position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
    padding: 1.2em; background: rgba(9, 11, 18, .55);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.hd-prompt.is-in { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.hd-prompt-card {
    width: 100%; background: #ffffff; color: #141b4d; border-radius: .8em; padding: 1.1em;
    font-size: .9em; transform: translateY(1.2em); transition: transform .3s ease;
}
.hd-prompt.is-in .hd-prompt-card { transform: none; }
.hd-prompt-head { font-weight: 700; letter-spacing: .08em; color: #2c7d1a; font-size: .85em; margin-bottom: .5em; }
.hd-prompt-card p { margin: 0 0 .8em; line-height: 1.45; color: #2a3470; }
.hd-prompt-card b { color: #141b4d; }
.hd-pin {
    display: flex; align-items: center; gap: .45em; padding: .6em .7em;
    background: #eef1fd; border-radius: .5em; margin-bottom: .8em;
}
.hd-pin span { flex: 1; font-size: .85em; color: #5a6399; }
.hd-pin i { width: .65em; height: .65em; border-radius: 50%; border: .12em solid #5a6399; transition: background-color .1s, border-color .1s; }
.hd-pin i.is-on { background: #141b4d; border-color: #141b4d; }
.hd-prompt-actions { display: flex; justify-content: flex-end; gap: 1.6em; font-weight: 700; color: #4154f1; }
.hd-prompt-actions span { position: relative; padding: .2em .4em; border-radius: .3em; transition: transform .15s; }
.hd-prompt-actions .is-pressed { color: #fff; }

.hd-done {
    position: absolute; inset: 0; z-index: 1; background: var(--hd-screen);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35em;
    padding: 1.5em; text-align: center; opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}
.hd-done.is-in { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.hd-check {
    width: 4.4em; height: 4.4em; border-radius: 50%; background: var(--hb-green); position: relative;
    margin-bottom: .6em; transform: scale(.4); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1);
}
.hd-check::after {
    content: ''; position: absolute; left: 1.55em; top: 1.05em; width: 1.1em; height: 2em;
    border: solid #fff; border-width: 0 .38em .38em 0; transform: rotate(45deg);
}
.hd-done.is-in .hd-check { transform: scale(1); }
.hd-done-amt { font-size: 2em; font-weight: 700; color: var(--hb-text); }
.hd-done-txt { font-weight: 700; color: var(--hb-green-text); }
.hd-done-meta { font-size: .8em; color: var(--hb-text-2); }

/* ── Scene 2: B2C payout ── */
.hd-row-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.hd-row-head--end { margin-top: auto; }
.hd-table { display: flex; flex-direction: column; font-size: .88em; background: var(--hd-well); border-radius: .6em; overflow: hidden; }
.hd-tr {
    display: grid; grid-template-columns: 1.5fr 1.25fr .8fr .85fr; gap: .6em; align-items: center;
    padding: .6em .9em; border-bottom: 1px solid var(--hb-border); transition: background-color .3s ease;
}
.hd-tr:last-child { border-bottom: 0; }
.hd-tr span:first-child { color: var(--hb-text); font-weight: 600; }
.hd-tr span:nth-child(3) { font-variant-numeric: tabular-nums; color: var(--hb-text); }
.hd-th { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-text-2); }
.hd-th span:first-child, .hd-th span:nth-child(3) { color: var(--hb-text-2); font-weight: 400; }
.hd-tr.is-on { background: var(--hb-accent-soft); }
.hd-st i { font-style: normal; color: var(--hb-text-2); }
.hd-st b { display: none; color: var(--hb-green-text); font-weight: 700; }
.hd-st b::before { content: ''; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--hb-green); margin-right: .35em; vertical-align: .1em; }
.hd-tr.is-on .hd-st i { display: none; }
.hd-tr.is-on .hd-st b { display: inline; }
.hd-foot {
    display: flex; align-items: center; gap: .5em; font-weight: 700; color: var(--hb-green-text); font-size: .95em;
    opacity: 0; transform: translateY(.4em); transition: opacity .3s ease, transform .3s ease;
}
.hd-foot.is-in { opacity: 1; transform: none; }
.hd-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--hb-green); }

/* ── Scene 3: wallet top-up ── */
.hd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.hd-card {
    background: var(--hd-well); border-radius: .7em; padding: 1em 1.1em;
    display: flex; flex-direction: column; gap: .6em; position: relative; overflow: hidden; min-height: 0;
}
.hd-bal { font-size: 1.15em; color: var(--hb-text-2); }
.hd-bal b { font-size: 1.8em; color: var(--hb-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.hd-topup {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 1em 1.1em;
    display: flex; flex-direction: column; gap: .5em; background: var(--hd-screen);
    border-radius: .7em .7em 0 0; transform: translateY(105%); transition: transform .35s ease;
}
html[data-theme="light"] .hd-topup, :root:not([data-theme="dark"]) .hd-topup { box-shadow: 0 -.4em 1.2em rgba(20, 27, 77, .08); }
.hd-topup.is-in { transform: none; }
.hd-wait { display: flex; align-items: center; gap: .5em; font-size: .85em; color: var(--hb-text-2); opacity: 0; transition: opacity .2s; }
.hd-wait.is-in { opacity: 1; }
.hd-wait i {
    width: 1em; height: 1em; border-radius: 50%; border: .15em solid var(--hb-border-strong);
    border-top-color: var(--hb-accent); animation: hdSpin .8s linear infinite;
}
@keyframes hdSpin { to { transform: rotate(360deg); } }
.hd-li {
    display: flex; justify-content: space-between; gap: .8em; font-size: .88em;
    padding: .5em 0; border-bottom: 1px solid var(--hb-border);
}
.hd-li:last-child { border-bottom: 0; }
.hd-li span { color: var(--hb-text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-li b { color: var(--hb-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-li b.hd-plus { color: var(--hb-green-text); }
.hd-li--new {
    max-height: 0; padding: 0 .5em; margin: 0 -.5em; opacity: 0; overflow: hidden; border-bottom-width: 0;
    border-radius: .35em; transition: max-height .35s ease, padding .35s ease, opacity .35s ease, background-color 1.2s ease .4s;
}
.hd-li--new.is-on { max-height: 3em; padding: .5em; opacity: 1; border-bottom-width: 1px; background: transparent; }
.hd-li--new.is-on { animation: hdFlash 1.6s ease; }
@keyframes hdFlash { 0%, 40% { background: var(--hb-accent-soft); } 100% { background: transparent; } }

/* ── Scene 4: bulk SMS ── */
.hd-split--sms { grid-template-columns: 1.4fr 1fr; }
.hd-split--sms > div:first-child { display: flex; flex-direction: column; gap: .7em; min-height: 0; }
.hd-msg {
    background: var(--hd-well); border-radius: .7em; padding: .8em .9em; min-height: 5.4em;
    font-size: .92em; color: var(--hb-text); line-height: 1.5;
}
.hd-report { opacity: .35; transition: opacity .3s ease; }
.hd-report.is-in { opacity: 1; }
.hd-big { display: flex; align-items: baseline; gap: .4em; }
.hd-big b { font-size: 2.3em; font-weight: 700; color: var(--hb-text); font-variant-numeric: tabular-nums; line-height: 1; }
.hd-big span { color: var(--hb-text-2); font-size: .88em; }
.hd-progress { height: .5em; background: var(--hb-border); border-radius: .5em; overflow: hidden; }
.hd-progress i { display: block; height: 100%; width: 0; background: var(--hb-green); border-radius: .5em; }
.hd-progress i.is-on { width: 99.7%; transition: width 2.2s cubic-bezier(.2, .7, .3, 1); }

/* ── Controls ── */
.hd-controls { display: flex; align-items: flex-start; gap: .75rem; margin-top: .875rem; }
.hd-tabs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.hd-tab {
    background: none; border: 0; padding: .25rem 0; text-align: left; cursor: pointer;
    font: inherit; font-size: .8125rem; color: var(--hb-text-2); min-width: 0;
}
.hd-tab span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-tab i { display: block; height: 2px; margin-top: .45rem; background: var(--hb-border); border-radius: 2px; position: relative; overflow: hidden; }
.hd-tab i::after {
    content: ''; position: absolute; inset: 0; background: var(--hb-accent);
    transform: scaleX(0); transform-origin: left center;
}
.hd-tab:hover { color: var(--hb-text); }
.hd-tab:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 3px; border-radius: 2px; }
.hd-tab.is-active { color: var(--hb-text); font-weight: 700; }
.hd.is-running .hd-tab.is-active i::after { animation: hdProgress var(--hd-dur, 6s) linear forwards; }
.hd.is-paused .hd-tab.is-active i::after { animation-play-state: paused; }
.hd:not(.is-running) .hd-tab.is-active i::after { transform: scaleX(1); }
@keyframes hdProgress { to { transform: scaleX(1); } }
.hd-pause {
    flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-subtle); color: var(--hb-text); transition: background-color .15s;
}
.hd-pause:hover { background: var(--hb-accent-soft); }
.hd-pause:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hd-pause .bi-play-fill { display: none; }
.hd-pause[aria-pressed="true"] .bi-play-fill { display: inline; }
.hd-pause[aria-pressed="true"] .bi-pause-fill { display: none; }

/* Reduced motion: finished frames, no movement. */
.hd.is-reduced .hd-scene, .hd.is-reduced .hd-scene * { transition: none !important; animation: none !important; }

@media (max-width: 575.98px) {
    .hd-tabs { gap: .5rem; }
    .hd-tab { font-size: .75rem; }
}

/* ── EVERYDAY-USE ANIMATION (navs/life-demo.php) ─────────────────────────
   Illustrated people on the left, what they see on the right. Shares the
   hero's tabs, buttons and sequencer; scenes stack in one grid cell so the
   stage takes the height of the tallest scene.                            */
.lv { max-width: none; }
.lv {
    --lv-wall: #e6eafc; --lv-window: #ffffff; --lv-floor: #d5dbf5;
    --lv-furn: #b9c2ee; --lv-furn-2: #9aa5de; --lv-metal: #7f8bc9;
    --lv-trousers: #2a3470; --lv-mug: #f5a623; --lv-bust-bg: #dde2f6;
}
html[data-theme="dark"] .lv {
    --lv-wall: #131829; --lv-window: #0c0f1a; --lv-floor: #1b2135;
    --lv-furn: #2e3656; --lv-furn-2: #3a4366; --lv-metal: #56619a;
    --lv-trousers: #3b4680; --lv-bust-bg: #1f2540;
}
.lv-stage { background: var(--hb-bg-alt); border-radius: var(--hb-radius-lg); padding: clamp(1rem, 3vw, 2rem); container-type: inline-size; }
html[data-theme="dark"] .lv-stage { background: var(--hb-surface); }
.lv-scenes { display: grid; }
.lv .hd-scene {
    position: relative; inset: auto; grid-area: 1 / 1;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center; justify-content: stretch;
    transform: translateY(.75rem);
}
.lv .hd-scene.is-active { transform: none; }

/* Illustration */
.lv-art { display: block; width: 100%; height: auto; border-radius: var(--hb-radius-lg); }
.lv-wall { fill: var(--lv-wall); }
.lv-window { fill: var(--lv-window); }
.lv-window-bar { stroke: var(--lv-furn); stroke-width: 6; fill: none; }
.lv-floor { fill: var(--lv-floor); }
.lv-furn { fill: var(--lv-furn); }
.lv-furn-2 { fill: var(--lv-furn-2); }
.lv-metal { fill: var(--lv-metal); }
.lv-lid { stroke: var(--lv-metal); stroke-width: 6; stroke-linecap: round; fill: none; }
.lv-trousers { fill: var(--lv-trousers); }
.lv-mug { fill: var(--lv-mug); }
.lv-mug-handle { stroke: var(--lv-mug); stroke-width: 4; fill: none; }
.lv-pot { fill: #c97b4a; }
.lv-leaf { fill: #41aa28; }
.lv-pose path { fill: none; }

/* Anything with a step entry is hidden until its step (SVG and HTML alike). */
.lv [data-in] { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.lv [data-in].is-in { opacity: 1; visibility: visible; transition: opacity .3s ease; }

/* The phone on the desk buzzes when the prompt arrives. */
.lv-buzz { stroke: var(--hb-accent); stroke-width: 3; fill: none; stroke-linecap: round; opacity: 0; }
.lv-deskphone.is-on .lv-buzz { animation: lvBuzz .7s ease-in-out infinite; }
.lv-deskphone.is-on rect { animation: lvShake .16s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lvBuzz { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes lvShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }

/* What they see */
.lv-ui { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; min-width: 0; }
.lv-label {
    font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--hb-text-2); margin-top: .5rem;
}
.lv-label:first-child { margin-top: 0; }
.lv-card { background: var(--hd-screen); border-radius: 10px; padding: .875rem 1rem; color: var(--hb-text-body); }
.lv-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .35rem; }
.lv-card-head b { color: var(--hb-text); }
.lv-card-head span { color: var(--hb-text-2); font-size: .75rem; }

.lv-browser { padding: 0; overflow: hidden; }
.lv-browser-bar { display: flex; align-items: center; gap: .3rem; padding: .5rem .75rem; background: var(--hd-well); }
.lv-browser-bar i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--hb-border-strong); }
.lv-browser-bar span {
    margin-left: .5rem; flex: 1; font-size: .72rem; color: var(--hb-text-2);
    background: var(--hd-screen); border-radius: 99px; padding: .15rem .65rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-browser-body { padding: .75rem 1rem 1rem; }
.lv-line { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; font-size: .8125rem; }
.lv-line b { color: var(--hb-text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-line--total { border-top: 1px solid var(--hb-border); margin-top: .3rem; padding-top: .5rem; font-weight: 700; color: var(--hb-text); }
.lv-line--total b { font-weight: 700; }

.lv-swap { display: grid; margin-top: .75rem; }
.lv-swap > * { grid-area: 1 / 1; }
.lv-swap--phone { margin-top: 0; }
.lv-wait, .lv-ok {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem .75rem; border-radius: .55rem; font-weight: 700; font-size: .8125rem; text-align: center;
}
.lv-wait { background: var(--hb-accent-soft); color: var(--hb-accent-text); }
.lv-wait i {
    width: .95rem; height: .95rem; border-radius: 50%; flex: none;
    border: .15rem solid var(--hb-border-strong); border-top-color: var(--hb-accent); animation: hdSpin .8s linear infinite;
}
.lv-ok { background: rgba(65, 170, 40, .12); color: var(--hb-green-text); }
.lv-tick { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--hb-green); position: relative; flex: none; }
.lv-tick::after {
    content: ''; position: absolute; left: .37rem; top: .2rem; width: .3rem; height: .55rem;
    border: solid #fff; border-width: 0 .13rem .13rem 0; transform: rotate(45deg);
}

.lv-idle { text-align: center; color: var(--hb-text-2); font-size: .8125rem; padding: 1.35rem 1rem; }
.lv-prompt { background: #ffffff; color: #141b4d; }
.lv-prompt p { margin: 0 0 .6rem; color: #2a3470; font-size: .8125rem; }
.lv-prompt b { color: #141b4d; }
.lv-prompt .hd-pin { margin: 0; font-size: .8125rem; }
.lv-prompt .hd-pin i { width: .6rem; height: .6rem; border-width: .1rem; }
.lv-sms-from { font-weight: 700; font-size: .72rem; letter-spacing: .06em; color: var(--hb-green-text); margin-bottom: .2rem; }
.lv-sms p { margin: 0; font-size: .8125rem; line-height: 1.5; }

.lv-msg { margin: 0; background: var(--hd-well); border-radius: .6rem; padding: .6rem .75rem; color: var(--hb-text); font-size: .8125rem; line-height: 1.5; }

/* People receiving: dim until their phone gets the message. */
.lv-people { display: flex; flex-direction: column; gap: .55rem; }
.lv-person { display: flex; gap: .7rem; align-items: flex-start; opacity: .35; transition: opacity .3s ease; }
.lv-person.is-on { opacity: 1; }
.lv-bust { width: 2.5rem; height: 2.5rem; flex: none; }
.lv-bust-bg { fill: var(--lv-bust-bg); }
.lv-person-body { min-width: 0; flex: 1; }
.lv-person-body > b { display: block; color: var(--hb-text); font-size: .8125rem; }
.lv-bubble {
    margin: .2rem 0 0; background: var(--hd-screen); border-radius: .2rem .75rem .75rem .75rem;
    padding: .45rem .7rem; font-size: .78rem; line-height: 1.45; color: var(--hb-text-body);
    opacity: 0; transform: scale(.94); transform-origin: top left; transition: opacity .3s ease, transform .3s ease;
}
.lv-person.is-on .lv-bubble { opacity: 1; transform: none; }
.lv-bubble b { color: var(--hb-text); }
.lv-from { display: block; font-weight: 700; font-size: .68rem; letter-spacing: .05em; color: var(--hb-accent-text); }

.lv .hd-controls { margin-top: 1rem; }
.lv-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 680px; }
.lv-field { margin-top: .6rem; }
.hd-tab .lv-tab-full { display: inline; }
/* Hero on phones: short and direct, with a clear next step under the demo. */
.hb-hero-cta-m { display: none; }
@media (max-width: 575.98px) {
    .hb-hero { padding: 2rem 0 2.5rem; }
    .hb-hero .hb-h1 { font-size: 2rem; margin-bottom: .875rem; }
    .hb-hero .hb-lead { font-size: 1rem; margin-bottom: 1.25rem; }
    .hb-hero .hb-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
    .hb-hero .hb-btn-row .hb-btn { width: 100%; justify-content: center; }
    .hb-hero-note { margin-top: 1rem; }
    .hb-hero-grid { gap: 1.75rem; }
    .hb-hero-cta-m { display: grid; gap: .5rem; text-align: center; }
    .hb-hero-cta-m .hb-btn { width: 100%; justify-content: center; }
    .hb-hero-cta-m small { color: var(--hb-text-2); font-size: .8125rem; }
}
.hd-tab .lv-tab-short { display: none; }
@media (max-width: 575.98px) {
    .hd-tab .lv-tab-full { display: none; }
    .hd-tab .lv-tab-short { display: inline; }
}

/* Till scene: the receipt feeds up out of the printer once paid. */
.lv-receipt { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; }
.lv-receipt.is-on { transform: scaleY(1); transition: transform .9s steps(6, end) .2s; }

/* Compact: a hero column or a tablet. Illustration and cards stay side by
   side; the basket lines go and only the total and the action remain. */
@container (max-width: 820px) {
    .lv .hd-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
    .lv-ui { font-size: .8125rem; gap: .35rem; }
    .lv-label { font-size: .625rem; margin-top: .3rem; }
    .lv-card { padding: .65rem .8rem; }
    .lv-browser-body { padding: .6rem .8rem .75rem; }
    .lv-line:not(.lv-line--total) { display: none; }
    .lv-line--total { border-top: 0; margin-top: 0; padding-top: 0; }
    .lv-field { margin-top: .4rem; }
    .lv-swap { margin-top: .5rem; }
    .lv-swap--phone { margin-top: 0; }
    .lv-wait, .lv-ok { font-size: .75rem; padding: .55rem .6rem; }
    .lv-prompt p, .lv-sms p, .lv-msg { font-size: .75rem; }
    .lv-idle { padding: 1rem .75rem; font-size: .75rem; }
    .lv-people { gap: .4rem; }
    .lv-bust { width: 2rem; height: 2rem; }
    .lv-bubble { font-size: .72rem; padding: .4rem .6rem; }
    .lv-card-head span { display: none; }
}
/* Narrow: a phone. Illustration on top, cards underneath. */
@container (max-width: 520px) {
    .lv .hd-scene { grid-template-columns: 1fr; gap: .75rem; align-items: start; }
    .lv-illo { max-width: 300px; width: 100%; margin: 0 auto; }
    .lv-ui { font-size: .875rem; }
    .lv-bubble { font-size: .78rem; }
}

/* ── HASHPAY PAGE ANIMATION (navs/hashpay-demo.php) ──────────────────────
   Builds on the .hd device animation; only the pieces it adds live here. */
.hp-col { display: flex; flex-direction: column; gap: .6em; min-width: 0; }
.hp-split-link { grid-template-columns: 1fr 1.05fr; }
.hp-chips { display: flex; gap: .4em; }
.hp-chips span {
    padding: .3em .8em; border-radius: 99em; font-size: .82em; font-weight: 600;
    background: var(--hd-well); color: var(--hb-text-2);
}
.hp-chips span.is-sel { background: var(--hb-accent); color: #fff; }
.hp-empty { color: var(--hb-text-2); font-size: .85em; padding: 1.4em 0; text-align: center; }
.hp-chan { background: var(--hd-screen); border-radius: .6em; padding: .8em .9em; display: flex; flex-direction: column; gap: .35em; }
.hp-chan-top { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.hp-chan-top b { color: var(--hb-text); }
.hp-chan-top { display: grid; grid-template-columns: 1fr auto; }
.hp-chan-top b { grid-column: 1; }
.hp-chan-top .hp-pill { grid-column: 2; grid-row: 1; }
.hp-pill { font-size: .72em; font-weight: 700; padding: .2em .65em; border-radius: 99em; white-space: nowrap; }
.hp-pill--wait { background: var(--hb-accent-soft); color: var(--hb-accent-text); }
.hp-pill--ok { background: var(--hd-well); color: var(--hb-text); }
.hp-pill--live { background: rgba(65, 170, 40, .14); color: var(--hb-green-text); }
.hp-activate { display: flex; align-items: center; justify-content: space-between; gap: .6em; margin-top: .3em; font-size: .85em; color: var(--hb-text-body); }
.hp-activate .hd-btn { font-size: .95em; }
.hp-ready { color: var(--hb-green-text); font-weight: 700; font-size: .85em; margin-top: .3em; }

.hp-split-code { grid-template-columns: 1.7fr 1fr; }
.hp-code { background: #0f1220; border-radius: .6em; padding: .9em 1em; min-height: 0; overflow: hidden; }
.hp-code-body {
    margin: 0; white-space: pre; font-family: var(--hb-mono); font-size: .7em; line-height: 1.65; color: #c2c8e8;
    clip-path: inset(0 0 100% 0);
}
.hp-code-body.is-on { clip-path: inset(0 0 0 0); transition: clip-path 1.4s steps(8, end); }
.hp-k { color: #6b7fff; font-weight: 700; }
.hp-s { color: #8f9bd4; }
.hp-v { color: #7fcf6a; }
.hp-resp { font-size: .82em; }
.hp .hd-done-amt { font-size: 1.5em; }

.hp-shopbar { gap: .5em; }
.hp-shop-logo {
    width: 1.7em; height: 1.7em; border-radius: .45em; flex: none; display: inline-flex; align-items: center; justify-content: center;
    background: #f5a623; color: #2a1c00; font-weight: 700; font-size: .95em;
}
.hp-shop-logo--b { background: #2c7d1a; color: #fff; }
.hp-cart { background: var(--hb-accent); }
.hp-total { font-weight: 700; }
.hp-total span { color: var(--hb-text); }
.hp-mpesa { background: #2c7d1a; }
.hp-mpesa.is-pressed { background: #24691a; }

.hp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.hp-kpis .hd-card { padding: .8em 1em; gap: .3em; }
.hp-settle-to { display: flex; flex-direction: column; }
.hp-settle-to b { color: var(--hb-text); font-size: 1.15em; }
.hp-settle-to span { color: var(--hb-text-2); font-size: .8em; }
.hp-tx .hd-tr { grid-template-columns: 1.1fr 1.3fr .8fr .9fr; }
.hp-done b { display: inline; }
/* The new row says "Received", then "Settled" a step later. */
.hp-tx-new.is-on .hp-settling:not(.is-on) i { display: inline; }
.hp-tx-new.is-on .hp-settling:not(.is-on) b { display: none; }

.hp-toast {
    position: absolute; top: .8em; left: 50%; z-index: 4; width: min(88%, 30em);
    display: flex; gap: .7em; align-items: flex-start; padding: .75em .9em;
    background: var(--hd-screen); color: var(--hb-text-body); border-radius: .8em;
    box-shadow: 0 .8em 2em rgba(20, 27, 77, .22); font-size: .85em;
    transform: translate(-50%, -140%); opacity: 1 !important; visibility: visible !important;
    transition: transform .4s cubic-bezier(.2, .9, .3, 1.1) !important;
}
.hp-toast.is-in { transform: translate(-50%, 0); }
html[data-theme="dark"] .hp-toast { background: #1b2033; box-shadow: 0 .8em 2em rgba(0, 0, 0, .5); }
.hp-toast b { display: block; color: var(--hb-text); }
.hp-toast span { line-height: 1.4; }
.hp-toast-icon {
    width: 2em; height: 2em; border-radius: .5em; flex: none; display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-accent); color: #fff; font-size: .9em;
}
.hp-toast-icon--mpesa { background: #2c7d1a; font-weight: 700; }
.hp-toast--sms { top: 2.2em; }

.hp-wallet { padding: .8em 1em; gap: .2em; }
.hp-swap { display: grid; margin-top: auto; }
.hp-swap > * { grid-area: 1 / 1; align-self: center; }
.hp-wait-row { justify-content: center; padding: .8em; }
.hp-sent { justify-content: center; padding: .8em; }

.hp-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Steps: elements that enter (and leave) on a step. */
.hp [data-in]:not(.hd-prompt):not(.hd-done):not(.hd-foot):not(.hd-wait):not(.hp-toast) {
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.hp [data-in].is-in:not(.hd-prompt):not(.hd-done):not(.hd-foot):not(.hd-wait):not(.hp-toast) {
    opacity: 1; visibility: visible; transition: opacity .3s ease;
}
.hp .hp-chan-top [data-in]:not(.is-in) { display: none; }
.hp .hp-swap > [data-in]:not(.is-in) { pointer-events: none; }

/* ── HASHSMS PAGE ANIMATION (navs/sms-demo.php) ── */
.sm-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45em; margin: .6em 0 .2em; }
.sm-otp i {
    font-style: normal; text-align: center; font-weight: 700; font-size: 1.35em; color: transparent;
    background: var(--hd-well); border-radius: .4em; padding: .45em 0; line-height: 1.2;
    box-shadow: inset 0 -.15em 0 var(--hb-border-strong); transition: color .15s, box-shadow .15s;
}
.sm-otp i.is-on { color: var(--hb-text); box-shadow: inset 0 -.15em 0 var(--hb-accent); }
.sm-resend { font-size: .78em; }
.sm-doc {
    display: flex; align-items: center; gap: .55em; padding: .5em .7em; border-radius: .5em;
    background: var(--hd-well); font-size: .82em; color: var(--hb-text-2); opacity: .45; transition: opacity .3s;
}
.sm-doc span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-doc b { color: var(--hb-green-text); opacity: 0; transition: opacity .3s; }
.sm-doc.is-on { opacity: 1; color: var(--hb-text); }
.sm-doc.is-on b { opacity: 1; }
.sm-step { display: flex; align-items: center; gap: .6em; font-size: .88em; color: var(--hb-text-2); padding: .25em 0; }
.sm-step i {
    width: 1.1em; height: 1.1em; border-radius: 50%; flex: none; position: relative;
    border: .15em solid var(--hb-border-strong); transition: background-color .25s, border-color .25s;
}
.sm-step.is-on { color: var(--hb-text); }
.sm-step.is-on i { background: var(--hb-green); border-color: var(--hb-green); }
.sm-step.is-on i::after {
    content: ''; position: absolute; left: .26em; top: .08em; width: .25em; height: .5em;
    border: solid #fff; border-width: 0 .12em .12em 0; transform: rotate(45deg);
}
.sm-step--live.is-on { font-weight: 700; color: var(--hb-green-text); }
.sm-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 460px; }
.sm .hd-report { opacity: .35; }

/* ── HASHSMS PAGE (hashsms.php) ── */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; align-items: start; }
.sp-grid .hb-muted { margin-bottom: 1.25rem; }
.sp-card { background: var(--hb-card); border-radius: var(--hb-radius-lg); padding: 1.75rem; }
.sp-card-head { font-weight: 700; color: var(--hb-text); font-size: 1.125rem; }
.sp-card-sub { color: var(--hb-text-2); font-size: .9375rem; margin: .25rem 0 1rem; }
.sp-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.sp-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-text-2); font-weight: 700; padding: 0 0 .5rem; }
.sp-table td { padding: .65rem 0; border-top: 1px solid var(--hb-border); color: var(--hb-text-body); }
.sp-table td:last-child, .sp-table th:last-child { text-align: right; }
.sp-table td:last-child { color: var(--hb-green-text); font-weight: 700; }
.sp-eg { margin: 1.25rem 0 0; font-size: .875rem; color: var(--hb-text-2); }
.sp-eg b { color: var(--hb-text); }

.sp-sid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.sp-sid-col { background: var(--hb-card); border-radius: var(--hb-radius-lg); padding: 1.5rem; }
.sp-sid-col h3 { font-size: 1.0625rem; margin: 0 0 1rem; }
.sp-facts { margin: 0; display: grid; gap: .9rem; }
.sp-facts dt { font-weight: 700; color: var(--hb-text); font-size: .9375rem; }
.sp-facts dd { margin: .15rem 0 0; color: var(--hb-text-2); font-size: .9375rem; }
.sp-steps { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sp-steps { grid-template-columns: 1fr; } }

.sp-endpoints { list-style: none; margin: 0; padding: 0; background: var(--hb-card); border-radius: var(--hb-radius-lg); padding: .5rem 1.5rem; }
.sp-endpoints li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--hb-border); flex-wrap: wrap; }
.sp-endpoints li:last-child { border-bottom: 0; }
.sp-endpoints code { font-family: var(--hb-mono); font-size: .875rem; color: var(--hb-accent-text); background: none; padding: 0; }
.sp-endpoints span { color: var(--hb-text-2); font-size: .875rem; }

@media (max-width: 991.98px) {
    .sp-grid { grid-template-columns: 1fr; gap: 2rem; }
    .sp-sid { grid-template-columns: 1fr; }
}
