/* ===== CSS Variables & Theme ===== */
html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Light Theme (default) ===== */
:root {
    --brand-green: #1fc341;
    --brand-green-dark: #1aad39;
    --brand-dark: #1a1a2e;

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-muted: #f9fafb;
    --bg-card: #ffffff;
    --bg-warm: #f5f0eb;
    --bg-surface: #ffffff;
    --bg-navbar: #22355b;
    --bg-navbar-scrolled: #1e2f50;
    --bg-dropdown: #2a3f62;
    --bg-hero-overlay: radial-gradient(circle, rgba(31, 195, 65, 0.04) 0%, transparent 70%);

    /* Text */
    --text-heading: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-muted-light: #9ca3af;
    --text-on-dark: rgba(255, 255, 255, 0.7);
    --text-on-dark-hover: #ffffff;
    --text-green: #0f7a28;
    --text-green-icon: #148a2d;
    --text-green-success: #059669;
    --text-green-success-dark: #065f46;

    /* Borders & Shadows */
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 12px 40px rgba(0,0,0,0.07);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.02);

    /* Green tints (icon backgrounds, badges) */
    --bg-green-tint: rgba(31, 195, 65, 0.1);
    --bg-green-tint-border: rgba(31, 195, 65, 0.2);
    --bg-green-tint-strong: rgba(31, 195, 65, 0.15);
    --bg-green-tint-strong-border: rgba(31, 195, 65, 0.3);
    --bg-success-tint: rgba(16, 185, 129, 0.1);
    --bg-indigo-tint: rgba(99, 102, 241, 0.1);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
    --gradient-warm: linear-gradient(135deg, #fefce8 0%, #fff 50%, #fef3c7 100%);
    --gradient-modal-header: linear-gradient(135deg, #fefce8, #fef3c7);
    --gradient-etims: linear-gradient(135deg, #fafafa, #fff);

    /* Components */
    --cookie-bg: rgba(255,255,255,0.92);
    --pricing-tab-bg: #f1f3f5;
    --pricing-tab-active-bg: #fff;
    --pricing-tab-active-color: #1a1a2e;
    --pricing-tab-color: #6b7280;
    --pricing-tab-hover: #374151;

    /* Legacy alias */
    --brand-gold: #1fc341;
    --brand-gold-dark: #1aad39;
    --border-light: #e5e7eb;

    /* Transition speed */
    --theme-transition: 0.3s ease;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    transition: background-color var(--theme-transition), color var(--theme-transition);
}

/* ===== Dark Theme ===== */
[data-bs-theme="dark"] {
    --bg-body: #0f172a;
    --bg-muted: #1e293b;
    --bg-card: #1e293b;
    --bg-warm: #1e293b;
    --bg-surface: #1e293b;
    --bg-navbar: #22355b;
    --bg-navbar-scrolled: #1e2f50;
    --bg-dropdown: #2a3f62;
    --bg-hero-overlay: radial-gradient(circle, rgba(31, 195, 65, 0.08) 0%, transparent 70%);

    --text-heading: #f1f5f9;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-muted-light: #64748b;
    --text-green: #4ade80;
    --text-green-icon: #4ade80;
    --text-green-success: #34d399;
    --text-green-success-dark: #6ee7b7;

    --border-color: #334155;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 12px 40px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);

    --bg-green-tint: rgba(31, 195, 65, 0.15);
    --bg-green-tint-border: rgba(31, 195, 65, 0.25);
    --bg-green-tint-strong: rgba(31, 195, 65, 0.2);
    --bg-green-tint-strong-border: rgba(31, 195, 65, 0.35);
    --bg-success-tint: rgba(52, 211, 153, 0.12);
    --bg-indigo-tint: rgba(129, 140, 248, 0.12);

    --gradient-warm: linear-gradient(135deg, #1c1917 0%, #1e293b 50%, #292524 100%);
    --gradient-modal-header: linear-gradient(135deg, #1c1917, #292524);
    --gradient-etims: linear-gradient(135deg, #1e293b, #1c2333);

    --cookie-bg: rgba(30, 41, 59, 0.95);
    --pricing-tab-bg: #334155;
    --pricing-tab-active-bg: #475569;
    --pricing-tab-active-color: #f1f5f9;
    --pricing-tab-color: #94a3b8;
    --pricing-tab-hover: #cbd5e1;

    --border-light: #334155;

    /* Bootstrap bg-light uses --bs-light-rgb in dark mode */
    --bs-light-rgb: 30, 41, 59;
}

/* Smooth transition for themed elements */
*,
*::before,
*::after {
    transition: background-color var(--theme-transition),
                border-color var(--theme-transition),
                box-shadow var(--theme-transition);
}

/* Client / integration logo images in dark mode */
[data-bs-theme="dark"] .client-logo-card,
[data-bs-theme="dark"] .integration-logo {
    background: var(--bg-card);
}
[data-bs-theme="dark"] .client-logo-card img,
[data-bs-theme="dark"] .integration-logo img {
    filter: brightness(0.9) contrast(1.1);
}

/* Feature cards need a subtle border in dark mode to stand out from section bg */
[data-bs-theme="dark"] .feature-card-modern {
    border: 1px solid var(--border-color);
}

/* ===== Sections ===== */
section {
    scroll-margin-top: 72px;
}

/* ===== Hero Gradients (legacy) ===== */
.hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-gradient-ug {
    background: linear-gradient(135deg, #1a1a2e 0%, #1e3a1e 50%, #2d5016 100%);
}

/* ===== Navbar — Light Glassmorphism (SaaS) ===== */
.navbar-glass-light {
    background: var(--bg-navbar) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 64px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar-glass-light.scrolled {
    background: var(--bg-navbar-scrolled) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.navbar-glass-light .navbar-brand {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.navbar-glass-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 0.45rem 0.9rem;
    margin: 0 0.1rem;
    transition: color 0.25s ease, background 0.25s ease;
    font-weight: 500;
    border-radius: 8px;
}

.navbar-glass-light .navbar-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Country selection nav link hover */
.nav-country-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Animated gold underline */
.navbar-glass-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.navbar-glass-light .navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dark glass dropdown */
.dropdown-menu-glass-light {
    background: var(--bg-dropdown) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 0.5rem;
    border-radius: 12px;
    margin-top: 0.5rem !important;
}

.dropdown-menu-glass-light .dropdown-item {
    color: var(--text-on-dark);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.dropdown-menu-glass-light .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark-hover);
}

.dropdown-menu-glass-light .dropdown-item:active {
    background: rgba(31, 195, 65, 0.2);
}

.dropdown-menu-glass-light.show {
    animation: glassFadeIn 0.2s ease;
}

@keyframes glassFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toggler — white icon for dark nav */
.navbar-glass-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.6rem;
}

.navbar-glass-light .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(31, 195, 65, 0.3);
}

.navbar-glass-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero SaaS — Light & Minimal ===== */
.hero-saas {
    padding: 4rem 0 5rem;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.hero-saas::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: var(--bg-hero-overlay);
    border-radius: 50%;
    pointer-events: none;
}

.hero-saas .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-green-tint);
    border: 1px solid var(--bg-green-tint-border);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-green);
    margin-bottom: 1.5rem;
}

/* Hero illustrated emblem */
.hero-emblem {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.hero-emblem-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: default;
}
.hero-emblem-icon:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}
.hero-emblem-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-emblem-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-green);
    background: var(--bg-green-tint);
    border: 1px solid var(--bg-green-tint-border);
    padding: 0.25rem 0.9rem;
    border-radius: 100px;
}
.hero-emblem-label i {
    font-size: 0.75rem;
    color: var(--text-green-icon);
}

