/* Marketing Page Styles */
:root {
    --marketing-primary: #1b8751;
    --marketing-primary-hover: #066636;
    --marketing-primary-light: #FFF3EB;
    --marketing-icon-color: #d6cfc7;
}

body {
    background-color: #ffffff;
    color: #000;
}

/* Font Awesome Icon Colors */
.fas,
.far,
.fab,
.fa {
    color: var(--marketing-icon-color);
}

.bg-light {
    background-color: #f5f5f5 !important;
}

.bg-dark {
    background-color: #ebf2ff !important;
}

/* Marketing Accent Colors */
.text-primary {
    color: var(--marketing-primary) !important;
}

.bg-primary {
    background-color: var(--marketing-primary) !important;
}

.btn-primary {
    background-color: var(--marketing-primary) !important;
    border-color: var(--marketing-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--marketing-primary-hover) !important;
    border-color: var(--marketing-primary-hover) !important;
}

.btn-outline-primary {
    color: var(--marketing-primary) !important;
    border-color: var(--marketing-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--marketing-primary) !important;
    border-color: var(--marketing-primary) !important;
    color: white !important;
}

.border-primary {
    border-color: var(--marketing-primary) !important;
}

/* Gradient Primary Background for Hero Sections */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bg-gradient-primary h1,
.bg-gradient-primary h2,
.bg-gradient-primary h3,
.bg-gradient-primary h4,
.bg-gradient-primary h5,
.bg-gradient-primary h6,
.bg-gradient-primary p {
    color: white;
}

.marketing-home-banner {
    background-color: #fff !important;
    padding-top: 100px !important;
    padding-bottom: 200px !important;
    -webkit-clip-path: polygon(0 0, 100% 0, 101% calc(100% - 7vw), 0 100%);
    margin-bottom: -7vw;
}

