/* marketing/static/marketing/css/landing_page.css */

/* --- Color Palette (Option A) --- */
:root {
    /* Brand Colors */
    --brand-accent-orange: #FF4D00;
    --brand-accent-orange-darker: #E64400;
    --brand-primary-blue: #007AFF;
    --brand-primary-blue-darker: #0056b3;

    /* Text Colors */
    --text-darkest: #121212;
    --text-dark: #2d3748;
    --text-body: #4a5568;
    --text-muted: #718096;

    /* Background Colors */
    --bg-light: #FFFFFF;
    --bg-alt: #F8F9FA;
    --bg-cta-final: #F0F2F5;

    /* Other UI Colors */
    --border-color: #E2E8F0;
    --link-color-default: var(--brand-primary-blue);
}


/* --- Base & Typography --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.65;
    color: var(--text-body);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-darkest);
    margin-top: 0;
    margin-bottom: 0.75em;
}

h1 { font-size: 3rem; letter-spacing: -0.025em; }
h2.section-title { font-size: 2.25rem; letter-spacing: -0.02em; margin-bottom: 1em; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.6em; color: var(--text-darkest); }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5em; color: var(--text-dark); }


p {
    margin-bottom: 1.5em;
    font-size: 1rem;
}
p:last-child {
    margin-bottom: 0;
}
p.subtitle {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 2em;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
p.section-subtitle {
    text-align:center;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom: 3em;
    color: var(--text-muted);
}


a {
    color: var(--link-color-default);
    text-decoration: none;
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
a:hover {
    color: var(--brand-primary-blue-darker);
    opacity: 0.85;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}
.alt-bg {
    background-color: var(--bg-alt);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    line-height: 1.5;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    color: #fff;
    background-color: var(--brand-accent-orange);
    border-color: var(--brand-accent-orange);
}
.btn-primary:hover {
    background-color: var(--brand-accent-orange-darker);
    border-color: var(--brand-accent-orange-darker);
    color: #fff !important; /* important to override general a:hover if needed */
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
}

.btn-secondary {
    color: var(--brand-primary-blue);
    background-color: transparent;
    border-color: var(--brand-primary-blue);
}
.btn-secondary:hover {
    color: #fff;
    background-color: var(--brand-primary-blue);
    border-color: var(--brand-primary-blue);
}


.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}


/* --- Header --- */
.landing-header {
    padding: 15px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo a {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-darkest);
    text-decoration: none;
}

.main-nav {
    position: static;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
.main-nav ul li {
    margin-left: 25px;
}
.main-nav ul li:first-child {
    margin-left: 0;
}
.main-nav ul li a { /* Base style for all nav links */
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 5px 0; /* Vertical padding for normal text links */
    display: inline-block; /* To allow padding */
}
.main-nav ul li a:hover,
.main-nav ul li a.active { /* .active class can be used for current page indication if needed */
    color: var(--brand-accent-orange);
}

/* "Sign Up" button style - Orange outline button */
.nav-cta {
    color: var(--brand-accent-orange) !important;
    background-color: transparent;
    border: 2px solid var(--brand-accent-orange); /* MODIFIED: was 0px, now 2px for visibility */
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-left: 10px; /* Spacing from other items */
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.nav-cta:hover {
    background-color: var(--brand-accent-orange);
    color: #fff !important;
    border-color: var(--brand-accent-orange);
}

/* "Go to App", "Login", "Logout" links - Plain text look */
.nav-cta-secondary {
    color: var(--brand-primary-blue) !important; /* Keep the distinct color */
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none !important; /* Ensure no underline from general 'a' styles */
    background-color: transparent !important;
    border: none !important; /* CRITICAL: Remove border */
    padding: 5px 0 !important; /* Match other text links vertical padding */
    margin-left: 15px; /* Give it a bit more space if needed */
    border-radius: 0; /* No border radius for plain text */
    box-shadow: none !important; /* Remove any box shadow */
    line-height: normal; /* Reset line-height if inherited from .btn */
    display: inline; /* Behave like text */
}
.nav-cta-secondary:hover {
    color: var(--brand-primary-blue-darker) !important;
    background-color: transparent !important; /* Ensure no bg change on hover */
    opacity: 0.85;
    text-decoration: underline !important; /* Optional: underline on hover like typical links */
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1021;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-darkest);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--bg-light);
    color: var(--text-darkest);
    padding: 100px 0 80px 0;
    text-align: center;
}
.hero-content {
    max-width: 850px;
}
.hero-section .hero-text h1 {
    color: var(--text-darkest);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 0.6em;
    font-weight: 700;
}
.hero-section p.subtitle {
    color: var(--text-body);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 2.5em;
}
.hero-cta {
    margin-top: 30px;
}
.hero-cta .btn {
    margin: 10px 8px;
}

.hero-visual {
    margin-top: 60px;
}
.hero-video {
    width:100%;
    max-width: 1150px;
    height:auto;
    display: block;
    margin-left:auto;
    margin-right:auto;
    border-radius: 12px;
    box-shadow: 0 20px 45px -15px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.benefit-item {
    text-align: left;
    padding: 25px;
    background-color: var(--bg-alt);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    display: flex;
    flex-direction: column;
}
.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.benefit-item .benefit-icon {
    margin-bottom: 20px;
    background-color: #E6F2FF;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.benefit-item .benefit-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--brand-primary-blue);
    stroke-width: 2;
}
.benefit-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-darkest);
    font-weight: 600;
}
.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    flex-grow: 1;
}