.hero-saas h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.hero-saas .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 1.75rem;
}

/* Decorative double underline */
.word-decor {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

/* Underline removed for cleaner look */


/* CTA Buttons Group */
.cta-group {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin-bottom: 2rem;
}

.cta-group .btn-cta {
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 100px;
    background: var(--gradient-brand);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-group .btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(31, 195, 65, 0.35);
}

.cta-group .btn-cta:active {
    transform: translateY(0);
}

.cta-group .btn-cta-outline {
    padding: 0.7rem 1.6rem;
    border: 1.5px solid var(--border-color);
    border-radius: 100px;
    background: transparent;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-group .btn-cta-outline:hover {
    border-color: var(--brand-green);
    background: var(--bg-green-tint);
    color: var(--text-heading);
}

/* Social Proof */
.social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    align-items: center;
}

.stat-block .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

.stat-block .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.star-rating .stars {
    display: flex;
    gap: 0.15rem;
    color: var(--brand-green);
    font-size: 0.85rem;
}

.star-rating .rating-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.star-rating .rating-text strong {
    color: var(--text-heading);
}

/* Divider between stats */
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* ===== Isometric Phone Mockup ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
}

.iso-phone {
    transform: perspective(800px) rotateX(6deg) rotateY(-18deg) rotateZ(2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.iso-phone:hover {
    transform: perspective(800px) rotateX(3deg) rotateY(-12deg) rotateZ(1deg);
}

.phone-body {
    width: 230px;
    height: 470px;
    background: linear-gradient(145deg, #1e1e2e, #2a2a3e);
    border-radius: 34px;
    padding: 10px;
    position: relative;
    box-shadow:
        50px 50px 100px -40px rgba(0,0,0,0.3),
        0 0 0 2px rgba(255,255,255,0.06),
        inset 0 0 0 1px rgba(255,255,255,0.04);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f2f3f7;
    border-radius: 26px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    width: 100px;
    height: 22px;
    background: #1e1e2e;
    border-radius: 0 0 14px 14px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    padding: 8px 18px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #1e1e2e;
}

.phone-header-bar {
    padding: 8px 16px 12px;
}

.phone-header-bar .bar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e1e2e;
}

.phone-header-bar .bar-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Phone app cards */
.phone-app-content {
    padding: 0 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.phone-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.phone-card .pc-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.phone-card .pc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.phone-card .pc-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.phone-card .pc-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: #111827;
}

.phone-card .pc-value.green {
    color: #059669;
}

/* pc-value inside phone stays light even in dark mode (phone screen is light) */
[data-bs-theme="dark"] .phone-card .pc-value { color: #111827; }
[data-bs-theme="dark"] .phone-card .pc-value.green { color: #059669; }

/* Phone mini bar chart */
.pc-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 6px;
}

.pc-bars .bar {
    width: 100%;
    height: 24px;
    background: rgba(31, 195, 65, 0.15);
    border-radius: 3px 3px 0 0;
    position: relative;
}

.pc-bars .bar.filled {
    background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-dark));
}

.pc-bars .bar:nth-child(1) { height: 16px; }
.pc-bars .bar:nth-child(2) { height: 24px; }
.pc-bars .bar:nth-child(3) { height: 20px; }
.pc-bars .bar:nth-child(4) { height: 28px; }
.pc-bars .bar:nth-child(5) { height: 22px; }
.pc-bars .bar:nth-child(6) { height: 18px; }
.pc-bars .bar:nth-child(7) { height: 26px; }

/* Tenant message row */
.phone-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.phone-msg:last-child {
    border-bottom: none;
}

.phone-msg .msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #1a1a2e;
    flex-shrink: 0;
}

.phone-msg .msg-content {
    flex: 1;
    min-width: 0;
}

.phone-msg .msg-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #111827;
}

.phone-msg .msg-text {
    font-size: 0.62rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-msg .msg-check {
    color: #059669;
    font-size: 0.7rem;
}

/* Payment alert row */
.phone-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
}

.phone-alert i {
    font-size: 0.75rem;
    color: #059669;
}

.phone-alert span {
    font-size: 0.65rem;
    font-weight: 600;
    color: #065f46;
}

