/* ========================================
   MOBILE-FIRST BASE STYLES & RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 122, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #ffffff;
    font-size: 16px; /* Base 16px for better mobile readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
}

/* Better touch scrolling on iOS */
body,
.modal-content,
.onboarding-content {
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   NAVIGATION - MOBILE FIRST
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e5e5e7;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    z-index: 1001;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px; /* Touch-friendly size */
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Links */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    list-style: none;
    padding: 80px 30px 30px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-links.active {
    right: 0;
}

.nav-links li {
    border-bottom: 1px solid #e5e5e7;
}

.nav-links a {
    display: block;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 18px;
    padding: 20px 0;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:active {
    background: #f5f5f7;
}

.nav-links a.active {
    color: #007AFF;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-cta {
    background: #007AFF;
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    min-height: 44px; /* Touch-friendly */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:active {
    transform: scale(0.95);
    background: #0051D5;
}

.simple-nav {
    background: white;
}

.nav-help {
    display: none; /* Hidden on mobile */
}

/* Tablet and Desktop */
@media (min-width: 769px) {
    .nav-container {
        padding: 20px 40px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
        gap: 40px;
    }
    
    .nav-links li {
        border-bottom: none;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 0;
        font-weight: 400;
    }
    
    .nav-links a:hover {
        opacity: 0.7;
    }
    
    .nav-links a:active {
        background: transparent;
    }
    
    .mobile-menu-overlay {
        display: none;
    }
    
    .nav-cta:hover {
        background: #0051D5;
        transform: translateY(-2px);
    }
    
    .nav-help {
        display: inline;
        font-size: 14px;
        color: #6e6e73;
    }
    
    .nav-help a {
        color: #007AFF;
        text-decoration: none;
    }
}

/* ========================================
   BETA BADGE - MOBILE OPTIMIZED
   ======================================== */
.beta-badge {
    position: fixed;
    top: 70px;
    right: 10px;
    background: #34C759;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    z-index: 999;
    animation: pulse 2s infinite;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (min-width: 769px) {
    .beta-badge {
        top: 80px;
        right: 20px;
        padding: 8px 16px;
        font-size: 12px;
        max-width: none;
    }
}

/* ========================================
   HERO SECTIONS - MOBILE FIRST
   ======================================== */
.hero {
    margin-top: 60px;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero .subhead {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.4;
}

.pricing-hero,
.use-cases-hero {
    margin-top: 60px;
    padding: 60px 20px 40px;
    text-align: center;
}

.pricing-hero h1,
.use-cases-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* Tablet and Desktop */
@media (min-width: 769px) {
    .hero {
        margin-top: 80px;
        padding: 120px 40px;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero h1 {
        font-size: 56px;
        margin-bottom: 24px;
    }
    
    .hero .subhead {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .pricing-hero,
    .use-cases-hero {
        margin-top: 80px;
        padding: 100px 40px 60px;
    }
    
    .pricing-hero h1,
    .use-cases-hero h1 {
        font-size: 48px;
        margin-bottom: 20px;
    }
}

/* ========================================
   DEMO SECTION
   ======================================== */
.demo-container {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 60px;
    margin: 60px 0;
    position: relative;
}

.demo-qr {
    background: white;
    padding: 40px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.demo-qr:hover {
    transform: scale(1.02);
}

.qr-placeholder {
    width: 240px;
    height: 240px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"><rect width="240" height="240" fill="%23fff"/><rect width="20" height="20" fill="%23000"/><rect x="220" width="20" height="20" fill="%23000"/><rect y="220" width="20" height="20" fill="%23000"/><rect x="40" y="40" width="40" height="40" fill="%23000"/><rect x="160" y="40" width="40" height="40" fill="%23000"/><rect x="40" y="160" width="40" height="40" fill="%23000"/><rect x="100" y="100" width="40" height="40" fill="%23007AFF"/></svg>') center/cover;
    margin-bottom: 20px;
}

.demo-button {
    background: #007AFF;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.demo-button:hover {
    background: #0051D5;
}

.demo-result {
    margin-top: 30px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    display: none;
    animation: fadeIn 0.5s;
}

.demo-result.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pivot-animation {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pivot-before {
    color: #6e6e73;
    text-decoration: line-through;
}

.pivot-after {
    color: #34C759;
    margin-left: 20px;
}

/* ========================================
   BUTTONS - MOBILE OPTIMIZED
   ======================================== */
.cta-button {
    display: inline-block;
    background: #007AFF;
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,122,255,0.3);
    border: none;
    cursor: pointer;
    min-height: 48px; /* Touch-friendly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
}

.cta-button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(0,122,255,0.3);
}

.cta-button.full-width {
    width: 100%;
    display: flex;
}

.cta-button.cta-large {
    padding: 18px 48px;
    font-size: 18px;
    min-height: 56px;
}

.secondary-button {
    display: inline-block;
    background: white;
    color: #007AFF;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #007AFF;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
}

.secondary-button:active {
    transform: scale(0.97);
    background: rgba(0,122,255,0.1);
}

.secondary-button.full-width {
    width: 100%;
    display: flex;
}

/* Desktop hover effects */
@media (min-width: 769px) {
    .cta-button {
        padding: 20px 48px;
        font-size: 18px;
    }
    
    .cta-button:hover {
        background: #0051D5;
        transform: translateY(-2px);
        box-shadow: 0 6px 30px rgba(0,122,255,0.4);
    }
    
    .cta-button:active {
        transform: translateY(-1px);
    }
    
    .cta-button.cta-large {
        padding: 24px 60px;
        font-size: 20px;
    }
    
    .secondary-button {
        padding: 16px 40px;
    }
    
    .secondary-button:hover {
        background: #007AFF;
        color: white;
    }
    
    .secondary-button:active {
        transform: translateY(-1px);
    }
}

/* ========================================
   ANALYTICS SECTION
   ======================================== */
.analytics-section {
    padding: 100px 40px;
    background: white;
}

.analytics-container {
    max-width: 1200px;
    margin: 0 auto;
}

.analytics-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.analytics-feature {
    text-align: center;
    padding: 40px 20px;
}

.analytics-feature h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.analytics-feature p {
    color: #6e6e73;
    line-height: 1.6;
}

.analytics-metrics {
    background: #f5f5f7;
    padding: 60px;
    border-radius: 24px;
    margin-top: 60px;
}

.analytics-metrics h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

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

.metric-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
}

.metric-label {
    font-weight: 600;
    font-size: 16px;
    color: #007AFF;
    margin-bottom: 8px;
}

.metric-item p {
    font-size: 14px;
    color: #6e6e73;
}

@media (max-width: 768px) {
    .analytics-section {
        padding: 60px 20px;
    }
    
    .analytics-features {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .analytics-metrics {
        padding: 40px 20px;
    }
    
    .analytics-metrics h3 {
        font-size: 24px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ENTERPRISE SECTION
   ======================================== */
.enterprise-section {
    padding: 100px 40px;
    background: #f5f5f7;
}

.enterprise-container {
    max-width: 1200px;
    margin: 0 auto;
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.enterprise-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s;
}

.enterprise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.enterprise-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.enterprise-card p {
    color: #6e6e73;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .enterprise-section {
        padding: 60px 20px;
    }
    
    .enterprise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .enterprise-card {
        padding: 30px 24px;
    }
}

/* ========================================
   SECTIONS - MOBILE FIRST
   ======================================== */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    padding: 0 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: #6e6e73;
    margin-bottom: 40px;
    line-height: 1.5;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .section-title {
        font-size: 48px;
        margin-bottom: 24px;
        padding: 0;
    }
    
    .section-subtitle {
        font-size: 20px;
        margin-bottom: 60px;
        padding: 0;
    }
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
    padding: 100px 40px;
    background: white;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.benefit-card {
    text-align: center;
    padding: 40px 20px;
}

.benefit-icon {
    font-size: 14px;
    font-weight: 700;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    letter-spacing: 0.5px;
}

.benefit-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: #6e6e73;
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   USE CASES PREVIEW
   ======================================== */
.use-cases-preview {
    padding: 100px 40px;
    background: #f5f5f7;
}

.use-case-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.use-case-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.use-case-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.pain-point {
    color: #6e6e73;
    font-size: 14px;
    margin-bottom: 12px;
}

.solution {
    color: #1d1d1f;
    font-weight: 500;
    margin-bottom: 16px;
}

.setup-time {
    color: #34C759;
    font-weight: 600;
    font-size: 14px;
}

.cta-center {
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   SOCIAL PROOF
   ======================================== */
.social-proof {
    padding: 100px 40px;
    background: white;
}

.social-proof-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f7;
    border-radius: 16px;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 8px;
}

.stat-label {
    color: #6e6e73;
    font-size: 16px;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 40px;
    background: #f5f5f7;
    padding: 4px;
    border-radius: 12px;
    display: inline-flex;
    margin-left: 50%;
    transform: translateX(-50%);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #6e6e73;
}

.toggle-btn.active {
    background: white;
    color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.save-badge {
    background: #34C759;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    margin-left: 8px;
}

.pricing-section {
    padding: 60px 40px 100px;
    background: white;
}

.pricing-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 48px 36px;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
}

.pricing-card.featured * {
    color: white;
}

.plan-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #6e6e73;
}

.plan-badge.popular {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.pricing-card.featured .plan-badge {
    color: rgba(255,255,255,0.9);
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 56px;
    font-weight: 700;
}

.price-period {
    font-size: 16px;
    color: #6e6e73;
}

.pricing-card.featured .price-period {
    color: rgba(255,255,255,0.9);
}

.plan-outcome {
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
    min-height: 48px;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}

.plan-features li {
    padding: 12px 0;
    font-size: 15px;
}

.plan-cta {
    display: block;
    text-align: center;
    background: #007AFF;
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.pricing-card.featured .plan-cta {
    background: white;
    color: #007AFF;
}

.plan-cta:hover {
    background: #0051D5;
}

.pricing-card.featured .plan-cta:hover {
    background: #f5f5f7;
}

.plan-note {
    text-align: center;
    font-size: 13px;
    color: #6e6e73;
    margin-top: 12px;
}

.pricing-card.featured .plan-note {
    color: rgba(255,255,255,0.8);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */
.comparison-section {
    padding: 100px 40px;
    background: #f5f5f7;
}

.comparison-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: #f5f5f7;
}

.comparison-table th {
    padding: 24px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6e6e73;
}

.comparison-table td {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e7;
}

.comparison-table td:first-child {
    font-weight: 500;
}

/* ========================================
   USE CASES PAGE
   ======================================== */
.industry-table-section {
    padding: 60px 40px;
    background: white;
}

.use-case-table {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.use-case-table table {
    width: 100%;
    border-collapse: collapse;
}

.use-case-table thead {
    background: #f5f5f7;
}

.use-case-table th {
    padding: 24px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6e6e73;
}

.use-case-table td {
    padding: 28px 24px;
    border-top: 1px solid #e5e5e7;
}

.industry-name {
    font-weight: 600;
    font-size: 18px;
}

/* ========================================
   USE CASE STORIES
   ======================================== */
.use-case-stories {
    padding: 100px 40px;
    background: #f5f5f7;
}

.story-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.story-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
}

.story-icon {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 20px;
}

.story-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.story-problem,
.story-solution {
    margin-bottom: 24px;
}

.story-problem h4,
.story-solution h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6e6e73;
    margin-bottom: 8px;
}

.story-problem p {
    color: #6e6e73;
}

.story-solution p {
    color: #34C759;
    font-weight: 500;
}

.story-outcome {
    padding-top: 20px;
    border-top: 1px solid #e5e5e7;
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   LEAD MAGNET
   ======================================== */
.lead-magnet-section {
    padding: 100px 40px;
    background: white;
}

.lead-magnet-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 24px;
}

.lead-magnet-card h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.lead-magnet-card p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.playbook-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.playbook-input {
    flex: 1;
    padding: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.playbook-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.playbook-button {
    background: white;
    color: #007AFF;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.playbook-button:hover {
    background: #f5f5f7;
}

.form-note {
    font-size: 13px;
    margin-top: 12px;
    opacity: 0.8;
}

/* ========================================
   INDUSTRY SELECTOR
   ======================================== */
.industry-selector-section {
    padding: 100px 40px;
    background: #f5f5f7;
}

.industry-buttons {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.industry-btn {
    background: white;
    border: 2px solid #e5e5e7;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.industry-btn:hover {
    border-color: #007AFF;
    color: #007AFF;
    transform: translateY(-2px);
}

.industry-recommendation {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background: white;
    border-radius: 16px;
    display: none;
    animation: fadeIn 0.5s;
}

.industry-recommendation.active {
    display: block;
}

/* ========================================
   MICRO SURVEY
   ======================================== */
.micro-survey-section {
    padding: 100px 40px;
    background: white;
}

.micro-survey {
    max-width: 600px;
    margin: 0 auto;
    background: #f5f5f7;
    padding: 48px;
    border-radius: 24px;
    text-align: center;
}

.micro-survey h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.survey-description {
    color: #6e6e73;
    margin-bottom: 32px;
}

.survey-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 16px;
    transition: border 0.3s;
}

.survey-input:focus {
    outline: none;
    border-color: #007AFF;
}

.survey-button {
    width: 100%;
    background: #007AFF;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.survey-button:hover {
    background: #0051D5;
}

.recommendation-result {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    color: #007AFF;
    display: none;
    animation: fadeIn 0.5s;
}

.recommendation-result.active {
    display: block;
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
    padding: 100px 40px;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f5f5f7;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.faq-item p {
    color: #6e6e73;
    line-height: 1.6;
}

/* ========================================
   ONBOARDING
   ======================================== */
.onboarding-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 100vh;
    margin-top: 80px;
}

.onboarding-content {
    padding: 80px 60px;
    max-width: 700px;
    margin: 0 auto;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e5e7;
    transition: all 0.3s;
}

.step-dot.active {
    background: #007AFF;
    width: 40px;
    border-radius: 6px;
}

.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.step-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.step-description {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 32px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #007AFF;
}

.input-hint {
    display: block;
    font-size: 13px;
    color: #6e6e73;
    margin-top: 8px;
}

.onboarding-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.onboarding-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: #6e6e73;
}

.onboarding-footer a {
    color: #007AFF;
    text-decoration: none;
}

.qr-preview-section {
    background: #f5f5f7;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 32px;
}

.qr-preview {
    margin-bottom: 24px;
}

.qr-placeholder-large {
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"><rect width="240" height="240" fill="%23fff"/><rect width="20" height="20" fill="%23000"/><rect x="220" width="20" height="20" fill="%23000"/><rect y="220" width="20" height="20" fill="%23000"/><rect x="40" y="40" width="40" height="40" fill="%23000"/><rect x="160" y="40" width="40" height="40" fill="%23000"/><rect x="40" y="160" width="40" height="40" fill="%23000"/><rect x="100" y="100" width="40" height="40" fill="%23007AFF"/></svg>') center/cover;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.qr-info {
    font-size: 14px;
}

.qr-url {
    margin-bottom: 8px;
}

.qr-id code {
    background: rgba(0,0,0,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.download-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.download-btn {
    background: white;
    border: 2px solid #007AFF;
    color: #007AFF;
    padding: 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: #007AFF;
    color: white;
}

.download-icon {
    font-size: 24px;
}

.download-hint {
    font-size: 12px;
    opacity: 0.7;
}

.pivot-demo {
    background: #f5f5f7;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.pivot-visual {
    max-width: 500px;
    margin: 0 auto;
}

.pivot-arrow {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.pivot-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6e6e73;
    margin-bottom: 8px;
}

.pivot-url {
    font-family: monospace;
    color: #1d1d1f;
    font-size: 14px;
}

.pivot-arrow-icon {
    text-align: center;
    font-size: 32px;
    color: #007AFF;
    margin: 8px 0;
}

.tooltip-box {
    background: rgba(0,122,255,0.1);
    border-left: 4px solid #007AFF;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.tooltip-box p {
    margin: 0;
    line-height: 1.6;
}

.success-container {
    text-align: center;
}

.success-icon {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #34C759;
    background: rgba(52, 199, 89, 0.1);
    padding: 20px 40px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 24px;
    animation: bounce 0.5s;
}

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

.success-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.success-message {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 40px;
}

.next-steps {
    background: #f5f5f7;
    padding: 40px;
    border-radius: 16px;
    text-align: left;
    margin-bottom: 32px;
}

.next-steps h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid #e5e5e7;
    line-height: 1.6;
    position: relative;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34C759;
    font-weight: 700;
    font-size: 16px;
}

.checklist li:last-child {
    border-bottom: none;
}

.dashboard-preview {
    margin: 32px 0;
}

.dashboard-card {
    background: #f5f5f7;
    padding: 32px;
    border-radius: 16px;
}

.dashboard-card h4 {
    font-size: 18px;
    margin-bottom: 24px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #6e6e73;
}

.upgrade-prompt {
    margin-top: 32px;
    padding: 20px;
    background: rgba(0,122,255,0.1);
    border-radius: 12px;
}

.upgrade-prompt a {
    color: #007AFF;
    font-weight: 600;
    text-decoration: none;
}

.onboarding-side-panel {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    padding: 80px 40px;
}

.benefit-list {
    margin-bottom: 60px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.benefit-icon-small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit-content p {
    font-size: 14px;
    opacity: 0.9;
}

.testimonial-box {
    background: rgba(255,255,255,0.1);
    padding: 32px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   AUTHENTICATION
   ======================================== */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    margin-top: 80px;
}

.auth-card {
    padding: 80px 60px;
    max-width: 500px;
    margin: auto;
}

.auth-card h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 40px;
}

.auth-form {
    margin-bottom: 32px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #007AFF;
    text-decoration: none;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 32px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e5e5e7;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: #6e6e73;
    font-size: 14px;
}

.social-button {
    width: 100%;
    background: white;
    border: 2px solid #e5e5e7;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-button:hover {
    border-color: #007AFF;
}

.social-icon {
    width: 20px;
    height: 20px;
    background: #e5e5e7;
    border-radius: 50%;
    display: inline-block;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #6e6e73;
}

.auth-footer a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 600;
}

.auth-side {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-side h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.auth-benefits {
    margin-bottom: 60px;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-benefit p {
    font-size: 18px;
}

.auth-testimonial {
    background: rgba(255,255,255,0.1);
    padding: 32px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.auth-testimonial p {
    line-height: 1.6;
}

.auth-testimonial p:first-child {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 16px;
}

/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
    padding: 120px 40px;
    text-align: center;
    background: white;
}

.final-cta h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 20px;
    color: #6e6e73;
    margin-bottom: 40px;
}

.cta-subtext {
    font-size: 14px;
    color: #6e6e73;
    margin-top: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: #f5f5f7;
    padding: 80px 40px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #1d1d1f;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-beta {
    color: #34C759;
    font-weight: 600;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e5e5e7;
    color: #6e6e73;
    font-size: 14px;
}

/* ========================================
   MOBILE-NATIVE ENHANCEMENTS
   ======================================== */

/* Pull-to-refresh indicator (visual only) */
body::before {
    content: '';
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007AFF;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
}

/* Improved tap feedback */
button,
a,
.clickable {
    -webkit-tap-highlight-color: rgba(0, 122, 255, 0.2);
    touch-action: manipulation;
}

/* Prevent text selection on UI elements */
button,
.cta-button,
.secondary-button,
.nav-cta,
.plan-cta {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    nav .nav-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Form inputs optimized for mobile */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
}

/* Better focus states for keyboard navigation */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Sticky positioning for mobile */
.sticky-mobile {
    position: -webkit-sticky;
    position: sticky;
    top: 60px;
    z-index: 100;
}

/* Swipe indicators */
.swipeable {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.swipe-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.swipe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e5e7;
    transition: all 0.3s;
}

.swipe-dot.active {
    background: #007AFF;
    width: 24px;
    border-radius: 4px;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007AFF;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Enhanced scrollbar for mobile web */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* Mobile-specific utility classes */
.hide-mobile {
    display: none;
}

.show-mobile {
    display: block;
}

@media (min-width: 769px) {
    .hide-mobile {
        display: block;
    }
    
    .show-mobile {
        display: none;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    nav .nav-container {
        padding: 12px 20px;
    }
    
    .beta-badge {
        top: 55px;
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Very small devices (< 375px) */
@media (max-width: 374px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .nav-container {
        padding: 14px 16px;
    }
    
    .logo {
        font-size: 18px;
    }
}

/* Large phones (414px+) */
@media (min-width: 414px) and (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 36px;
    }
}