/**
 * Pulsey ERP — Main Website Stylesheet (English / LTR)
 * Compliant with modern CSS architecture, PER 2.0 & WCAG 2.2 AA Accessibility
 * Author: Hai Technologies LLC (pulsey.haitechnologies.com)
 */

:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-subtle-alt: #e2e8f0;
    
    /* Fluid Typographic Tokens */
    --font-size-hero: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem);
    --font-size-h1: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem);
    --font-size-h2: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
    --font-size-h3: clamp(1.2rem, 0.95rem + 1vw, 1.5rem);
    --font-size-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
    --line-height-body: 1.65;
    --line-height-heading: 1.22;
    --measure-body: 65ch;

    /* Brand Colors & WCAG 2.2 AA High Contrast (>= 4.5:1 on white) */
    --primary: #ea580c;
    --primary-glow: rgba(234, 88, 12, 0.22);
    --primary-light: #fff7ed;
    --primary-border: #fed7aa;
    --secondary: #2563eb;
    --secondary-glow: rgba(37, 99, 235, 0.2);
    --secondary-light: #eff6ff;
    --accent: #059669;
    --accent-light: #ecfdf5;
    --text-main: #0f172a;       /* 15.8:1 contrast ratio */
    --text-body: #334155;       /* 9.6:1 contrast ratio */
    --text-muted: #475569;      /* 5.9:1 contrast ratio (AA compliant) */
    
    /* Accessibility & Touch Sizing */
    --touch-target-min: 48px;
    --focus-ring: 2px solid var(--primary);
    --focus-offset: 2px;
    
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    --container-max: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Universal WCAG 2.2 Visible Focus Ring (SC 2.4.7 & SC 2.4.11) */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
    border-radius: 4px;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-body);
    line-height: var(--line-height-body);
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