/* Floating cards around the phone */
.float-card {
    position: absolute;
    background: var(--bg-card);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.float-card .fc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.float-card .fc-icon.gold {
    background: var(--bg-green-tint);
    color: var(--text-green-icon);
}

.float-card .fc-icon.green {
    background: var(--bg-success-tint);
    color: var(--text-green-success-dark);
}

.float-card .fc-icon.blue {
    background: var(--bg-indigo-tint);
    color: #1e40af;
}

[data-bs-theme="dark"] .float-card .fc-icon.blue {
    color: #818cf8;
}

.float-card .fc-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

.float-card .fc-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

.float-card-1 {
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 12%;
    left: 2%;
    animation-delay: 1.5s;
}

.float-card-3 {
    top: 40%;
    right: -5%;
    animation-delay: 0.8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--cookie-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .cookie-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner .cookie-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cookie-banner .cookie-text i {
    font-size: 1.1rem;
    color: var(--brand-green-dark);
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-banner .cookie-actions .btn {
    border-radius: 100px;
    padding: 0.35rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-banner .cookie-actions .btn-accept {
    background: var(--gradient-brand);
    color: var(--brand-dark);
}

.cookie-banner .cookie-actions .btn-accept:hover {
    box-shadow: 0 4px 12px rgba(31, 195, 65, 0.3);
}

.cookie-banner .cookie-actions .btn-reject {
    background: transparent;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted);
}

.cookie-banner .cookie-actions .btn-reject:hover {
    background: rgba(128, 128, 128, 0.08);
    color: var(--text-heading);
}

/* ===== Refined Feature Cards ===== */
.feature-card-modern {
    border: none;
    border-radius: 16px;
    padding: 0.5rem;
    background: var(--bg-card);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.feature-card-modern .card-body {
    padding: 1.75rem;
}

.feature-card-modern .fc-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card-modern .fc-icon-wrap.gold-bg {
    background: var(--bg-green-tint);
    color: var(--text-green-icon);
}

.feature-card-modern .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.feature-card-modern .card-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.benefit-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    font-style: italic;
    color: var(--brand-green-dark);
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

/* ===== Section Headers ===== */
.section-header {
    margin-bottom: 3rem;
}

.section-header .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-green);
    background: var(--bg-green-tint);
    border: 1px solid var(--bg-green-tint-border);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-header .section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Trust Bar ===== */
.trust-bar-modern {
    background: var(--bg-muted);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-bar-modern .stat-number {
    font-size: 1.6rem;
}

/* ===== Pricing (refined) ===== */
.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--bg-card);
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 1px var(--brand-green), 0 12px 40px rgba(31, 195, 65, 0.1);
}

.pricing-card .pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card .card-body {
    padding: 2rem 1.25rem;
}

/* Gold card body is a flex column; keep its units badge compact like the others */
.pricing-card .plan-units {
    align-self: center;
}

.pricing-card .plan-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.pricing-card .plan-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.pricing-card .plan-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card .btn-pricing {
    border-radius: 100px;
    padding: 0.6rem 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
    width: 100%;
    border: none;
    cursor: pointer;
}

.pricing-card .btn-pricing.btn-outline-pricing {
    background: transparent;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-heading);
}

.pricing-card .btn-pricing.btn-outline-pricing:hover {
    border-color: var(--brand-green) !important;
    background: var(--bg-green-tint);
}

.pricing-card .btn-pricing.btn-solid-pricing {
    background: var(--gradient-brand);
    color: var(--brand-dark);
}

.pricing-card .btn-pricing.btn-solid-pricing:hover {
    box-shadow: 0 6px 20px rgba(31, 195, 65, 0.35);
    transform: translateY(-1px);
}

/* ===== Persona Cards (Solutions) ===== */
.persona-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.persona-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.persona-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.persona-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.persona-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.persona-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-body);
    padding: 0.35rem 0;
}

.persona-list li i {
    color: var(--text-green-success);
    font-size: 1.1rem;
    line-height: 1.4;
}

.btn-persona {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brand-green);
    color: #ffffff;
    border-radius: 100px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
}

.btn-persona:hover {
    background: var(--brand-green-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(31, 195, 65, 0.3);
}

.persona-feature {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
}

.persona-feature h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.persona-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ===== Persona Tab Panels (Solutions) ===== */
.persona-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 2rem;
}

.persona-panel h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.persona-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 860px;
    margin-bottom: 1.5rem;
}

/* ===== Pricing Tab Navigation ===== */
.pricing-tab-nav .nav-pills {
    background: var(--pricing-tab-bg);
    border-radius: 100px;
    padding: 4px;
    gap: 0;
}

.pricing-tab-nav .nav-pills .nav-link {
    border-radius: 100px;
    padding: 0.55rem 1.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pricing-tab-color);
    border: none;
    background: transparent;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pricing-tab-nav .nav-pills .nav-link i {
    font-size: 1rem;
}

.pricing-tab-nav .nav-pills .nav-link.active,
.pricing-tab-nav .nav-pills .show > .nav-link {
    background: var(--pricing-tab-active-bg);
    color: var(--pricing-tab-active-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pricing-tab-nav .nav-pills .nav-link:hover:not(.active) {
    color: var(--pricing-tab-hover);
}

/* ===== Pricing: Account Type Chooser ===== */
.pricing-step {
    animation: pricingStepIn 0.35s ease;
}

@keyframes pricingStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.account-type-card {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.account-type-card:hover {
    transform: translateY(-4px);
    border-color: var(--bg-green-tint-strong-border);
    box-shadow: var(--shadow-lg);
}

.account-type-card .card-body {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-type-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-green-tint);
    color: var(--brand-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin-bottom: 1.25rem;
}

.account-type-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.account-type-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.account-type-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
}

.account-type-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-body);
}

