/* landing.css */

:root {
    --landing-primary-color: #03346E; /* Updated to match dashboard.php */
    --landing-secondary-color: #F3F4F6; /* Light grey for secondary button bg */
    --landing-text-primary: #111827; /* Dark grey text */
    --landing-text-secondary: #4B5563; /* Medium grey text */
    --landing-text-light: #6B7280; /* Lighter grey text for sub-headlines, trusted by */
    --landing-bg-light: #FFFFFF; /* White background */
    --landing-bg-section: #F9FAFB; /* For alternating section backgrounds */
    --landing-border-color: #E5E7EB; /* Light border color */
    --font-family-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family-sans);
    color: var(--landing-text-primary);
    background-color: var(--landing-bg-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove underlines from all links */
a,
a:hover,
a:visited,
a:active {
    text-decoration: none !important;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px; /* Increased max-width for a wider layout like screenshot */
    margin: 0 auto;
    padding: 0 24px; /* Adjusted padding */
}

/* Header */
.new-header-style {
    background-color: var(--landing-bg-light);
    padding: 16px 0; /* Adjusted padding */
    border-bottom: 1px solid var(--landing-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--landing-primary-color); /* Using updated primary color for logo */
    text-decoration: none !important; /* Ensure no underline on logo link */
    display: flex; /* Added for image alignment */
    align-items: center; /* Added for image alignment */
}

.logo-img {
    height: 40px; /* Adjust size as needed, slightly larger than sidebar's 24px for impact */
    width: auto; /* Maintain aspect ratio */
    margin-right: 8px; /* Space between image and text */
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px; /* Adjusted gap */
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    /* text-decoration: none; Already handled by global style */
    color: var(--landing-text-secondary);
    font-weight: 500;
    font-size: 15px; /* Adjusted font size */
    padding: 8px 4px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.main-nav ul li a:hover {
    color: var(--landing-primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* Adjusted gap */
}

.btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px; /* Standardized font size */
    cursor: pointer;
    /* text-decoration: none; Already handled by global style */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.2; /* Added for better vertical alignment */
}

.btn-primary {
    background-color: var(--landing-primary-color);
    color: var(--landing-bg-light);
    /* box-shadow: 0 1px 2px rgba(0,0,0,0.05); Removed for flatter look */
}

.btn-primary:hover {
    background-color: #022a5a; /* Darken the new primary color slightly */
}

.btn-secondary {
    background-color: var(--landing-bg-light);
    color: var(--landing-text-primary);
    border: 1px solid var(--landing-border-color);
    /* box-shadow: 0 1px 2px rgba(0,0,0,0.05); */
}

.btn-secondary:hover {
    background-color: var(--landing-secondary-color);
    border-color: #D1D5DB; /* Slightly darker border */
}

.btn-link {
    color: var(--landing-text-secondary);
    font-weight: 500;
    font-size: 15px;
    /* text-decoration: none; Already handled by global style */
}
.btn-link:hover {
    color: var(--landing-primary-color);
}

/* Hero Section */
.new-hero-style {
    background-color: var(--landing-bg-light);
    padding: 80px 0 60px; /* Adjusted bottom padding */
    text-align: center;
}

.hero-container {
    max-width: 900px; /* Constrain hero content width */
    margin-top: 30px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--landing-secondary-color);
    color: var(--landing-primary-color); /* Using updated primary color */
    padding: 6px 12px;
    border-radius: 9999px; /* Pill shape */
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px; /* Increased margin */
    border: 1px solid var(--landing-border-color);
}

.new-hero-style h1 {
    font-size: 48px; /* Adjusted for impact, matches screenshot */
    font-weight: 800; /* Bolder */
    color: var(--landing-text-primary);
    margin-top: 0;
    margin-bottom: 24px; /* Increased margin */
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.new-hero-style .subheadline {
    font-size: 18px;
    color: var(--landing-text-light);
    max-width: 680px; /* Adjusted width */
    margin: 0 auto 32px auto; /* Adjusted margin */
    line-height: 1.6;
}

.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px; /* Gap between buttons */
    margin-bottom: 48px; /* Space before trusted by */
}

.btn-lg {
    padding: 14px 28px; /* Adjusted padding */
    font-size: 16px;
}

.btn .arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* Hero Video Section */
.hero-video-section {
    margin-top: 56px; /* Space above the video */
    margin-bottom: 20px; /* Space below the video */
}

.video-aspect-ratio-container {
    position: relative;
    width: 100%;
    background-color: #000; /* Optional: fallback bg for the container */
    border-radius: 12px; /* Match card radius */
    overflow: hidden; /* Ensures iframe corners are rounded */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.08); /* Subtle shadow */
}

.video-aspect-ratio-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove default iframe border */
}

/* Features Section - existing styles should largely work, minor tweaks might be needed */
.features {
    padding: 80px 0; /* Consistent padding */
    background-color: var(--landing-bg-section);
}

.features h2 {
    text-align: center;
    /* section-title class will now handle general styling */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger minmax */
    gap: 24px;
}

