/* Landing Page CSS - Consistent with Label Dashboard */
:root {
    --primary: #588157;
    --primary-light: #6b9a6a;
    --primary-dark: #4a6f49;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #e5e5e5;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-tab {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    color: var(--primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 0.5rem;
}

.user-info-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-info-team {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown.show {
    display: block;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.dropdown a:hover {
    background: var(--surface);
}

.dropdown a:last-child {
    border-bottom: none;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Side Menu */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.side-menu.active {
    right: 0;
}

.side-menu-content {
    height: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.side-menu-user {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.side-menu-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.side-menu-user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.side-menu-user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.side-menu-guest-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.side-menu-guest-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.side-menu-nav {
    flex: 1;
}

.side-menu-item {
    display: block;
    padding: 1rem 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    position: relative;
}

.side-menu-item:hover {
    color: var(--primary);
    padding-left: 1rem;
}

.side-menu-item.active {
    color: var(--primary);
    background: rgba(88, 129, 87, 0.05);
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.side-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
    border: none;
}

/* Side menu auth buttons styling */
.side-menu-auth-buttons {
    margin-top: 1rem;
}

.side-menu-auth-buttons .side-menu-item {
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.side-menu-auth-buttons .side-menu-item.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.side-menu-auth-buttons .side-menu-item.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    padding-left: 1rem;
}

.side-menu-auth-buttons .side-menu-item.btn-outline {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

.side-menu-auth-buttons .side-menu-item.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    padding-left: 1rem;
}

/* Main Layout */
.main-content {
    padding: 0;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: var(--surface);
    padding: 6rem 0 5rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Overview */
.features-overview {
    background: var(--background);
}

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

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.stat-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.stat-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features Detailed */
.features-detailed {
    background: var(--surface);
}

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

.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

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

.feature-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* About Section */
.about-section {
    background: var(--background);
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
    background: var(--surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary);
}

.pricing-card-custom {
    border: 2px solid var(--primary);
}

.pricing-card-custom:hover {
    border: 2px solid var(--primary-dark);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-content {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.pricing-features {
    margin-bottom: 1.5rem;
    flex: 1;
    text-align: left;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
}

.feature-icon {
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.feature-text {
    flex: 1;
    line-height: 1.4;
    color: var(--text-secondary);
}

.pricing-addon {
    background: var(--surface);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.addon-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.custom-pricing-form {
    max-width: 350px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-cta-text {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.pricing-cta {
    margin-top: auto;
}

/* Ensure buttons stay at bottom */
.pricing-content .btn,
.custom-pricing-form .btn {
    margin-top: auto;
}

/* Forms */
.subscription-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--surface);
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-message {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Contact Section */
.contact-section {
    background: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.contact-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .pricing-card {
        max-height: fit-content;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-tabs {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .user-info {
        display: none;
    }
    
    /* Hide desktop auth buttons on mobile */
    .auth-buttons {
        display: none;
    }
    
    /* Hero section mobile optimization */
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Section spacing */
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Grid layouts for mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Cards on mobile */
    .stat-card,
    .feature-card,
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card {
        margin: 0 1rem;
        padding: 2rem;
        min-height: auto;
    }
    
    .pricing-card:hover {
        transform: none;
        border: 2px solid var(--primary);
    }
    
    .pricing-card-custom:hover {
        border: 2px solid var(--primary-dark);
    }
    
    /* Form improvements */
    .subscription-form {
        margin-top: 1.5rem;
    }
    
    .form-group input {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .checkbox-group {
        gap: 1rem;
    }
    
    /* Side menu mobile optimization */
    .side-menu {
        width: 100%;
        right: -100%;
    }
    
    .side-menu-content {
        padding: 1.5rem;
        min-height: 100vh;
    }
    
    .side-menu-user {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .side-menu-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Header adjustments */
    header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    /* Mobile side menu adjustments for small screens */
    .side-menu {
        width: 300px; /* Narrower on small screens */
        right: -300px; /* Match the width */
    }

    .side-menu-content {
        padding: 1rem 0.75rem;
        min-height: 100vh;
    }

    .side-menu-user {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .side-menu-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Hero section for very small screens */
    .hero {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Sections for small screens */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Cards optimization */
    .stat-card,
    .feature-card,
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-title,
    .feature-title {
        font-size: 1.1rem;
    }
    
    .stat-description,
    .feature-description {
        font-size: 0.9rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    /* Form adjustments */
    .form-group input,
    .btn {
        padding: 0.75rem 1rem;
    }
    
    /* Typography adjustments */
    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Contact section */
    .contact-item {
        font-size: 0.9rem;
    }
    
    /* Side menu for small screens */
    .side-menu-content {
        padding: 1rem;
    }
    
    .side-menu-item {
        padding: 0.875rem 0;
        font-size: 0.95rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-tab:hover,
    .side-menu-item:hover {
        /* Reset hover effects on touch devices */
        color: inherit;
        background: inherit;
        transform: none;
    }
    
    .btn:active,
    .nav-tab:active,
    .side-menu-item:active {
        /* Add active state feedback for touch */
        opacity: 0.8;
        transform: scale(0.98);
    }
    
    /* Improve touch targets */
    .hamburger {
        padding: 0.75rem;
        margin: -0.75rem -0.75rem -0.75rem 0;
    }
    
    .user-avatar {
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-tab {
        padding: 0.75rem 0.5rem;
    }
    
    .side-menu-item {
        padding: 1rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: auto;
        min-width: 140px;
    }
    
    section {
        padding: 2.5rem 0;
    }
}