.account-type-list i {
    color: var(--brand-green-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.account-type-from {
    margin-top: auto;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.btn-account-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 380px;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 100px;
    background: var(--brand-green-dark);
    color: #fff;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-account-type:hover {
    box-shadow: 0 6px 20px rgba(31, 195, 65, 0.35);
    transform: translateY(-1px);
}

/* Plans view: "Change account type" on the left, Landlord / Agent switch on the right */
.pricing-plans-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pricing-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.pricing-back:hover {
    color: var(--text-heading);
}

/* ===== Plan Units Badge ===== */
.plan-units {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-muted);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

/* ===== Signup Plan Summary ===== */
.plan-summary {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

/* ===== Country Cards ===== */
.country-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* ===== Gateway Country Cards ===== */
.gateway-country-link {
    transition: transform 0.25s ease;
}
.gateway-country-link:hover {
    transform: translateY(-4px);
}

.gateway-country-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    transition: box-shadow 0.25s ease;
}
.gateway-country-link:hover .gateway-country-card {
    box-shadow: var(--shadow-md) !important;
}

/* City skyline image column */
.gateway-country-img {
    height: 100%;
    min-height: 310px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.gateway-img-ke {
    background-image: url('../images/kenya-skyline.jpg');
}
.gateway-img-ug {
    background-image: url('../images/uganda-skyline.jpg');
}

/* Content body */
.gateway-country-body {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Badge circles */
.gateway-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}
.gateway-badge-dark {
    background: var(--brand-dark);
    color: #fff;
}
.gateway-badge-gold {
    background: var(--gradient-brand);
    color: var(--brand-dark);
}

/* Country heading */
.gateway-country-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

/* Currency label */
.gateway-currency {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

/* Cities label + list */
.gateway-cities-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.gateway-city-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}
.gateway-city-list li {
    font-size: 0.88rem;
    color: var(--text-body);
    padding: 0.15rem 0;
    line-height: 1.5;
}
.gateway-city-list li::before {
    content: '\2022';
    color: var(--brand-green);
    font-weight: 700;
    display: inline-block;
    width: 1.1em;
    margin-left: 0.1em;
}

/* Gold action button */
.gateway-btn {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    border-radius: 100px;
    background: var(--gradient-brand);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    text-align: center;
    transition: all 0.25s ease;
    align-self: flex-start;
    cursor: pointer;
    text-decoration: none;
}
.gateway-country-link:hover .gateway-btn {
    box-shadow: 0 6px 20px rgba(31, 195, 65, 0.35);
    transform: translateY(-1px);
}

/* ===== Contact Section ===== */
.contact-modern .contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 2.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link i {
    font-size: 1.15rem;
    color: var(--brand-green-dark);
    transition: transform 0.2s ease;
}

.contact-link:hover {
    color: var(--text-heading);
}

.contact-link:hover i {
    transform: scale(1.15);
}

.contact-link-wa i {
    color: #25D366;
}

.contact-divider {
    color: var(--border-color);
    font-weight: 300;
    font-size: 1.2rem;
}

/* ===== Footer ===== */
footer a:hover {
    color: var(--brand-green) !important;
}

/* Logo visibility per theme — footer is always bg-dark */
.logo-light { display: inline-block; }
.logo-dark  { display: none; }
[data-bs-theme="dark"] .logo-light { display: none; }
[data-bs-theme="dark"] .logo-dark  { display: inline-block; }

/* Footer heading-area ensures consistent top spacing across columns */
footer .heading-area {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ===== Utility Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */

/* ---- Large Screens (1400px+) ---- */
@media (min-width: 1400px) {
    .hero-saas h1 {
        font-size: 3.6rem;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
    .hero-visual {
        min-height: 520px;
    }
    .phone-body {
        width: 250px;
        height: 500px;
    }
}

/* ---- Desktop / Small Desktop (1200-1399px) ---- */
@media (max-width: 1399.98px) {
    .hero-visual {
        min-height: 440px;
    }
    .float-card-3 {
        right: -2%;
    }
}

/* ---- Tablet Landscape / Small Desktop (992-1199px) ---- */
@media (max-width: 1199.98px) {
    .hero-saas h1 {
        font-size: 2.6rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .hero-visual {
        min-height: 400px;
    }
    .float-card-1 {
        right: 2%;
    }
    .float-card-2 {
        left: 0;
    }
    .pricing-card .card-body {
        padding: 1.5rem;
    }
    .contact-modern .contact-card {
        padding: 1.5rem;
    }
}

/* ---- Tablet Portrait (768-991px) ---- */
@media (max-width: 991.98px) {
    .hero-saas {
        padding: 2.5rem 0 3rem;
        text-align: center;
    }

    .hero-saas h1 {
        font-size: 2.4rem;
    }

    .hero-saas .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .social-proof {
        justify-content: center;
    }

    .hero-visual {
        min-height: 380px;
        margin-top: 2rem;
    }

    .iso-phone {
        transform: perspective(800px) rotateX(4deg) rotateY(-10deg) rotateZ(1deg);
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .float-card-3 {
        display: none;
    }

    /* Navbar */
    .navbar-glass-light .navbar-nav {
        padding: 0.75rem 0;
    }
    .navbar-glass-light .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
        margin: 0;
    }
    .navbar-glass-light .navbar-nav .nav-link::after {
        display: none;
    }
    .navbar-glass-light .nav-item.ms-lg-2 {
        margin-top: 0.5rem;
        padding: 0 0.5rem;
    }
    .navbar-glass-light .nav-item.ms-lg-2 .btn {
        width: 100%;
        text-align: center;
    }
    .dropdown-menu-glass-light {
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        margin-top: 0 !important;
    }
    .dropdown-menu-glass-light .dropdown-item {
        padding: 0.5rem 1rem;
        color: var(--text-on-dark) !important;
    }
    .dropdown-menu-glass-light .dropdown-item:hover {
        color: var(--text-on-dark-hover) !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }
    .nav-item .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Gateway header - mobile */
    .gateway-header .navbar .container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .gateway-header .nav-link {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    .gateway-header .btn-sm {
        font-size: 0.8rem !important;
        padding: 0.35rem 1rem !important;
    }

    /* Footer */
    footer .col-lg-2 {
        margin-bottom: 1rem;
    }

    /* "You Don't Have to Go It Alone" section */
    #alone .col-md-4 {
        margin-bottom: 0.5rem;
    }
}

/* ---- Phone / Small Tablet (576-767px) ---- */
@media (max-width: 767.98px) {
    /* Typography */
    .hero-saas h1 {
        font-size: 2rem;
    }
    .hero-saas .hero-subtitle {
        font-size: 1rem;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .section-header .section-sub {
        font-size: 0.95rem;
    }

    /* Hero */
    .hero-saas {
        padding: 2rem 0 2.5rem;
    }
    .hero-visual {
        min-height: 340px;
        margin-top: 1.5rem;
    }
    .iso-phone:hover {
        transform: perspective(800px) rotateX(4deg) rotateY(-10deg) rotateZ(1deg);
    }
    .float-card-1 {
        top: 4%;
        right: 5%;
    }
    .float-card-2 {
        bottom: 10%;
        left: 2%;
    }

    /* Gateway country cards */
    .gateway-country-img {
        min-height: 220px;
    }
    .gateway-country-body {
        padding: 1.25rem;
    }
    .gateway-country-name {
        font-size: 1.25rem;
    }
    .gateway-badge {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    .gateway-city-list {
        margin-bottom: 1rem;
    }
    .gateway-city-list li {
        font-size: 0.82rem;
    }
    .gateway-currency {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* Feature cards */
    .feature-card-modern .card-body {
        padding: 1.25rem;
    }

    /* Pricing cards */
    .pricing-card .card-body {
        padding: 1.5rem;
    }
    .pricing-card .plan-price {
        font-size: 2rem;
    }

    /* USSD section */
    .ussd-mockup img {
        max-height: 300px !important;
    }

    /* Why Choose Us */
    #alone .stat-number {
        font-size: 1.8rem !important;
    }

    /* Contact cards */
    .contact-modern .contact-card {
        padding: 1.25rem;
    }

    /* Demo modal */
    .modal-dialog {
        margin: 0.5rem;
    }
    .modal-body {
        padding: 1.25rem !important;
    }

    /* Sign in page */
    .py-5 .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Signup form */
    .card-body.p-4.p-md-5 {
        padding: 1.5rem !important;
    }

    /* Footer */
    footer .col-lg-2 {
        flex: 0 0 auto;
        width: 50%;
    }
    footer .col-lg-4 {
        margin-bottom: 1rem;
    }

    /* USSD grid */
    .ussd-service {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* ---- Phone Portrait (<=575px) ---- */
@media (max-width: 575.98px) {
    /* Typography */
    body {
        font-size: 15px;
    }
    .hero-saas h1 {
        font-size: 1.75rem;
    }
    .hero-saas .hero-subtitle {
        font-size: 0.95rem;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .section-header .section-sub {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-saas {
        padding: 1.5rem 0 2rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-group .btn-cta,
    .cta-group .btn-cta-outline {
        width: 100%;
        text-align: center;
    }

    .social-proof {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .stat-divider {
        display: none;
    }

    .stat-block .stat-number {
        font-size: 1.25rem;
    }
    .stat-block .stat-label {
        font-size: 0.75rem;
    }

    /* Phone mockup */
    .hero-visual {
        min-height: 290px;
        margin-top: 1rem;
    }
    .phone-body {
        width: 170px;
        height: 350px;
        border-radius: 24px;
        padding: 6px;
    }

    .phone-screen {
        border-radius: 18px;
    }
    .phone-notch {
        width: 70px;
        height: 16px;
        border-radius: 0 0 10px 10px;
    }
    .phone-status {
        padding: 5px 12px 2px;
        font-size: 0.55rem;
    }
    .phone-header-bar {
        padding: 4px 12px 8px;
    }
    .phone-header-bar .bar-title {
        font-size: 0.7rem;
    }
    .phone-header-bar .bar-sub {
        font-size: 0.55rem;
    }
    .phone-app-content {
        padding: 0 10px;
        gap: 6px;
    }
    .phone-card {
        padding: 8px 10px;
        border-radius: 8px;
    }
    .phone-card .pc-title {
        font-size: 0.6rem;
    }
    .phone-card .pc-row {
        padding: 2px 0;
    }
    .phone-card .pc-label,
    .phone-card .pc-value {
        font-size: 0.6rem;
    }
    .pc-bars .bar {
        height: 16px;
    }
    .pc-bars .bar:nth-child(1) { height: 10px; }
    .pc-bars .bar:nth-child(2) { height: 16px; }
    .pc-bars .bar:nth-child(3) { height: 14px; }
    .pc-bars .bar:nth-child(4) { height: 18px; }
    .pc-bars .bar:nth-child(5) { height: 14px; }
    .pc-bars .bar:nth-child(6) { height: 12px; }
    .pc-bars .bar:nth-child(7) { height: 17px; }
    .phone-alert {
        padding: 5px 8px;
    }
    .phone-alert i { font-size: 0.6rem; }
    .phone-alert span { font-size: 0.55rem; }
    .phone-msg { padding: 4px 0; gap: 6px; }
    .phone-msg .msg-avatar {
        width: 18px;
        height: 18px;
        font-size: 0.5rem;
    }
    .phone-msg .msg-name { font-size: 0.55rem; }
    .phone-msg .msg-text { font-size: 0.5rem; }
    .phone-msg .msg-check { font-size: 0.55rem; }

    /* Floating cards */
    .float-card {
        padding: 8px 10px;
        gap: 6px;
        border-radius: 10px;
    }
    .float-card .fc-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    .float-card .fc-value {
        font-size: 0.8rem;
    }
    .float-card .fc-label {
        font-size: 0.6rem;
    }
    .float-card-1 {
        top: 1%;
        right: 2%;
    }
    .float-card-2 {
        bottom: 6%;
        left: 2%;
    }

    /* Gateway country cards */
    .gateway-country-card .row {
        flex-direction: column !important;
    }
    .gateway-country-card .col-5,
    .gateway-country-card .col-7 {
        width: 100%;
        flex: 0 0 auto;
    }
    .gateway-country-img {
        min-height: 180px !important;
    }
    .gateway-country-body {
        padding: 1rem !important;
    }
    .gateway-country-name {
        font-size: 1.1rem !important;
    }

    /* Pricing - stack cards */
    .pricing-card .card-body {
        padding: 1.25rem;
    }
    .pricing-card .plan-price {
        font-size: 1.8rem;
    }
    .pricing-tab-nav,
    .pricing-tab-nav .nav-pills {
        width: 100%;
    }
    .pricing-tab-nav .nav-pills .nav-item {
        flex: 1;
    }
    .pricing-tab-nav .nav-pills .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 0.75rem;
    }
    .pricing-plans-bar {
        justify-content: center;
    }
    .pricing-plans-bar .pricing-back {
        order: 2;
    }
    .account-type-card .card-body {
        padding: 1.75rem 1.25rem;
    }

    /* Section spacing */
    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .container.py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Feature cards grid */
    .feature-card-modern .card-body {
        padding: 1.1rem;
    }
    .feature-card-modern .card-title {
        font-size: 0.95rem;
    }
    .feature-card-modern .card-text {
        font-size: 0.82rem;
    }
    .feature-card-modern .fc-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    /* USSD */
    .ussd-mockup img {
        max-height: 250px !important;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.15rem;
    }
    .testimonial-text {
        font-size: 0.85rem;
    }

    /* Contact cards */
    .contact-modern .contact-card {
        padding: 1rem;
    }
    .contact-modern .contact-card .card-body {
        padding: 0.5rem;
    }
    .contact-link {
        font-size: 0.85rem;
    }

    /* Forms */
    .card-body.p-5 {
        padding: 1.5rem !important;
    }
    .card-body.p-4.p-md-5 {
        padding: 1.25rem !important;
    }
    .input-group .form-select#phoneCode {
        max-width: 100px !important;
        flex: 0 0 100px !important;
        font-size: 0.8rem;
    }

    /* Footer */
    footer .col-lg-2 {
        width: 100%;
    }
    footer.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
    }

    /* Cookie banner */
    .cookie-banner .cookie-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .cookie-banner .cookie-text {
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* "Why Choose Us" cards */
    #alone .card {
        padding: 1.25rem 0.75rem !important;
    }
    #alone .card-body {
        padding: 0 !important;
    }

    /* FAQ */
    .accordion-button {
        font-size: 0.88rem !important;
    }
    .accordion-body {
        font-size: 0.82rem !important;
    }

    /* Signup badges row */
    .d-flex.flex-wrap.justify-content-center.gap-3 .badge {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

/* ---- Very Small Phones (<=400px) ---- */
@media (max-width: 400px) {
    .hero-saas h1 {
        font-size: 1.5rem;
    }
    .phone-body {
        width: 150px;
        height: 310px;
        border-radius: 20px;
        padding: 5px;
    }
    .phone-screen {
        border-radius: 16px;
    }
    .phone-notch {
        width: 60px;
        height: 14px;
    }
    .hero-visual {
        min-height: 250px;
    }
    .float-card {
        padding: 5px 8px;
        border-radius: 8px;
    }
    .float-card .fc-icon {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }
    .float-card .fc-value {
        font-size: 0.7rem;
    }
    .float-card .fc-label {
        font-size: 0.55rem;
    }
    .float-card-1 {
        top: 0;
        right: 0;
    }
    .float-card-2 {
        bottom: 4%;
        left: 0;
    }
    .section-header h2 {
        font-size: 1.25rem;
    }
    .pricing-card .plan-price {
        font-size: 1.5rem;
    }
    .gateway-country-name {
        font-size: 1rem !important;
    }
    .gateway-btn {
        font-size: 0.78rem !important;
        padding: 0.4rem 1.1rem !important;
    }
    .hero-emblem-icon {
        width: 60px;
        height: 60px;
    }
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: var(--brand-green);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.15rem;
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.25rem;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ===== USSD Services ===== */
.ussd-service {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
    transition: all 0.25s ease;
}

.ussd-service:hover {
    border-color: var(--brand-green);
    box-shadow: 0 4px 16px rgba(31, 195, 65, 0.1);
    transform: translateY(-2px);
}

.ussd-service .ussd-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-green-tint);
    color: var(--text-green-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ===== Integration Logos ===== */
.integration-logo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    transition: all 0.3s ease;
}

.integration-logo:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    border-color: var(--brand-green);
}

.integration-logo img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* ===== Role Selector ===== */
.role-selector .role-option {
    cursor: pointer;
}

.role-selector .role-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-body);
}

.role-selector .role-card i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.role-selector .btn-check:checked + .role-card {
    border-color: var(--brand-green-dark);
    background: var(--bg-green-tint);
    color: var(--brand-dark);
}

.role-selector .btn-check:checked + .role-card i {
    color: var(--brand-green-dark);
}

.role-selector .role-card:hover {
    border-color: var(--brand-green);
    background: var(--bg-green-tint);
}

/* ===== Client Logo Cards ===== */
.client-logo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 104px;
    transition: all 0.2s ease;
}

.client-logo-card img {
    max-height: 72px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* ===== Logo Carousel (clients, banks) =====
   One row of logos: 6 visible on desktop, the rest a swipe or arrow-click away */
.logo-carousel {
    --logo-gap: 1rem;
    --logo-per-view: 6;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "prev track next";
    align-items: center;
    column-gap: 0.75rem;
}

.logo-carousel-track {
    grid-area: track;
    display: flex;
    gap: var(--logo-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* room for the cards' hover lift and shadow */
    padding: 4px 2px 8px;
}

.logo-carousel-track::-webkit-scrollbar {
    display: none;
}

.logo-carousel-item {
    flex: 0 0 calc((100% - (var(--logo-per-view) - 1) * var(--logo-gap)) / var(--logo-per-view));
    scroll-snap-align: start;
}

.logo-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.logo-carousel-btn.prev { grid-area: prev; }
.logo-carousel-btn.next { grid-area: next; }

.logo-carousel-btn:hover:not(:disabled) {
    border-color: var(--brand-green);
    color: var(--text-green);
}

.logo-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 991.98px) {
    .logo-carousel {
        --logo-per-view: 4;
    }
}

@media (max-width: 575.98px) {
    /* Arrows move under the row so the logos get the full width */
    .logo-carousel {
        --logo-gap: 0.6rem;
        --logo-per-view: 3;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "track track" "prev next";
        column-gap: 1rem;
        row-gap: 0.75rem;
    }
    .logo-carousel-btn.prev { justify-self: end; }
    .logo-carousel-btn.next { justify-self: start; }

    .client-logo-card,
    .integration-logo {
        height: 76px;
        padding: 0.5rem;
    }
    .client-logo-card img,
    .integration-logo img {
        max-height: 52px;
    }
}

/* ===== Phone Input with Country Code ===== */
.phone-input-wrapper {
    position: relative;
}

.phone-input-container {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    overflow: hidden;
    background: transparent;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.phone-input-container:focus-within {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem rgba(31, 195, 65, 0.25);
}

[data-bs-theme="dark"] .phone-input-container:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(31, 195, 65, 0.15);
}

.country-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.375rem 0.6rem;
    border: none;
    border-right: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--text-heading);
    transition: background 0.15s;
    min-width: 80px;
    justify-content: center;
}

.country-dropdown-trigger:hover {
    background: var(--bg-green-tint);
}

.country-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.country-dial-code {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-heading);
}

.country-dropdown-trigger .bi-chevron-down {
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.country-dropdown-trigger[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.phone-number-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.95rem;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-width: 0;
    color: var(--text-heading);
}

.phone-number-input::placeholder {
    color: var(--text-muted-light);
    font-size: 0.85rem;
}

.country-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 280px;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 4px 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.country-dropdown-menu.show {
    display: block;
    animation: phoneDropdownIn 0.15s ease;
}

@keyframes phoneDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-body);
    transition: background 0.1s;
}

.country-option:hover {
    background: var(--bg-green-tint);
}

.country-option.active {
    background: var(--bg-green-tint);
    font-weight: 600;
    color: var(--text-heading);
}

.country-option .co-flag {
    font-size: 1.15rem;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.country-option .co-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-option .co-code {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.phone-input-container.is-invalid {
    border-color: #dc3545 !important;
}

.phone-input-container.is-invalid:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.phone-error {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #dc3545;
}

.phone-error i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ===== Generic Field Error (email, etc) ===== */
.field-error {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #dc3545;
}
.field-error i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Dropdown scrollbar styling */
.country-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.country-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.country-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Responsive phone input */
@media (max-width: 575.98px) {
    .country-dropdown-trigger {
        min-width: 70px;
        padding: 0.375rem 0.4rem;
    }
    .country-dial-code {
        font-size: 0.75rem;
    }
    .country-flag {
        font-size: 1rem;
    }
    .country-dropdown-menu {
        min-width: 240px;
    }
    .phone-number-input {
        font-size: 0.9rem;
    }
}

/* ===== More Features Button ===== */
.btn-outline-features {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 100px;
    background: transparent;
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-outline-features:hover {
    border-color: var(--brand-green);
    background: var(--bg-green-tint);
    color: var(--text-heading);
    transform: translateY(-1px);
}

.btn-outline-features i {
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.btn-outline-features:hover i {
    transform: translateX(4px);
}

/* ===== Features Page ===== */
.features-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: var(--bg-body);
}

.features-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.features-hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .features-hero h1 {
        font-size: 1.8rem;
    }
    .features-hero {
        padding: 2.5rem 0 1.5rem;
    }
}

/* ===== Awards & Recognition ===== */
.awards-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.01em;
}

.award-slide {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.award-slide img.award-image {
    max-height: 260px;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
    margin: 0 auto;
}

#awardsCarousel {
    margin-top: 0.5rem;
}

#awardsCarousel .carousel-control-prev,
#awardsCarousel .carousel-control-next {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-brand);
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

#awardsCarousel .carousel-control-prev {
    left: -1rem;
}

#awardsCarousel .carousel-control-next {
    right: -1rem;
}

#awardsCarousel .carousel-control-prev i,
#awardsCarousel .carousel-control-next i {
    font-size: 1.5rem;
    color: #fff;
}

#awardsCarousel .carousel-indicators {
    bottom: -0.5rem;
    margin-bottom: 0;
}

#awardsCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--brand-green);
    opacity: 0.35;
    border: 0;
}

#awardsCarousel .carousel-indicators .active {
    opacity: 1;
}

