/* ==========================================================================
   ScaleUp Mobile Landing Page Stylesheet
   Designed for Mobile-Only with Realistic Presentation Frame on Desktop
   ========================================================================== */

/* --- Google Fonts & Variables --- */
:root {
    --bg-main: #070913;
    --bg-surface: rgba(16, 22, 38, 0.65);
    --bg-surface-elevated: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(16, 185, 129, 0.25);
    
    --primary: #10B981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #34D399;
    --navy-dark: #0A192F;
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --accent-red: #EF4444;
    --accent-red-glow: rgba(239, 68, 68, 0.2);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Reset & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #030408;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: #030408;
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- Presentation Device Wrapper (Desktop Bezel) --- */
.device-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgb(4, 12, 28) 0%, rgb(3, 4, 8) 90%);
    padding: 20px;
}

/* Base phone style (defaults to fullscreen on small viewports) */
.device-frame {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

/* Desktop simulated frame overlay styles */
@media (min-width: 481px) {
    .device-frame {
        width: 390px; /* iPhone 13/14 Pro dimensions */
        height: 844px;
        border: 11px solid #1E293B; /* Matte dark slate bezel */
        border-radius: 46px; /* Smooth rounded corners of hardware */
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                    0 0 40px rgba(16, 185, 129, 0.08),
                    inset 0 0 10px rgba(0,0,0,0.5);
    }
    
    .device-notch {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 130px;
        height: 28px;
        background-color: #1E293B;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        z-index: 1000;
    }
    
    .device-status-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 28px 4px 28px;
        height: 44px;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: -0.2px;
        color: var(--text-primary);
        z-index: 999;
        pointer-events: none;
        background-color: rgba(7, 9, 19, 0.5);
        backdrop-filter: blur(10px);
    }
    
    .status-icons {
        display: flex;
        gap: 6px;
        align-items: center;
    }
    
    .status-icon {
        width: 14px;
        height: 14px;
        opacity: 0.9;
    }
}

/* Hidden elements on standard mobile sizes */
.device-notch, .device-status-bar {
    display: none;
}

/* Viewport content holder */
.app-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Scrollable Container with iOS Moment Scroll physics */
.app-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 90px; /* Space for sticky bottom button */
}

/* Customize mobile scrollbar overlay */
.app-main::-webkit-scrollbar {
    width: 4px;
}
.app-main::-webkit-scrollbar-track {
    background: transparent;
}
.app-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* --- Sticky Mobile Header --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
}

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

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 50%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-cta {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-cta:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.96);
}

/* --- Core Buttons & Inputs --- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-bounce);
    width: 100%;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #04100b;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 4px 8px -2px var(--primary-glow);
}

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

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
}

/* --- Badge & Section Titles --- */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid var(--border-color-glow);
    margin-bottom: 16px;
}

.section-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 12px;
}

.section-badge.red-badge {
    background: rgba(239, 68, 68, 0.08);
    color: var(--accent-red);
    border: 1px solid var(--accent-red-glow);
}

.section-badge.emerald-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid var(--border-color-glow);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.7px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 80%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.6;
}

/* Section padding rules */
section {
    padding: 48px 20px;
    border-bottom: 1px solid var(--border-color);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 40px 20px 48px 20px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff, #E2E8F0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

/* Interactive SVG Dashboard Mockup */
.dashboard-mockup {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 100%;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mockup-dot.red { background-color: #FF5F56; }
.mockup-dot.yellow { background-color: #FFBD2E; }
.mockup-dot.green { background-color: #27C93F; }

.mockup-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-heading);
    margin-left: auto;
    letter-spacing: 0.5px;
}

.mockup-body {
    padding: 20px;
}

/* Vertical mini automation simulation */
.flow-pipeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    position: relative;
}

.pipeline-node {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.node-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.node-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.node-status {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
}

/* Connectors styled as dashes */
.pipeline-connector {
    width: 2px;
    height: 18px;
    background: repeating-linear-gradient(to bottom, var(--text-muted) 0px, var(--text-muted) 3px, transparent 3px, transparent 6px);
    margin-left: 28px;
    transition: var(--transition-smooth);
}

/* Active nodes during animation */
.pipeline-node.active {
    background-color: rgba(16, 185, 129, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.pipeline-node.active .node-icon {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #04100b;
    box-shadow: 0 0 10px var(--primary-glow);
}

.pipeline-node.active .node-status {
    color: var(--primary);
    animation: textPulse 1.5s infinite alternate;
}

.pipeline-connector.active {
    background: linear-gradient(to bottom, var(--primary), var(--text-muted));
}

@keyframes textPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* --- Trust Stats Banner --- */
.stats-banner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 24px 10px;
    background-color: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-lbl {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

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

/* --- ROI Calculator Section --- */
.calculator-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.calc-input-group {
    margin-bottom: 22px;
}

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

.calc-input-header label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calc-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    background-color: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color-glow);
}

.calc-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* Custom slider aesthetics */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin: 8px 0;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary) 0%, var(--primary) 100%);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.1s ease;
}

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

.calc-results {
    display: flex;
    gap: 12px;
    margin: 24px 0 16px 0;
}

.result-box {
    flex: 1;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    transition: var(--transition-smooth);
}

.result-box.highlighted {
    border-color: rgba(255,255,255,0.15);
}

.result-box.emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.02));
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.result-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.result-num {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
}