/* Hero Section Typography */
.marketing-hero-title {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.marketing-hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Section Headings */
.marketing-section-title {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
}

.marketing-section-title-lg {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Body Text */
.marketing-body-lg {
    font-size: 1.25rem;
    line-height: 1.6;
}

.marketing-body-md {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Labels and Small Text */
.marketing-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Button Padding */
.marketing-btn-hero {
    padding: 0.75rem 2.5rem;
}

.marketing-btn-lg {
    padding: 0.5rem 1.5rem;
}

/* Hero Banner Styles */
.hero-banner {
    background-color: #ffffff;
    color: #000000;
}

.hero-banner h1,
.hero-banner h2,
.hero-banner h3,
.hero-banner h4,
.hero-banner h5,
.hero-banner h6,
.hero-banner p,
.hero-banner .lead {
    color: white !important;
}

.hero-banner .btn-primary {
    background-color: white !important;
    color: var(--marketing-primary) !important;
    border-color: white !important;
}

.hero-banner .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.hero-banner .btn-outline-secondary {
    color: white !important;
    border-color: white !important;
}

.hero-banner .btn-outline-secondary:hover {
    background-color: white !important;
    color: var(--marketing-primary) !important;
}

/* Marketing Hero Section */
.marketing-hero {
    padding: 20px 0;
    margin-top: 76px;
    /* Account for fixed navbar */
}

/* Global navigation spacing for all marketing pages */
main.flex-grow-1 {
    padding-top: 75px;
    /* Account for fixed navigation bar */
}

/* Marketing Section Spacing */
.marketing-section {
    padding: 80px 0;
}

/* Marketing Cards */
.marketing-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.marketing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Feature Card Styles */
.feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.feature-placeholder {
    width: 100%;
    height: 100%;
}

.feature-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card-content h5 {
    font-size: 1.1rem;
    flex-grow: 1;
}

.feature-card-content p {
    line-height: 1.6;
}

/* Feature List Items with Icons */
.list-unstyled li {
    display: flex;
    align-items: flex-start;
}

.list-unstyled li i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--marketing-primary) 0%, var(--marketing-primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Display Heading Styles */
.display-1 {
    letter-spacing: .01em;
    margin-top: 0;
    font-family: Montserrat, sans-serif;
    font-size: 4.5rem;
    line-height: 1.04;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-color: white;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 1px #75757533 !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {

    /* Hero Typography */
    .marketing-hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .marketing-hero-subtitle {
        font-size: 1.125rem;
    }

    /* Section Headings */
    .marketing-section-title,
    .marketing-section-title-lg {
        font-size: 2rem;
        line-height: 1.3;
    }

    /* Body Text */
    .marketing-body-lg {
        font-size: 1.125rem;
    }

    .marketing-body-md {
        font-size: 1rem;
    }

    /* Button Padding */
    .marketing-btn-hero,
    .marketing-btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 1rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   PRICING PAGE STYLES
   ============================================ */

/* Billing Toggle */
.billing-toggle {
    border: 1px solid #dee2e6;
    width: auto;
    max-width: fit-content;
}

.billing-toggle-btn {
    background: transparent;
    border: none;
    color: #6c757d;
    transition: all 0.2s ease;
}

.billing-toggle-btn.active {
    background: var(--marketing-primary);
    color: white;
}

.billing-toggle-btn:hover:not(.active) {
    background: #f8f9fa;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.pricing-card.border-primary {
    border-width: 2px !important;
}

/* Enterprise Card - Stand out styling */
.pricing-card.enterprise-card {
    background: linear-gradient(180deg, #fffbf5 0%, #ffffff 100%);
}

.pricing-card.enterprise-card .bg-warning {
    background-color: #f0ad4e !important;
}

/* Module Checklist */
.module-checklist .fa-check-circle {
    color: #28a745 !important;
}

.module-checklist .fa-times-circle {
    color: #dee2e6 !important;
}

/* Features Comparison Table */
.features-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

.features-table {
    min-width: 700px;
    margin-bottom: 0;
}

.features-table th,
.features-table td {
    vertical-align: middle;
    padding: 0.75rem 1rem;
}

.features-table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.features-table .table-secondary {
    background-color: #f8f9fa;
}

.features-table .table-secondary td {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    padding: 1rem;
}

.feature-name-col {
    background: white;
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 1px solid #dee2e6;
}

.features-table .fa-check-circle {
    color: #28a745 !important;
}

.features-table .fa-minus {
    color: #dee2e6 !important;
}

.features-table .fa-infinity {
    color: var(--marketing-primary) !important;
}

/* FAQ Accordion */
#pricingFAQ .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background-color: #fff;
}

#pricingFAQ .accordion-button {
    font-weight: 500;
    padding: 1rem 1.25rem;
}

#pricingFAQ .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
    box-shadow: none;
}

#pricingFAQ .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

#pricingFAQ .accordion-body {
    padding: 1rem 1.25rem;
    color: #6c757d;
}

/* Enterprise Section */
#enterprise-cta {
    background-color: #fff;
}

.hero {
    background-color: #1b8751;
    color: white;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero p,
.hero .lead {
    color: white;
}

/* Pricing Page Mobile Responsive */
@media (max-width: 768px) {

    /* Hide full module list by default, show summary on mobile */
    .module-list-full {
        display: none !important;
    }

    /* Allow expansion when explicitly requested via class */
    .module-list-full.module-expanded {
        display: block !important;
    }

    .module-list-summary {
        display: block !important;
    }

    /* Smaller toggle on mobile */
    .billing-toggle-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.875rem;
    }

    .billing-toggle-btn .badge {
        display: none;
    }

    /* Smaller price display on mobile */
    .pricing-card .display-5 {
        font-size: 2rem;
    }

    /* Features table sticky column */
    .feature-name-col {
        min-width: 180px !important;
        font-size: 0.875rem;
    }

    .features-table th:not(.feature-name-col),
    .features-table td:not(.feature-name-col) {
        min-width: 100px !important;
        font-size: 0.875rem;
    }

    /* FAQ accordion spacing */
    #pricingFAQ .accordion-button {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 576px) {

    /* Even smaller on very small screens */
    .pricing-card .display-5 {
        font-size: 1.75rem;
    }

    .pricing-card .card-body {
        padding: 1.25rem !important;
    }

    .feature-name-col {
        min-width: 150px !important;
    }
}