.feature-item {
    background-color: var(--landing-bg-light);
    border: 1px solid var(--landing-border-color);
    border-radius: 12px; /* Softer radius */
    padding: 28px; /* Increased padding */
    text-align: left; /* Align text left for a more standard card feel */
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.feature-item img {
    height: 40px; /* Adjusted size */
    margin-bottom: 20px; /* Increased margin */
    /* Consider wrapping icon in a styled div if more control is needed */
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--landing-text-primary);
    margin-top: 0;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 15px;
    color: var(--landing-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Social Proof Section - existing styles should largely work */
.social-proof {
    padding: 80px 0;
    background-color: var(--landing-bg-light);
    text-align: center;
}

.social-proof h2 {
    text-align: center;
    /* section-title class will now handle general styling */
}

/* Example for Testimonial Cards (HTML structure in index.php would need to adapt) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background-color: var(--landing-bg-light);
    border: 1px solid var(--landing-border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    /* Add more styles for author, quote, etc. */
}

.testimonial-card .quote {
    font-size: 16px;
    color: var(--landing-text-primary);
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-card .author {
    font-size: 14px;
    font-weight: 600;
    color: var(--landing-text-secondary);
}

/* Footer */
.new-footer-style {
    background-color: var(--landing-bg-light);
    color: var(--landing-text-secondary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--landing-border-color);
    margin-top: auto; /* Pushes footer to bottom if content is short */
}

.new-footer-style p {
    margin: 0;
    font-size: 14px;
}

/* Cleanup old styles that might conflict - remove or adjust as needed */
body.landing-page {
    /* This class might be redundant now if all landing page styles are general */
}

.landing-header:not(.new-header-style) { /* Targeting old header if it exists */
    display: none; /* Example: hide old header if new one is applied */
}

.hero:not(.new-hero-style) {
    display: none;
}

.landing-footer:not(.new-footer-style) {
    display: none;
}

/* Specific styles for the placeholder Pricing and FAQ sections */
#pricing,
#faq {
    padding: 80px 0; /* Using section-padding */
}

#pricing {
    background-color: var(--landing-bg-section);
}

#pricing h2, #faq h2 {
    /* section-title class will now handle general styling */
    font-size: 28px; /* Specific override if needed, or remove if section-title is enough */
    margin-bottom: 15px;
}
#pricing p, #faq p {
    font-size: 16px;
    color: var(--landing-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* General Section Title Styling */
.section-title {
    font-size: 28px; /* Slightly larger for emphasis */
    font-weight: 700;
    color: var(--landing-text-primary);
    text-align: center;
    margin-bottom: 40px; /* Increased bottom margin */
    position: relative; /* For the underline pseudo-element */
    padding-bottom: 15px; /* Space for the underline */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px; /* Width of the underline */
    height: 4px; /* Thickness of the underline */
    background-color: var(--landing-primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

.section-title:hover::after {
    width: 120px; /* Expanded width on hover */
}

/* Pricing Section Styles (Adapted from pricing.php) */
.pricing-header { /* For the text above the grid */
    text-align: center;
    margin-bottom: 48px;
}

/* .pricing-header h1 is handled by .section-title */

.pricing-header p {
    font-size: 18px;
    color: var(--landing-text-light); /* Use landing page variable */
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: flex; /* Changed from grid to flex */
    justify-content: center; /* Center the cards */
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
    gap: 32px;
    margin-top: 24px; /* Keep existing margin */
    /* Removed grid-template-columns */
}

.pricing-card {
    background: var(--landing-bg-light); /* Use landing page variable */
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--card-shadow); /* Use existing card shadow */
    display: flex; /* This is for the card's internal layout, keep as is */
    flex-direction: column; /* For internal layout */
    border: 2px solid transparent;
    transition: all 0.2s ease;

    /* New properties for sizing and responsiveness */
    width: 360px; /* Set a specific width for the cards */
    max-width: 100%; /* Ensures card shrinks on very small screens, not overflowing parent */
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover); /* Use existing hover shadow */
}

.pricing-card.popular {
    border-color: var(--landing-primary-color); /* Use landing page variable */
    position: relative;
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--landing-primary-color); /* Use landing page variable */
    color: var(--landing-bg-light); /* Use landing page variable for text */
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--landing-text-primary); /* Use landing page variable */
    margin-bottom: 8px;
}

.plan-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--landing-text-primary); /* Use landing page variable */
    margin-bottom: 24px;
}

.plan-price .currency {
    font-size: 24px;
    font-weight: 500;
    vertical-align: super;
    color: var(--landing-text-secondary); /* For contrast */
}

.plan-price .period {
    font-size: 16px;
    color: var(--landing-text-light); /* Use landing page variable */
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1; /* Pushes button to the bottom */
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--landing-text-secondary); /* Use landing page variable */
}

.plan-features li svg { /* Checkmark icon styling */
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--landing-primary-color); /* Use landing page variable for icon color */
}