.result-box.emerald .result-num {
    color: var(--primary);
}

.calculator-footer {
    text-align: center;
    background-color: rgba(255,255,255,0.01);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.calculator-footer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- Problem Section --- */
.problem-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.problem-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.problem-card:active {
    transform: scale(0.98);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.card-icon.red {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid var(--accent-red-glow);
    color: var(--accent-red);
}

.problem-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.problem-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Solution Section --- */
.solution-section {
    background: radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

.solution-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-item {
    display: flex;
    gap: 14px;
}

.solution-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid var(--border-color-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.solution-text h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.solution-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.solution-grid-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 28px;
    margin-bottom: 12px;
    text-align: left;
}

.solution-target-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.target-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.target-card:active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    transform: scale(0.97);
}

.target-card-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.target-card-icon-svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    display: block;
    transition: var(--transition-smooth);
}

.target-card:active .target-card-icon-svg {
    transform: scale(1.1);
    color: var(--secondary);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition-smooth);
}

.feature-card:active {
    transform: scale(0.97);
}

.feat-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background-color: rgba(16, 185, 129, 0.06);
    border: 1px solid var(--border-color-glow);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- Event-Based Onboarding Section --- */
.event-onboarding-section {
    background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.05) 0%, transparent 60%);
}

.event-visual-widget {
    margin: 28px 0;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.ticket-stub {
    background: linear-gradient(135deg, #101F30, #0C1222);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(16, 185, 129, 0.1);
    overflow: hidden;
    position: relative;
    padding: 22px;
    transition: var(--transition-smooth);
}

.ticket-stub:hover {
    transform: translateY(-4px) rotate(1deg);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                0 0 25px rgba(52, 211, 153, 0.15);
}

/* Side notch cutouts at the dashboard level of the ticket stub */
.ticket-stub::before, .ticket-stub::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-main);
    z-index: 5;
    bottom: 66px; /* perfectly aligned with dashed line */
}

.ticket-stub::before {
    left: -10px;
    border-right: 1.5px solid var(--primary);
}

.ticket-stub::after {
    right: -10px;
    border-left: 1.5px solid var(--primary);
}

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

.ticket-badge {
    font-size: 0.65rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid var(--border-color-glow);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-price {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ticket-body {
    text-align: left;
}

.ticket-body h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.ticket-body p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ticket-status-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(52, 211, 153, 0.1);
    border: 1.5px solid var(--secondary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.ticket-dashed-line {
    border-top: 1.5px dashed rgba(16, 185, 129, 0.3);
    margin: 22px -22px 18px -22px;
    height: 1px;
}

.ticket-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-mockup {
    width: 58px;
    height: 58px;
    background-color: #fff;
    padding: 5px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.qr-pixel-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
}

.qr-corner {
    background-color: #0C1222;
    border-radius: 1px;
}

.qr-corner.top-left {
    grid-column: 1;
    grid-row: 1;
}

.qr-corner.top-right {
    grid-column: 3;
    grid-row: 1;
}

.qr-corner.bottom-left {
    grid-column: 1;
    grid-row: 3;
}

.qr-dot.center {
    grid-column: 2;
    grid-row: 2;
    background-color: #0C1222;
    border-radius: 50%;
}

.qr-hint {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-use-cases {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.event-use-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    text-align: left;
}

.event-use-card:active {
    transform: scale(0.98);
    border-color: var(--primary);
}

.event-use-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.event-use-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- How It Works Section --- */
.timeline {
    position: relative;
    padding-left: 24px;
}

/* The vertical connecting line */
.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    bottom: 5px;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), rgba(255,255,255,0.05));
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-num {
    position: absolute;
    left: -24px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.timeline-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-left: 14px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Testimonials Section --- */
.testimonials-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 10px;
}

.testimonials-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 14px 4px;
}

/* Custom scroll hide for swipe container */
.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stars {
    color: #FBBF24;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.quote {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #04100b;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.4;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dots .dot.active {
    width: 20px;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    opacity: 1;
}

/* --- CTA Section --- */
.cta-section {
    padding: 40px 20px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.05) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.05);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* --- Footer --- */