/* --- Features Section (Feature Showcase) --- */
.feature-showcase {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}
.feature-showcase:last-child { margin-bottom: 0; }

.feature-showcase.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    text-align: left;
    min-width: 0;
}
.feature-content h3 { font-size: 1.8rem; color: var(--text-darkest); margin-bottom: 0.75em; }
.feature-content p { font-size: 1.05rem; margin-bottom: 1.5em; color: var(--text-body); }
.feature-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}
.feature-content ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-body);
}
.feature-content ul li::before {
    content: '✓';
    color: var(--brand-accent-orange);
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: bold;
    font-size: 1.2em;
}

.feature-visual {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.feature-image {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- How It Works Section --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}
.step-item {
    padding: 30px 25px;
    background-color: var(--bg-alt);
    border-radius: 10px;
}
.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary-blue);
    background-color: #E6F2FF;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-item h3 { font-size: 1.2rem; color: var(--text-darkest); }
.step-item p { font-size: 0.95rem; color: var(--text-muted); margin-bottom:0; }

/* --- Social Proof Section --- */
.social-proof-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}
h2.section-title-subtle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}
.social-proof-section .logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px 60px;
}
.social-proof-section .logos-container span {
    font-size: 1.2rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* --- Final CTA Section --- */
.cta-final-section {
    text-align: center;
    background-color: var(--bg-cta-final);
    color: var(--text-darkest);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cta-final-section h2 { font-size: 2rem; color: var(--text-darkest); margin-bottom: 0.5em;}
.cta-final-section p { font-size: 1.15rem; margin-bottom: 30px; color: var(--text-body); max-width: 600px; margin-left:auto; margin-right:auto;}
.cta-final-section .btn-primary {
    background-color: var(--brand-accent-orange);
    color: #fff;
    border-color: var(--brand-accent-orange);
    font-weight: 600;
}
.cta-final-section .btn-primary:hover {
    background-color: var(--brand-accent-orange-darker);
    color: #fff !important;
    border-color: var(--brand-accent-orange-darker);
}

/* --- Footer --- */
.landing-footer {
    background-color: var(--text-darkest);
    color: #a0aec0;
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}
.footer-column h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #a0aec0;
    text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: none; opacity: 0.8;}
.copyright {
    text-align: center;
    border-top: 1px solid #4a5568;
    padding-top: 30px;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #718096;
}
.copyright a { color: #a0aec0; }
.copyright a:hover { color: #fff; }


/* --- Media Queries for Responsiveness --- */
@media (max-width: 991.98px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        border-bottom: 1px solid var(--border-color);
        padding: 10px 0;
        z-index: 1010;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }
    .main-nav ul.active {
        display: flex;
    }
    .main-nav ul li {
        margin-left: 0;
        width: 100%;
        text-align: left;
    }
    .main-nav ul li a {
        padding: 12px 20px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        /* border: none; Base links shouldn't have a border by default here */
        /* background-color: transparent; */
    }

    /* Ensure CTAs in mobile nav look like list items, not buttons */
    .main-nav ul li a.nav-cta,
    .main-nav ul li a.nav-cta-secondary {
        text-align: left;
        margin: 0;
        width: 100%; /* Take full width of li */
        max-width: 100%;
        border-radius: 0;
        font-weight: 500; /* Match other nav links */
        border: none !important; /* Explicitly remove border */
        background-color: transparent !important; /* Ensure no background */
        padding: 12px 20px; /* Consistent padding with other mobile nav items */
        line-height: normal; /* Reset from any button styling */
    }
    .main-nav ul li a.nav-cta { /* "Sign Up" specific color in mobile */
        color: var(--brand-accent-orange) !important;
    }
    .main-nav ul li a.nav-cta:hover {
        background-color: var(--bg-alt) !important; /* Subtle hover for list items */
        color: var(--brand-accent-orange-darker) !important;
    }
    .main-nav ul li a.nav-cta-secondary { /* "Go to App / Login" specific color in mobile */
        color: var(--brand-primary-blue) !important;
    }
    .main-nav ul li a.nav-cta-secondary:hover {
        background-color: var(--bg-alt) !important; /* Subtle hover */
        color: var(--brand-primary-blue-darker) !important;
    }

    .menu-toggle { display: block; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-section .hero-text h1 { font-size: 2.2rem; }
    .hero-section p.subtitle { font-size: 1.05rem; }
    .hero-video { max-width: 90%; }

    .feature-showcase,
    .feature-showcase.reverse { flex-direction: column; gap: 30px; }
    .feature-showcase .feature-content,
    .feature-showcase .feature-visual { flex-basis: auto; width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
    .feature-showcase .feature-content { text-align: left; order: 1; }
    .feature-showcase .feature-content ul { text-align: left; margin-left: 0; padding-left: 0; }
    .feature-showcase .feature-visual { order: 0; }
    .feature-showcase.reverse .feature-visual { order: 0; }
    .feature-showcase.reverse .feature-content { order: 1; }
}

@media (max-width: 767.98px) {
    .hero-section .hero-text h1 { font-size: 1.8rem; }
    .hero-section p.subtitle { font-size: 0.95rem; }
    .hero-cta { display: flex; flex-direction: column; align-items: center; gap: 15px; }
    .hero-cta .btn { width: 100%; max-width: 280px; margin: 0; }
    h2.section-title { font-size: 1.6rem; }
    h3 { font-size: 1.1rem; }
    .benefits-grid, .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-column { align-items: center; }
    .footer-links { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 575.98px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .hero-section .hero-text h1 { font-size: 1.6rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.8rem 1.8rem; font-size: 1rem; }
}