/* .select-plan-btn general styles are covered by .btn */
/* Specific button styles for pricing cards */
.pricing-card .btn { /* Ensure full width for buttons in cards */
    width: 100%;
}
/* .btn-primary and .btn-secondary are already defined globally and should work.
   If specific overrides for pricing buttons are needed, they can be added here.
   For instance, .pricing-card .btn-primary or .pricing-card .btn-secondary
*/

/* FAQ Section Styles */
#faq .container {
    max-width: 1000px; /* Widen container for two columns */
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Responsive columns */
    gap: 24px; /* Gap between columns and items */
    padding-top: 30px;
}

.faq-column { 
    /* This class will be used if we want to manually assign items to columns later,
       for now, faq-grid with auto-fit should handle distribution */
}

.faq-item {
    background-color: var(--landing-bg-light);
    border: 1px solid var(--landing-border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: left;
    box-shadow: var(--card-shadow);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--landing-text-primary);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 16px;
    color: var(--landing-text-secondary);
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--landing-text-primary);
    font-weight: 600;
}

/* User Frustration Section Styles */
.user-frustration-section {
    padding: 60px 0; /* Slightly less padding than full section-padding */
    background-color: var(--landing-bg-light); /* Using a light background from the theme */
    text-align: center;
}

.user-frustration-section .section-title {
    margin-bottom: 16px; /* Reduced margin for tighter coupling with subtitle */
}

/* Remove underline from this specific section-title instance if not desired */
.user-frustration-section .section-title::after {
    display: none; 
}

.user-frustration-section .section-subtitle {
    font-size: 18px;
    color: var(--landing-text-secondary); /* Adjusted for readability */
    max-width: 750px;
    margin: 0 auto 48px auto;
    line-height: 1.7;
}

.frustration-flow {
    display: flex;
    justify-content: center; /* Center items if they don't fill space */
    align-items: flex-start;
    gap: 16px; /* Reduced gap */
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping */
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 200px; /* Flex grow, shrink, and basis */
    padding: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInItem 0.5s ease-out forwards;
}

/* Staggered animations for flow steps */
.frustration-flow .flow-step:nth-child(1) { animation-delay: 0.2s; }
.frustration-flow .flow-step:nth-child(3) { animation-delay: 0.4s; } /* Arrow is child 2 */
.frustration-flow .flow-step:nth-child(5) { animation-delay: 0.6s; } /* Arrow is child 4 */

.flow-step .emoji {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
    line-height: 1; /* Ensure emoji doesn't add extra space */
    transition: transform 0.2s ease-in-out;
}

.flow-step:hover .emoji {
    transform: scale(1.15);
}

.flow-step p {
    font-size: 16px;
    color: var(--landing-text-primary); /* Darker text for better contrast on light bg */
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.flow-arrow {
    font-size: 32px; /* Larger arrow */
    color: var(--landing-text-light);
    align-self: center;
    margin-top: 30px; /* Align with emoji baseline area */
    flex-shrink: 0; /* Prevent arrows from shrinking */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInItem 0.5s ease-out forwards;
}

/* Staggered animations for arrows */
.frustration-flow .flow-arrow:nth-of-type(1) { animation-delay: 0.3s; }
.frustration-flow .flow-arrow:nth-of-type(2) { animation-delay: 0.5s; }

@keyframes fadeInItem {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .frustration-flow {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .flow-arrow {
        transform: rotate(90deg);
        margin-top: 0;
        margin-bottom: 0;
    }
    .flow-step {
        flex-basis: auto; /* Allow stacking */
        width: 100%;
        max-width: 300px; /* Max width for stacked items */
        padding: 10px;
    }
    .flow-step .emoji {
        font-size: 40px;
        margin-bottom: 8px;
    }
}

/* BugDrop Widget CTA Prompt */
.bugdrop-cta-prompt {
    position: fixed;
    bottom: 85px;   /* ADJUSTED: Further up to be clearly above widget */
    left: 30px;    /* ADJUSTED: Position text relative to widget */
    background-color: transparent; 
    color: var(--landing-text-primary); 
    padding: 5px; 
    border-radius: 0; 
    font-size: 20px; 
    font-weight: 700; 
    text-shadow: 0px 1px 3px rgba(0,0,0,0.1);
    z-index: 1001; 
    opacity: 0; 
    transform: translateY(15px); 
    animation: slideInPlayfulCTA 0.5s 1.8s ease-out forwards; 
    white-space: nowrap; 
}

.bugdrop-cta-prompt::before { 
    display: none;
}

.bugdrop-cta-prompt::after { /* The new playful arrow */
    content: '↙'; /* DOWNWARDS ARROW WITH TIP RIGHTWARDS */
    position: absolute;
    top: 70%;  /* Position arrow to start from bottom of text */
    left: 12%; /* ADJUSTED: Move arrow start near the beginning of the text (near 'T') */
    font-size: 38px; 
    font-weight: normal; 
    color: var(--landing-primary-color); 
    line-height: 1; 
}

@keyframes slideInPlayfulCTA {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure original slideInCTA keyframes are removed or renamed if not used elsewhere */
/* @keyframes slideInCTA { ... } */ 