.app-footer {
    padding: 40px 20px 24px 20px;
    background-color: rgba(3, 4, 8, 0.5);
}

.footer-brand {
    margin-bottom: 28px;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    margin-bottom: 28px;
}

.link-group h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.link-group a {
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
}

.contact-phone {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

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

.footer-bottom p {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icons a:active {
    color: var(--primary);
}

/* --- Sticky Bottom CTA Overlay --- */
.sticky-cta-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Initially hidden */
    width: calc(100% - 40px);
    max-width: 350px;
    z-index: 850;
    transition: var(--transition-bounce);
}

/* Slide in state on scroll */
.sticky-cta-container.visible {
    transform: translateX(-50%) translateY(0);
}

.sticky-cta-btn {
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.sticky-cta-btn span {
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- Multi-step Consultation Form Modal --- */
.modal-overlay {
    position: absolute; /* Relative to device container */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(3, 4, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end; /* Align bottom sheet style */
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #0C1222;
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    width: 100%;
    max-height: 85%;
    padding: 28px 24px 34px 24px;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.4rem;
    font-weight: 300;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 1;
}

.modal-close:active {
    background: rgba(255,255,255,0.12);
}

.modal-header {
    margin-bottom: 24px;
    padding-right: 36px;
}

.modal-step-indicator {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.modal-step-indicator strong {
    color: var(--primary);
}

#modalTitle {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
}

.modal-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    margin-top: 12px;
    overflow: hidden;
}

.modal-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Form inputs & cards */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group select option {
    background-color: #0C1222;
    color: #ffffff;
}

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

/* Radio select cards styling */
.radio-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-card {
    position: relative;
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    transition: var(--transition-smooth);
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
}

.radio-card-content strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.radio-card-content span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Radio Checked Highlight style */
.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.05);
}

/* Checkbox Cards Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-card {
    position: relative;
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--text-muted);
    flex-shrink: 0;
    position: relative;
    display: inline-block;
}

.checkbox-card span:last-child {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
}

.checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.03);
}

.checkbox-card:has(input[type="checkbox"]:checked) .checkbox-box {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-card:has(input[type="checkbox"]:checked) .checkbox-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #04100b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* Success Step styles */
.success-step {
    text-align: center;
    padding: 10px 0;
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.success-checkmark {
    width: 72px;
    height: 72px;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--primary);
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: var(--primary);
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.success-step h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-step strong {
    color: var(--text-primary);
}

.success-note {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-top: 18px;
    margin-bottom: 24px !important;
}

/* --- Premium Startup Onboarding Overhaul --- */
.modal-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

/* Radio select cards modern styling */
.radio-card {
    position: relative;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.radio-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.radio-card-icon svg {
    transition: transform 0.3s ease;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-right: 32px;
}

.radio-card-content strong {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.radio-card-content span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.35;
}

/* Selected state active card glows & scale triggers */
.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.06);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15), inset 0 0 10px rgba(16, 185, 129, 0.05);
    transform: scale(1.02);
}

.radio-card:has(input[type="radio"]:checked) .radio-card-icon {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.3);
}

.radio-card:has(input[type="radio"]:checked) .radio-card-icon svg {
    transform: scale(1.1);
}

.radio-card:has(input[type="radio"]:checked) .radio-card-content strong {
    color: var(--text-primary);
}