@media (max-width: 767.98px) {
    #awardsCarousel .carousel-control-prev {
        left: -0.25rem;
    }
    #awardsCarousel .carousel-control-next {
        right: -0.25rem;
    }
}

/* ===== Explore Features (tabbed list) ===== */
.features-explore-section {
    background: var(--bg-body);
}

.features-explore-section .section-header h2 {
    color: var(--text-heading);
}

.features-explore-section .section-header .section-sub {
    color: var(--text-muted);
}

.features-tabs {
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.features-tabs .nav-link {
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.5rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.features-tabs .nav-link:hover {
    color: var(--text-heading);
    border-color: var(--text-green);
}

.features-tabs .nav-link.active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 173, 57, 0.35);
}

.features-tab-panel {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.25rem 2rem;
    box-shadow: var(--shadow-lg);
}

.feature-row {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.feature-row:last-of-type {
    border-bottom: none;
}

.feature-row h4 {
    color: var(--text-heading);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.feature-row p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.features-scroll-hint {
    display: flex;
    justify-content: center;
    padding: 1.75rem 0 1.5rem;
}

.features-scroll-hint a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    animation: hint-bounce 2.2s ease-in-out infinite;
}

.features-scroll-hint a:hover {
    background: var(--brand-green);
    border-color: transparent;
    color: #fff;
}

@keyframes hint-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (max-width: 767.98px) {
    .features-tab-panel {
        padding: 0.25rem 1.25rem;
    }
    .features-tabs .nav-link {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== Laptop + Phone Product Composite ===== */
/* Device screens are fixed light "app screenshots" (consistent with the existing
   isometric phone mockup), while badges / chrome on the page background are
   theme-aware via CSS variables so dark mode is handled automatically. */

.hero-visual { min-height: 420px; }

.product-composite-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.product-composite {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
}

/* --- Laptop --- */
.laptop-mockup {
    position: relative;
    width: 100%;
}

.laptop-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #0b1020;                  /* dark bezel — fixed hardware look */
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* subtle glass glare over the screen */
.laptop-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 46%);
    pointer-events: none;
    z-index: 2;
}

.laptop-base {
    position: relative;
    width: 108%;
    left: -4%;
    height: 13px;
    margin-top: -2px;
    background: linear-gradient(180deg, #dfe3e9 0%, #bfc5cf 100%);
    border-radius: 2px 2px 16px 16px;
}

.laptop-base::after {   /* hinge notch */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
    width: 84px;
    height: 6px;
    background: #aab1bc;
    border-radius: 0 0 8px 8px;
}

/* --- Dashboard app --- */
.dash-app {
    container-type: inline-size;
    width: 100%;
    height: 100%;
    display: flex;
    background: #f6f8fb;
    border-radius: 8px;
    overflow: hidden;
}

.dash-sidebar {
    width: 23%;
    min-width: 84px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #22355b 0%, #1a1a2e 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 4px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 5px;
}

.dash-brand img {
    height: 14px;
    width: auto;
}

.dash-brand-text {
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    cursor: default;
}

.dash-nav-item i {
    font-size: 0.68rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.dash-nav-item.active {
    background: rgba(31, 195, 65, 0.22);
    color: #fff;
}

.dash-main {
    flex: 1;
    min-width: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f6f8fb;
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dash-topbar-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-search {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.55rem;
    color: #9ca3af;
    white-space: nowrap;
}

.dash-search i { font-size: 0.6rem; }

.dash-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1fc341, #1aad39);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #fff;
}

/* Metric cards */
.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.dash-metric {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dash-metric-label {
    font-size: 0.5rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-metric-value {
    font-size: 0.78rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    white-space: nowrap;
}

.dash-metric-sub {
    font-size: 0.48rem;
    color: #9ca3af;
    white-space: nowrap;
}

/* Charts */
.dash-charts {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 7px;
    flex: 1;
    min-height: 0;
}

.dash-chart-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    min-height: 0;
}

.dash-chart-title {
    font-size: 0.56rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.dash-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.48rem;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

.dash-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Bar chart */
.dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    min-height: 36px;
}

.dash-bar-group {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 100%;
    min-width: 0;
}

.dash-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    min-width: 0;
}

.dash-bar.collected { background: linear-gradient(180deg, #22c55e, #16a34a); }
.dash-bar.invoiced   { background: linear-gradient(180deg, #818cf8, #6366f1); }

/* Donut chart */
.dash-donut-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 60px;
}

.dash-donut-wrap svg {
    width: 100%;
    max-width: 96px;
    height: auto;
}

.dash-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1px;
    pointer-events: none;
}

.dash-donut-value {
    font-size: 0.58rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    white-space: nowrap;
}

.dash-donut-caption {
    font-size: 0.44rem;
    color: #6b7280;
    line-height: 1.1;
    white-space: nowrap;
}

.dash-donut-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
}

/* --- Smartphone (payment confirmation) --- */
.phone-mockup {
    position: absolute;
    right: -14px;
    bottom: -16px;
    width: 27%;
    min-width: 92px;
    z-index: 5;
    animation: float 5s ease-in-out infinite;
}

.phone-frame {
    position: relative;
    background: #1e1e2e;
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    aspect-ratio: 9 / 19;
}

.phone-frame::before {   /* punch-hole camera */
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 5px;
    background: #14141f;
    border-radius: 3px;
    z-index: 2;
}

.pay-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px 10px;
    gap: 8px;
}

.pay-header {
    display: flex;
    justify-content: center;
}

.pay-logo {
    height: 16px;
    width: auto;
}

.pay-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1fc341, #1aad39);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.35);
}

.pay-title {
    font-size: 0.66rem;
    font-weight: 800;
    color: #111827;
}

.pay-amount {
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
}

.pay-detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 0;
    border-top: 1px solid #f1f3f5;
}

.pay-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 0.5rem;
}

