/* 
   MobileFlow CRM - Stylesheet
   Design Paradigm: Sleek Slate & Vibrant Emerald Dark Mode
   With Glassmorphic Accents, Outfit Typography, & Responsive Layouts
*/

/* --- Design Tokens & Variables --- */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(20, 26, 40, 0.65);
    --bg-card-hover: rgba(28, 36, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(16, 185, 129, 0.3);
    
    --color-primary: #10b981;      /* Emerald Green */
    --color-primary-hover: #059669;
    --color-text-main: #f8fafc;    /* Clean Off-white */
    --color-text-muted: #94a3b8;   /* Soft Slate Blue */
    --color-slate-dark: #0f172a;
    --color-slate-light: #334155;
    
    --color-accent-blue: #0284c7;  /* Route Info */
    --color-accent-amber: #d97706; /* Warnings */
    --color-accent-red: #ef4444;   /* Error/Cancel */
    
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 16px;
    --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients Glows */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.06) 0%, rgba(2, 132, 199, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- Layout Utility Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typographical System --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 50%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 16px;
    color: #ffffff;
}

p {
    color: var(--color-text-muted);
}

.text-center { text-align: center; }
.text-emerald { color: var(--color-primary) !important; }
.icon-emerald { color: var(--color-primary); }

/* --- UI Buttons & Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #0b0f19;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Glassmorphic Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-speed) ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Badge Utility */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* --- Header / Navigation Styles --- */
.main-header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--color-primary);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.logo-text span {
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
    position: relative;
    padding: 4px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.nav-cta {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.main-nav a.btn-primary {
    color: #0b0f19;
}

.main-nav a.btn-primary:hover {
    color: #0b0f19;
}

.main-nav a.btn-secondary {
    color: #ffffff;
}

.main-nav a.btn-secondary:hover {
    color: #ffffff;
}

/* --- Hero Section Styles --- */
.hero-section {
    padding: 80px 0 100px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 36px;
    line-height: 1.5;
}

/* CTA Forms */
.cta-form {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.form-input-group {
    position: relative;
    flex-grow: 1;
}

.form-input-group input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 16px 16px 16px 48px;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.form-input-group input:focus {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px 0 rgba(16, 185, 129, 0.15);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Dual Portal Landing Cards */
.dual-portal-container {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.dual-portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.portal-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid var(--border-color) !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all 0.3s ease;
}

.groomer-portal-card::before {
    background: linear-gradient(90deg, var(--color-primary), #34d399);
}

.client-portal-card::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.portal-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.03) !important;
}

.groomer-portal-card:hover {
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.client-portal-card:hover {
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3) !important;
}

.card-accent-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.card-accent-pill.accent-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-accent-pill.accent-blue {
    background: rgba(37, 99, 235, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.portal-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.portal-card p.text-muted {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

/* Custom emerald button styles */
.btn-emerald {
    background: linear-gradient(135deg, var(--color-primary), #059669);
    color: #fff;
    border: 0;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
}

/* Responsive adjustments for styles stack */
@media (max-width: 768px) {
    .dual-portal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    margin-right: -12px;
    object-fit: cover;
}

.social-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Phone Mockup Element --- */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: #1e293b;
    border: 12px solid #334155;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
}

.status-bar {
    height: 28px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.status-bar .icons {
    display: flex;
    gap: 6px;
}

.app-bar {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.app-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.app-body {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Phone Stats Component */
.stats-card {
    display: flex;
    padding: 12px;
    gap: 10px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.stat-divider {
    width: 1px;
    background-color: var(--border-color);
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Timeline/Route stops component */
.route-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 14px;
}

.route-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--color-slate-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item .marker {
    position: absolute;
    left: -14px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-slate-light);
    border: 2px solid var(--bg-main);
    z-index: 2;
}

.timeline-item.active .marker {
    background-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
}

.timeline-item.confirmed .marker {
    background-color: var(--color-accent-blue);
}

.timeline-item.pending .marker {
    background-color: var(--color-accent-amber);
}

.timeline-item .time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.timeline-item .details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 10px;
}

.timeline-item .details h5 {
    font-size: 0.85rem;
    color: #ffffff;
}

.timeline-item .details p {
    font-size: 0.7rem;
}

.status-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 100px;
    margin-top: 6px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--color-accent-blue);
}

.status-badge.progress {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
}

.status-badge.unpaid {
    background: rgba(217, 119, 6, 0.1);
    color: var(--color-accent-amber);
}

/* Floating Animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

/* --- Features Section --- */
.features-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-title p {
    font-size: 1.15rem;
    margin-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Interactive Demo Section --- */
.demo-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0) 60%);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.demo-info h2 {
    margin-bottom: 16px;
}

.demo-lead {
    font-size: 1.15rem;
    margin-bottom: 36px;
}

.sandbox-controls {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sandbox-controls h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.control-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.radio-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selector-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.selector-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.selector-btn.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

/* Demo App Visual Elements */
.demo-visual {
    display: flex;
    justify-content: center;
}

.bg-slate {
    background-color: var(--color-slate-dark);
}

.calculation-result {
    padding: 16px;
    border-color: var(--border-glow);
    background: rgba(16, 185, 129, 0.03);
    text-align: center;
}

.calculation-result h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.calc-time {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 6px 0;
}

.calc-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.route-warning-box {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.route-warning-box.warning {
    background: rgba(217, 119, 6, 0.06);
    border-color: rgba(217, 119, 6, 0.15);
}

.route-warning-box.warning i {
    color: var(--color-accent-amber);
}

.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cal-block {
    padding: 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.cal-block.occupied {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
}

.cal-block.suggestion {
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px dashed var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.cal-block.suggestion.warning-state {
    background-color: rgba(217, 119, 6, 0.05);
    border-color: var(--color-accent-amber);
    color: var(--color-accent-amber);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .85; }
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.pricing-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pricing-card {
    max-width: 480px;
    width: 100%;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.15);
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--color-primary);
    color: #0b0f19;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 36px;
    transform: rotate(45deg);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 16px;
}

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

.card-header p {
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.card-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.card-body li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.card-body li i {
    color: var(--color-primary);
}

/* --- Call To Action Section --- */
.cta-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.cta-inner {
    padding: 60px 40px;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.cta-inner h2 {
    margin-bottom: 16px;
}

.cta-inner p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.cta-inner .cta-form {
    max-width: 700px;
    margin: 0 auto;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.cta-inner .form-input-group {
    flex-grow: 1;
}

.success-alert {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-primary);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 20px;
    text-align: left;
    max-width: 600px;
}

.hidden {
    display: none !important;
}

/* --- Footer --- */
.main-footer {
    padding: 60px 0 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: #080b13;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copyright p {
    font-size: 0.85rem;
}

.landing-mobile-toggle-btn {
    display: none !important;
}
.landing-close-btn {
    display: none !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .badge {
        margin-bottom: 16px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .cta-form {
        max-content: 500px;
        margin: 0 auto 36px auto;
    }
    
    .social-proof {
        justify-content: center;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 767px) {
    .landing-mobile-toggle-btn {
        display: flex !important;
    }
    
    .landing-close-btn {
        display: block !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -280px; /* Hidden offscreen by default */
        width: 280px;
        height: 100vh;
        background: #0f172a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 24px 24px 24px;
        z-index: 2000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.6);
        visibility: hidden;
        display: flex !important;
    }
    
    .main-nav.active {
        right: 0; /* Slide in! */
        visibility: visible;
    }
    
    .main-nav a {
        margin: 0 0 16px 0 !important;
        width: 100%;
        display: block;
        text-align: left;
        padding: 10px 14px;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .main-nav a.nav-cta {
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 10px !important;
    }
    
    /* Overlay for landing mobile menu */
    .landing-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(4, 6, 12, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1999;
        display: none;
    }
    
    .landing-mobile-overlay.active {
        display: block;
    }
    
    .cta-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-inner {
        padding: 40px 20px;
    }
    
    .pricing-card {
        padding: 40px 24px;
    }
}

/* --- ROI Calculator Section --- */
.calculator-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.02) 0%, rgba(16, 185, 129, 0) 60%);
}

.calculator-card {
    padding: 40px;
    margin-top: 20px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.calc-inputs h3, .calc-outputs h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.calc-control {
    margin-bottom: 24px;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.control-header label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-header label i {
    color: var(--color-primary);
}

.control-value {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Slider custom range appearance */
.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--color-slate-light);
    outline: none;
    margin: 12px 0;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.calc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    border: none;
    transition: transform 0.1s ease;
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.25);
}

.calc-outputs {
    background: rgba(8, 11, 19, 0.4);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    position: relative;
}

.outputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.output-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.output-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.output-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.output-sub {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.roi-summary-box {
    background: rgba(16, 185, 129, 0.02);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.summary-row .summary-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.summary-row .summary-value {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.roi-summary-box .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 12px 0;
}

.summary-row.highlight {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.summary-row.highlight .summary-label {
    color: #ffffff;
    font-weight: 700;
}

.summary-row.highlight .summary-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.roi-multiplier-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 14px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

/* Responsiveness for Calculator */
@media (max-width: 860px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .calculator-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .outputs-grid {
        grid-template-columns: 1fr;
    }
}