/* Active checked circle overlay checkmarks */
.radio-card-check {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%) scale(0.6);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #04100b;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.radio-card:has(input[type="radio"]:checked) .radio-card-check {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Business selector tag pills */
.business-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.type-pill {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.type-pill:active, .type-pill.active {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

/* Workflow automation visual diagram */
.workflow-preview-section {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.workflow-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.2), transparent);
}

.preview-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.8px;
}

.workflow-nodes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 2px;
}

.preview-node {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-width: 0;
}

.preview-node-icon {
    font-size: 1rem;
}

.preview-node-icon-svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
    display: block;
    transition: var(--transition-smooth);
}

.preview-node.highlighted .preview-node-icon-svg {
    color: var(--primary);
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

.preview-node span:last-child {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
    max-width: 100%;
}

.preview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    flex-shrink: 0;
    width: 12px;
}

.arrow-svg {
    width: 12px;
    height: 12px;
    opacity: 0.4;
    color: var(--text-muted);
}

.preview-node.highlighted {
    background-color: rgba(16, 185, 129, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
    animation: workflow-pulse 3s infinite ease-in-out;
}

.preview-node.highlighted span:last-child {
    color: var(--primary);
}

@keyframes workflow-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.08);
        border-color: rgba(16, 185, 129, 0.6);
    }
    50% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
        border-color: var(--primary);
    }
}

/* Premium footer CTA overhaul */
.modal-footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.btn-workflow-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 15px 28px;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-workflow-cta:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Trust Indicators styling */
.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
}

}

/* --- Workflow Setup - Step 2 Styling --- */

/* 1. Workflow Type & Goal Pills */
.workflow-pills-container,
.goals-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.form-group .workflow-pill-label,
.form-group .goal-pill-label {
    position: relative;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
}

.workflow-pill-label input[type="radio"],
.goal-pill-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.workflow-pill-label span,
.goal-pill-label span {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.workflow-pill-label input[type="radio"]:checked + span,
.goal-pill-label input[type="checkbox"]:checked + span {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.workflow-pill-label:active span,
.goal-pill-label:active span {
    transform: scale(0.96);
}

/* 1.5 Global Modal Card Display Fixes */
.form-group .radio-card,
.form-group .checkbox-card {
    display: flex !important;
}

/* 2. Bottleneck Cards Grid */
.bottleneck-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.form-group .bottleneck-card {
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    min-height: 104px;
    justify-content: center;
}

.bottleneck-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bottleneck-checkbox-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    border: 1.2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.bottleneck-card:hover .bottleneck-checkbox-indicator {
    border-color: rgba(16, 185, 129, 0.5);
}

.bottleneck-card input[type="checkbox"]:checked ~ .bottleneck-checkbox-indicator {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.bottleneck-card input[type="checkbox"]:checked ~ .bottleneck-checkbox-indicator::after {
    content: "";
    width: 3px;
    height: 6px;
    border: solid #04100b;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translate(-0.3px, -0.6px);
    display: block;
}

.bottleneck-card-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.bottleneck-card-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.bottleneck-card-content {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-secondary);
    white-space: normal;
    word-break: break-word;
    transition: all 0.3s ease;
}

/* Selected bottleneck card state */
.bottleneck-card:has(input[type="checkbox"]:checked) {
    background-color: rgba(16, 185, 129, 0.03);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

/* Sibling checked states for 100% browser fallback coverage */
.bottleneck-card input[type="checkbox"]:checked ~ .bottleneck-card-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
    transform: scale(1.1);
}

.bottleneck-card input[type="checkbox"]:checked ~ .bottleneck-card-content {
    color: var(--text-primary);
}

.bottleneck-card:has(input[type="checkbox"]:checked) .bottleneck-card-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
    transform: scale(1.1);
}

.bottleneck-card:has(input[type="checkbox"]:checked) .bottleneck-card-content {
    color: var(--text-primary);
}

.bottleneck-card:active {
    transform: scale(0.96);
}

/* 3. Mini Animated Workflow Diagram Blueprint */
.mini-workflow-container {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.mini-workflow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.2), transparent);
}

.mini-workflow-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.8px;
    text-align: center;
}

.mini-workflow-nodes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}

.mini-node {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: all 0.3s ease;
    min-width: 0;
}

.mini-node-svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
    display: block;
    transition: var(--transition-smooth);
}

.mini-node span {
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
}