.pay-label { color: #6b7280; font-weight: 600; }
.pay-value { color: #111827; font-weight: 700; }

.pay-value.done {
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.pay-dismiss {
    width: 100%;
    margin-top: auto;
    padding: 7px 0;
    border: none;
    border-radius: 8px;
    background: var(--gradient-brand);
    color: var(--brand-dark);
    font-size: 0.6rem;
    font-weight: 800;
    text-align: center;
}

/* --- Compliance badges (Kenya hero only) --- */
.compliance-badges {
    position: absolute;
    left: -6px;
    bottom: -4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 6;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-green-tint);
    border: 1px solid var(--bg-green-tint-border);
    color: var(--text-green);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.38rem 0.85rem;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

.compliance-badge i { font-size: 0.72rem; }

/* Compact dashboard when the composite is narrow */
@container (max-width: 430px) {
    .dash-main { padding: 7px; gap: 6px; }
    .dash-topbar-title { font-size: 0.72rem; }
    .dash-avatar { width: 15px; height: 15px; }
    .dash-search { display: none; }
    .dash-metrics { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .dash-metric { padding: 5px 6px; gap: 1px; }
    .dash-metric-sub { display: none; }
    .dash-metric-value { font-size: 0.7rem; }
    .dash-charts { gap: 5px; }
    .dash-chart-card { padding: 5px 6px; gap: 3px; }
    .dash-chart-title { font-size: 0.5rem; }
    .dash-chart-legend { gap: 3px 6px; }
    .dash-legend-item { font-size: 0.44rem; }
    .dash-bars { gap: 3px; }
    .dash-donut-wrap svg { max-width: 70px; }
    .dash-donut-value { font-size: 0.5rem; }
    .dash-donut-caption { font-size: 0.4rem; }
    .dash-donut-legend { gap: 2px 5px; }
    .dash-sidebar { width: 50px; min-width: 0; padding: 9px 5px; }
    .dash-brand { justify-content: center; padding: 0 0 8px; gap: 0; }
    .dash-brand img { height: 12px; }
    .dash-brand-text,
    .dash-nav-item span { display: none; }
    .dash-nav-item { justify-content: center; padding: 4px; }
    .dash-nav-item i { font-size: 0.62rem; }
}

/* Responsive tweaks for the composite */
@media (max-width: 1399.98px) {
    .hero-visual { min-height: 400px; }
}

@media (max-width: 991.98px) {
    .hero-visual { min-height: 360px; }
    .product-composite { max-width: 500px; }
}

@media (max-width: 767.98px) {
    .hero-visual { min-height: 320px; }
    .product-composite { max-width: 460px; }
}

@media (max-width: 575.98px) {
    .hero-visual { min-height: 300px; }
    .product-composite { max-width: 420px; }
    .laptop-screen { aspect-ratio: 16 / 11.5; }
    .phone-mockup { right: -8px; bottom: -12px; }
    .compliance-badges { left: -4px; bottom: -2px; }
}