p, .feature-desc, .subpage-subhead {
    max-width: var(--measure-body);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 800;
    line-height: var(--line-height-heading);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Top High-Intent Bar */
.announcement-bar {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-align: center;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.announcement-badge {
    background: #ffedd5;
    color: #c2410c;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #fdba74;
}

/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-link img {
    height: 48px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: height 0.2s ease;
}

/* Single Line Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    padding: 0.4rem 0.2rem;
    position: relative;
}

.nav-links li a:hover {
    color: var(--text-main);
}

.nav-links li a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7e40 0%, #ea580c 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
    color: #ffffff !important;
}

.btn-glass {
    background: #ffffff;
    border-color: #cbd5e1;
    color: var(--text-main) !important;
    box-shadow: var(--shadow-xs);
}

.btn-glass:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: #ffffff !important;
}

/* Mobile Hamburger (WCAG 2.2 SC 2.5.8 48x48px Target) */
.mobile-menu-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    font-size: 1.4rem;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

/* Breadcrumb Bar */
.page-breadcrumb-bar, .breadcrumbs {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.page-breadcrumb-bar a, .breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb-bar a:hover, .breadcrumbs a:hover {
    color: var(--text-main);
}

.page-breadcrumb-bar span.current {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Subpage Styles */
.subpage-hero, .page-hero {
    padding: 4.5rem 0 3.5rem;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(245, 110, 29, 0.08) 0%, rgba(248, 250, 252, 0) 70%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.subpage-badge, .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.badge-primary, .subpage-badge {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: #c2410c;
}

.badge-secondary {
    background: var(--secondary-light);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.subpage-headline {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.03em;
    max-width: 960px;
    margin: 0 auto 1.25rem;
    color: var(--text-main);
}

.subpage-subhead {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, #ea580c 0%, #f56e1d 50%, #c2410c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections & Layouts */
.section {
    padding: 4.5rem 0;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin: 3rem 0;
}

.feature-card, .card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover, .card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.65;
}

/* Detail Callout Box */
.deep-dive-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 2.75rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

/* Image Showcase Box */
.img-preview-box {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.img-caption {
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
}

.filter-scroll-mobile {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
}
.filter-scroll-mobile::-webkit-scrollbar {
    display: none;
}
.filter-scroll-mobile > * {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* High-Density Mobile Responsiveness & Vertical Scroll Reduction */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .subpage-headline { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    /* Compact Section & Hero Spacing */
    .page-hero { padding: 2.25rem 0 1.5rem !important; }
    .section { padding: 2rem 0 !important; }
    .section-title { margin-bottom: 1.5rem !important; }
    .section-title h2 { font-size: 1.6rem !important; line-height: 1.25 !important; }
    .breadcrumbs { margin-bottom: 0.75rem !important; }
    .subpage-hero { padding: 2.5rem 0 1.75rem !important; }
    .subpage-headline { font-size: 1.8rem !important; line-height: 1.2 !important; }
    .subpage-subhead { font-size: 0.95rem !important; margin-bottom: 1.25rem !important; }
    .announcement-bar { font-size: 0.75rem !important; padding: 0.35rem 0.75rem !important; }
    .announcement-badge { font-size: 0.65rem !important; padding: 0.15rem 0.45rem !important; }

    /* Fluid 1-Column Responsive Grid without Horizontal Overflow */
    .grid-mobile-scroll,
    .features-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    .grid-mobile-scroll > *,
    .features-grid > * {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* Ultra-Compact 2-Column Grid for Metrics & Badges */
    .stat-grid-mobile {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    /* Compact Card Padding */
    .card,
    .feature-card {
        padding: 1.15rem !important;
        border-radius: 14px !important;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .grid-3:not(.grid-mobile-scroll) {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .grid-4:not(.grid-mobile-scroll) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Deep Dive Card Compact on Mobile */
    .deep-dive-card {
        padding: 1.5rem 1.25rem !important;
        border-radius: 14px !important;
        margin: 2rem 0 !important;
    }
    .deep-dive-card > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Swipe Visual Indicator Badge */
    .mobile-swipe-hint {
        display: none !important;
    }

    /* Button Sizing on Mobile */
    .btn-lg {
        padding: 0.65rem 1.15rem !important;
        font-size: 0.88rem !important;
        width: 100% !important;
    }

    .header-content {
        height: 70px !important;
    }

    .brand-link img {
        height: 44px !important;
    }
}

@media (min-width: 769px) {
    .mobile-swipe-hint {
        display: none !important;
    }
}

/* Mobile Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-strong);
    padding: 1.25rem;
    z-index: 998;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
}

.mobile-nav-drawer.active {
    display: block;
}

.mobile-nav-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-drawer ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    padding: 0.4rem 0;
}

.mobile-nav-drawer ul li a.active {
    color: var(--primary);
}

/* ==============================================================================
   MODERN SAAS TOKENS, GLASSMORPHISM & INTERACTIVE ROI CALCULATOR
   ============================================================================== */

/* Glassmorphism & Card Glows */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

.card-glow-primary {
    position: relative;
    border: 1px solid rgba(234, 88, 12, 0.2) !important;
}

.card-glow-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ea580c, #f97316);
    border-radius: 16px 16px 0 0;
}

.card-glow-accent {
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

.card-glow-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 16px 16px 0 0;
}

/* Pulse Status Badges */
.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    position: relative;
}

.badge-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* Compliance Badge */
.badge-compliance {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Timeline Expiry Countdown */
.expiry-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.expiry-step {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.expiry-step.step-90 { border-top: 3px solid #10b981; }
.expiry-step.step-60 { border-top: 3px solid #06b6d4; }
.expiry-step.step-30 { border-top: 3px solid #f59e0b; }
.expiry-step.step-15 { border-top: 3px solid #f97316; }
.expiry-step.step-7  { border-top: 3px solid #ef4444; }
.expiry-step.step-0  { border-top: 3px solid #7f1d1d; background: #fef2f2; }

.expiry-step-days {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.expiry-step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ROI & Yield Calculator */
.roi-calculator-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
    margin: 3rem 0;
}

.roi-slider-group {
    margin-bottom: 1.75rem;
}

.roi-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.roi-slider-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.roi-slider-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace, sans-serif;
}

.range-slider-styled {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider-styled::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

.range-slider-styled::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.roi-result-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
}

.roi-kpi-block {
    margin-bottom: 1.5rem;
}

.roi-kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.roi-kpi-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    line-height: 1.1;
}

.roi-kpi-value.gold {
    color: #fbbf24;
}

.roi-kpi-value.green {
    color: #4ade80;
}

/* FAQ Accordion Styling */
.faq-accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question i {
    transition: transform 0.25s ease;
    font-size: 1.2rem;
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.65;
    display: none;
}

.faq-accordion-item.active .faq-answer {
    display: block;
}

.faq-accordion-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Screenshot Lightbox */
.screenshot-preview-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    background: #0f172a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot-preview-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
}

.screenshot-preview-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==============================================================================
   COMPREHENSIVE MOBILE VIEWPORTS & TOUCH TARGETS (320px - 768px)
   ============================================================================== */

/* Backdrop Overlay for Mobile Nav Drawer */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 997;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
}

/* Enhanced Mobile Drawer */
.mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-strong);
    padding: 1.25rem 1rem;
    z-index: 998;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    transform: translateY(-105%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.mobile-nav-drawer.active {
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.mobile-nav-drawer ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    min-height: 48px;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-drawer ul li a:hover,
.mobile-nav-drawer ul li a:active {
    background: #f1f5f9;
    color: var(--primary);
}

.mobile-nav-drawer ul li a.active {
    background: #fff7ed;
    color: var(--primary);
    font-weight: 700;
}

/* Expiry Radar Timeline - Desktop vs Mobile */
.expiry-timeline {
    display: flex;
    gap: 1.25rem;
    position: relative;
    margin: 2.5rem 0;
}

.timeline-step {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Mobile Expiry Timeline Stacking (< 768px) */
@media (max-width: 768px) {
    .expiry-timeline {
        flex-direction: column;
        gap: 1rem;
        padding-left: 1.25rem;
        border-left: 3px solid #fed7aa;
        margin-left: 0.5rem;
    }

    .timeline-step {
        padding: 1.15rem 1rem;
    }

    .timeline-step::before {
        content: '';
        position: absolute;
        left: -1.75rem;
        top: 1.5rem;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #f56e1d;
        border: 3px solid #ffffff;
        box-shadow: 0 0 0 2px #fed7aa;
    }
}

/* ROI Calculator Component Styles */
.roi-calculator-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.06);
    margin: 2rem 0;
}

.roi-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.roi-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.roi-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace, sans-serif;
    white-space: nowrap;
}

.roi-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(245, 110, 29, 0.4);
    border: 3px solid #ffffff;
    transition: transform 0.15s ease;
}

.roi-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.roi-results {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 2rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.roi-stat-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
}

.roi-stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.roi-stat-value {
    font-size: 1.85rem;
    font-weight: 900;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    line-height: 1.15;
    margin-bottom: 0.35rem;
    white-space: nowrap;
}

.roi-stat-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Mobile Viewports (< 768px) ROI Calculator */
@media (max-width: 768px) {
    .roi-calculator-card {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 1.5rem 1.15rem;
        border-radius: 16px;
    }

    .roi-results {
        padding: 1.25rem;
    }

    .roi-stat-value {
        font-size: 1.5rem;
    }
}

/* Form inputs font-size on mobile to prevent iOS Safari auto-zoom */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Lightbox Modal Mobile Sizing (< 600px) */
@media (max-width: 600px) {
    .lightbox-content {
        max-width: 96vw !important;
        margin: 1rem auto !important;
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM (Breakpoints: 991.98px, 767.98px, 575.98px, 400px)
   ========================================================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: var(--bg-subtle);
    color: var(--primary);
    border-color: var(--primary-border);
}

/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: #f8fafc;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.mobile-nav-drawer ul {
    list-style: none;
    padding: 1rem 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-drawer ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-drawer ul li a:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.mobile-nav-drawer ul li a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.mobile-drawer-footer {
    margin-top: auto;
    padding: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Tablet & Mobile Breakpoints (< 992px) */
@media (max-width: 991.98px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-content {
        height: 64px;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .btn-glass span,
    .nav-actions .btn-primary:not(.btn-mobile-visible) {
        display: none;
    }

    .nav-actions .btn-glass {
        padding: 0.45rem 0.65rem;
    }

    /* Grids Collapse to 2 columns or 1 column */
    .hero-grid,
    .subpage-grid,
    .contact-grid,
    .split-section,
    .overview-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .features-grid,
    .grid-4,
    .grid-3,
    .bento-grid,
    .stats-grid,
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }

    .bento-tall,
    .bento-wide {
        grid-column: span 2 !important;
        grid-row: auto !important;
    }

    .hero-visual,
    .subpage-visual {
        order: 2;
    }

    .hero-content,
    .subpage-content {
        order: 1;
        text-align: left;
    }
}

/* Mobile Phone Breakpoints (< 768px) */
@media (max-width: 767.98px) {
    .container {
        padding: 0 1rem !important;
    }

    .announcement-bar {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .announcement-bar strong {
        display: inline;
    }

    .features-grid,
    .grid-4,
    .grid-3,
    .grid-2,
    .bento-grid,
    .stats-grid,
    .cards-grid,
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .bento-tall,
    .bento-wide {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .card,
    .feature-card,
    .bento-item,
    .stat-card,
    .cta-card,
    .tour-step,
    .contact-card,
    .info-card {
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
        width: 100% !important;
    }

    .hero-actions,
    .cta-actions,
    .btn-group-responsive {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .subpage-hero,
    .hero-section {
        padding: 2.5rem 0 2rem 0 !important;
    }

    .section-py {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Table responsive wrapper touch scrolling */
    .table-responsive,
    .comparison-table-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-subtle) !important;
    }

    .comparison-table {
        min-width: 580px !important;
    }

    /* Floating WhatsApp widget responsive positioning */
    .whatsapp-widget-btn {
        bottom: 18px !important;
        right: 18px !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 1.6rem !important;
    }
}

/* Small Screens (< 480px) Extra Tight Protection */
@media (max-width: 480px) {
    .header-content {
        height: 64px;
    }

    .brand-link img {
        height: 40px !important;
        width: auto !important;
    }

    .announcement-bar {
        display: none !important; /* Save vertical real estate on small phones */
    }

    .hero-title,
    .subpage-title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }

    .hero-subtitle,
    .subpage-subhead {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
    }

    .stat-number {
        font-size: 1.65rem !important;
    }
}



