/* --- FILE: /public/css/marketing.css --- */
/*
=================================
 MARKETING SITE STYLES
=================================
*/

/* --- VARIABLES & BASE STYLES --- */
:root {
    --primary-color: #4a69bd;
    --secondary-color: #1e3799;
    --background-color: #f8f9fa;
    --text-color: #333;
    --heading-color: #1e272e;
    --light-gray: #f4f4f4;
    --border-radius: 8px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
}

/* Apply these base styles to ALL public-facing pages (marketing, docs, etc.) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding-top: var(--header-height); /* Prevent content from hiding under the fixed header */
    display: block; /* A consistent base display property */
    min-height: auto;
    justify-content: unset;
    align-items: unset;
}

h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- HEADER & NAVIGATION --- */
.marketing-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.marketing-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--heading-color);
    white-space: nowrap;
    margin-right: 1rem;
}

.nav-brand:hover {
    text-decoration: none;
}

/* Container for UL and Buttons */
.nav-links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Link List */
.marketing-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem; /* Reduced from 2rem to fit better */
}

.marketing-nav ul a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem; /* Slightly smaller for better fit */
}

.marketing-nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.marketing-nav ul a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced gap between buttons */
    margin-left: 1.5rem; /* Separate buttons from links */
}

.btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
}

/* --- RESPONSIVE DESIGN --- */

/* 1. Tablet View: Reduce spacing further */
@media (max-width: 1100px) {
    .marketing-nav ul { gap: 1rem; }
    .nav-brand { font-size: 1.2rem; }
}

/* 2. Mobile View: Breakpoint at 900px (Before it overlaps) */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block; /* Show Hamburger */
    }

    .nav-links-container {
        display: none; /* Hide links by default */
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* This class is added via JS when menu opens */
    .nav-links-container.active {
        display: flex;
    }

    .marketing-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .marketing-nav ul a {
        display: block;
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f4f4f4;
    }

    .nav-actions {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-actions a {
        width: 100%;
        text-align: center;
    }
}

/* --- MAIN CONTENT & HERO SECTION --- */
.marketing-main {
    width: 100%;
}

.hero-section {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.btn-large {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
}

.content-section, .features-page-content {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* --- FEATURES PAGE STYLES --- */
.feature-category {
    margin-bottom: 4rem;
    text-align: center;
}

.feature-category h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.feature-category h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.feature-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--heading-color);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* --- FOOTER --- */
.marketing-footer {
    background-color: #e9ecef;
    color: #6c757d;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/*
=================================
 MARKETING - COMMUNITY PAGE STYLES
=================================
*/

.community-cta {
    text-align: center;
    background-color: #ffffff;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.community-cta h2 {
    font-size: 2rem;
    margin-top: 0;
}

.community-cta p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/*
=================================
 API DOCUMENTATION (STOPLIGHT ELEMENTS) LAYOUT
=================================
*/
.api-container {
    /* Full viewport height minus the height of the fixed header */
    height: calc(100vh - var(--header-height));
    padding: 0;
}

/*
=================================
 SYSTEM STATUS PAGE STYLES
=================================
*/
.status-hero { 
    padding: 4rem 0; 
    text-align: center; 
    background-color: #ffffff; 
    border-bottom: 1px solid #e0e0e0; 
}

.status-indicator-large {
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem;
    padding: 0.5rem 1.5rem; 
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 1.2rem;
    margin-top: 1rem;
}

.status-operational { background-color: #d4edda; color: #155724; }
.status-degraded { background-color: #fff3cd; color: #856404; }
.status-outage { background-color: #f8d7da; color: #721c24; }

.component-grid { 
    max-width: 800px; 
    margin: 3rem auto; 
    display: grid; 
    gap: 1rem; 
}

.component-card { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.5rem; 
    background: #ffffff; 
    border: 1px solid #dee2e6; 
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.component-name { 
    font-weight: 600; 
    font-size: 1.1rem; 
    color: var(--heading-color); 
}

.component-status { 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    font-weight: 600; 
}

.refresh-note { 
    text-align: center; 
    color: #6c757d; 
    font-size: 0.9rem; 
    margin-top: 2rem; 
}

/* --- PRICING PAGE STYLES --- */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.badge-save {
    background-color: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Suite Card */
.suite-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(74, 105, 189, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) {
    .suite-card { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
    .suite-header { flex: 2; display: flex; align-items: center; gap: 2rem; }
    .suite-actions { flex: 1; text-align: right; }
}
.suite-price-container .amount { font-size: 3rem; font-weight: 800; color: var(--heading-color); }
.suite-price-container .period { font-size: 1.2rem; color: #6c757d; }
.savings-text { color: #28a745; font-weight: bold; font-size: 0.9rem; }

/* Grid Layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}
.pricing-card .card-header { margin-bottom: 1.5rem; min-height: 80px; }
.pricing-card h4 { margin: 0 0 0.5rem 0; font-size: 1.4rem; }
.pricing-card .desc { color: #6c757d; font-size: 0.95rem; line-height: 1.4; }
.pricing-card .card-price { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.pricing-card .amount { font-size: 2.2rem; font-weight: 700; color: #333; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { margin-bottom: 0.5rem; color: #555; font-size: 0.95rem; }

.faq-item { margin-bottom: 2rem; }
.faq-item h4 { margin-bottom: 0.5rem; }