.mini-node.highlighted {
    border-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
    animation: pulseBorder 2s infinite ease-in-out;
}

.mini-node.highlighted .mini-node-svg {
    color: var(--primary);
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

.mini-node.highlighted span {
    color: var(--text-primary);
}

.mini-connector {
    width: 10px;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
    flex-shrink: 0;
}

.mini-connector-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    top: -1px;
    left: 0;
    box-shadow: 0 0 6px var(--primary);
    animation: flowDot 1.8s infinite linear;
}

#btnNextStep.generating-glow {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: pulseGlowBtn 2s infinite ease-in-out;
}

/* Animations */
@keyframes flowDot {
    0% { left: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.15); }
    50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.35); }
}

@keyframes pulseGlowBtn {
    0%, 100% {
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 24px rgba(16, 185, 129, 0.7);
        transform: scale(1.02);
    }
}

/* If opening directly on native mobile (no desktop container wrapper applies) */
@media (max-width: 480px) {
    .device-wrapper {
        padding: 0;
        background: none;
    }
    
    .device-frame {
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    
    .modal-overlay {
        position: fixed; /* Fixed relative to phone display */
    }
    
    .sticky-cta-container {
        position: fixed;
    }
}

/* --- Responsive Micro-adjustments & Input Fixes --- */
.workflow-pill-label input[type="radio"],
.goal-pill-label input[type="checkbox"],
.bottleneck-card input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.business-type-pills,
.workflow-pills-container,
.goals-pills-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    row-gap: 10px !important;
    column-gap: 8px !important;
}

@media (max-width: 375px) {
    .modal-card {
        padding: 22px 18px 28px 18px !important;
    }
    
    .bottleneck-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .form-group .bottleneck-card {
        padding: 12px 8px !important;
        min-height: 94px !important;
        gap: 6px !important;
    }
    
    .bottleneck-card-content {
        font-size: 0.65rem !important;
    }
    
    .workflow-pill-label span,
    .goal-pill-label span,
    .type-pill {
        font-size: 0.68rem !important;
        padding: 6px 12px !important;
    }
    
    .mini-node span {
        font-size: 0.48rem !important;
    }
    
    .mini-connector {
        width: 6px !important;
    }
    
    .preview-node span:last-child {
        font-size: 0.5rem !important;
    }
    
    .preview-arrow {
        width: 8px !important;
    }
}

/* Premium Custom Select Picklist Component Styles */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 13px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.custom-select-trigger:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background-color: rgba(255, 255, 255, 0.04);
}

.custom-select-container.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
}

.custom-select-trigger-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: 10px;
}

.custom-select-container.open .custom-select-trigger-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background-color: #0c1222;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(16, 185, 129, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.custom-select-container.open .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-select-option {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease;
    user-select: none;
    margin-bottom: 2px;
    box-sizing: border-box;
    padding-right: 32px; /* Make space for check icon */
}

.custom-select-option:last-child {
    margin-bottom: 0;
}

.custom-select-option:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.custom-select-option.selected {
    background-color: rgba(16, 185, 129, 0.06);
    border-left: 3px solid var(--primary);
    padding-left: 11px; /* Offset to keep alignment perfect */
}

.option-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.custom-select-option.selected .option-title {
    color: var(--primary);
}

.option-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.3;
}

.option-check-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    width: 14px;
    height: 14px;
    color: var(--primary);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}

.custom-select-option.selected .option-check-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Ensure dropdown triggers wrap correctly on tiny mobile viewports */
@media (max-width: 375px) {
    .custom-select-trigger {
        padding: 11px 13px !important;
        font-size: 0.8rem !important;
    }
    
    .option-title {
        font-size: 0.78rem !important;
    }
    
    .option-subtitle {
        font-size: 0.65rem !important;
    }
}

/* Onboarding Form Submission & Leads API States */
.submit-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinner-rotate 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

.submit-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    margin: 0 16px 14px 16px;
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    animation: banner-fade-in 0.35s ease;
    box-sizing: border-box;
}

.submit-error-banner svg {
    color: #ef4444;
    flex-shrink: 0;
}

.submit-success-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin: 16px 0;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    animation: banner-fade-in 0.45s ease;
    box-sizing: border-box;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.04);
}

.submit-success-banner svg {
    color: var(--primary);
    flex-shrink: 0;
}

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


