/* File upload styles */
:root {
    --primary-green: #4caf50;
    --primary-blue: #3a7afe;
    --primary-file: #ff8c00; /* Orange color for file-specific elements */
    --soft-bg: #f7fafc;
    --card-bg: #fff;
    --muted-blue: #e3eefd;
    --muted-orange: #fff3e0; /* Muted orange for file dropzone */
    --shadow: 0 2px 16px rgba(60,72,88,0.08);
    --radius: 18px;
    --font-main: 'DM Sans', Arial, sans-serif;
}

body { 
    background: var(--soft-bg); 
    font-family: var(--font-main); 
    margin: 0; 
    color: #222; 
}

.lw-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 16px 0 16px; 
}

.lw-flex { 
    display: flex; 
    gap: 48px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
}

.lw-upload-card { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    padding: 32px 28px 24px 28px; 
    width: 370px; 
    min-width: 320px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.lw-upload-label { 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--primary-file); 
    margin-bottom: 18px; 
    letter-spacing: 0.02em; 
}

.lw-drop-area { 
    background: var(--muted-orange); 
    border-radius: var(--radius); 
    border: 2px dashed #ffb74d; 
    width: 100%; 
    min-height: 180px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    margin-bottom: 18px; 
    transition: border-color 0.2s; 
}

.lw-drop-area.dragover, 
.lw-drop-area.highlight { 
    border-color: var(--primary-file); 
}

.lw-plus-btn { 
    font-size: 2.8rem; 
    color: var(--primary-file); 
    background: var(--muted-orange); 
    border-radius: 50%; 
    width: 56px; 
    height: 56px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 10px; 
}

.lw-drop-text { 
    font-size: 1.1rem; 
    font-weight: 500; 
    color: #222; 
}

.lw-or { 
    color: #888; 
    font-size: 0.98rem; 
    margin: 8px 0 0 0; 
}

.lw-folder-link { 
    color: var(--primary-file); 
    text-decoration: underline; 
    cursor: pointer; 
}

.lw-limit-note { 
    color: #888; 
    font-size: 0.82rem; 
    margin: 14px 0 0 0; 
}

.lw-increase-link { 
    color: var(--primary-file); 
    text-decoration: underline; 
}

.supported-formats {
    font-size: 0.75rem;
    color: #888;
    margin-top: 6px;
}

.lw-upload-footer { 
    font-size: 0.75rem; 
    color: #888; 
    margin-top: auto; 
    text-align: center; 
}

.lw-upload-footer a { 
    color: var(--primary-file); 
    text-decoration: none; 
}

/* Intro section */
.lw-intro { 
    flex: 1; 
    min-width: 320px; 
}

.lw-banner { 
    background: var(--primary-blue); 
    color: white; 
    font-size: 0.9rem; 
    padding: 8px 18px; 
    border-radius: 30px; 
    display: inline-block; 
    margin-bottom: 16px; 
}

.lw-title { 
    font-size: 2.4rem; 
    font-weight: 500; 
    line-height: 1.2; 
    margin-bottom: 16px; 
}

.lw-subtext { 
    color: #555; 
    font-size: 1.05rem; 
    line-height: 1.5; 
    margin-bottom: 32px; 
    max-width: 540px; 
}

.lw-features { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 24px; 
    margin-bottom: 40px; 
}

.lw-feature { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.lw-feature-icon { 
    width: 36px; 
    height: 36px; 
    background: var(--muted-orange); 
    color: var(--primary-file); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.1rem; 
}

.lw-feature-title { 
    font-weight: 500; 
    font-size: 0.98rem; 
}

/* Apps Section */
.lw-apps-section { 
    padding: 0px; 
    margin-top: 40px; 
    text-align: center; 
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.lw-apps-wide { 
    margin-bottom: 40px; 
}

.lw-apps-title { 
    font-size: 1.3rem; 
    font-weight: 500; 
    margin-bottom: 24px; 
}

.lw-apps-list {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.lw-app-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(60,72,88,0.13);
    padding: 40px 24px 24px 24px;
    min-width: 200px;
    min-height: 180px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
    max-width: 280px;
    text-align: center;
}

.lw-app-card:hover {
    box-shadow: 0 8px 32px rgba(60,72,88,0.16);
    transform: translateY(-2px) scale(1.03);
}

.fc-app-icon {
    display: block;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 10px auto;
}

.lw-app-label {
    font-size: 1.18rem;
    font-weight: 700;
    color: #222;
}

.lw-app-soon {
    font-size: 1.05rem;
    color: #aaa;
    margin-top: 8px;
}

.lw-app-soon { 
    font-size: 0.75rem; 
    color: #888; 
    margin-top: 4px; 
}

/* FAQ Section */
.lw-faq-section { 
    margin: 60px 0; 
}

.lw-faq-title { 
    font-size: 1.5rem; 
    font-weight: 500; 
    text-align: center; 
    margin-bottom: 32px; 
    line-height: 1.4; 
}

.lw-faq-list { 
    max-width: 800px; 
    margin: 0 auto; 
}

.lw-faq-item { 
    border-bottom: 1px solid #eee; 
}

.lw-faq-question { 
    background: none; 
    border: none; 
    width: 100%; 
    text-align: left; 
    padding: 16px 0; 
    font-size: 1.05rem; 
    font-weight: 500; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: inherit; 
    font-family: inherit; 
}

.lw-faq-chevron { 
    font-size: 0.85rem; 
    transition: transform 0.2s; 
}

[aria-expanded="true"] .lw-faq-chevron { 
    transform: rotate(90deg); 
}

.lw-faq-answer { 
    padding: 0 0 16px 0; 
    line-height: 1.5; 
    color: #555; 
    display: none; 
}

[aria-expanded="true"] + .lw-faq-answer { 
    display: block; 
}

/* Progress Circle */
.fc-progress-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.fc-progress-text {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-file);
}

.fc-progress-circle-path {
    stroke: var(--primary-file);
}

/* Info Section Styles */
.lw-info-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.lw-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
}

.lw-info-item.lw-info-reverse {
    flex-direction: row-reverse;
}

.lw-info-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lw-info-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.8);
}

.lw-info-content {
    flex: 1;
    max-width: 600px;
}

.lw-info-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.lw-info-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.lw-info-content a {
    color: #3a7afe;
    text-decoration: none;
}

.lw-info-content a:hover {
    text-decoration: underline;
}

/* Ad Slot Responsive Positioning */
.fc-ad-slot {
    width: 100%;
    margin: 32px 0;
    min-height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2; /* Default order for mobile - shows after upload card */
}

/* Desktop view - position ad above Apps Section */
@media (min-width: 768px) {
    .fc-ad-slot {
        order: 1; /* Show before Apps Section on desktop */
        margin: 48px 0 32px 0;
    }
    
    /* Ensure Apps Section comes after ad on desktop */
    .lw-apps-section {
        order: 2;
    }
}

/* Mobile view - position ad below Upload Card */
@media (max-width: 767px) {
    .lw-flex {
        flex-direction: column;
    }
    
    .fc-ad-slot {
        order: 2; /* Show after upload card on mobile */
        margin: 24px 0;
    }
    
    .lw-intro {
        order: 1;
    }
    
    .lw-apps-section {
        order: 3;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lw-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .lw-upload-card {
        width: 100%;
        max-width: 400px;
    }
    
    .lw-intro {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .lw-subtext {
        margin-left: auto;
        margin-right: auto;
    }
    
    .lw-features {
        justify-content: center;
    }
    
    .lw-apps-section {
        margin: 30px auto;
        padding: 32px 16px;
        width: 100%;
        max-width: 100vw;
    }
    
    .lw-apps-list {
        gap: 15px;
        justify-content: center;
    }
    
    .lw-app-card {
        min-width: 140px;
        max-width: 180px;
        padding: 24px 16px 16px 16px;
        min-height: 120px;
    }
    
    .fc-app-icon {
        width: 48px;
        height: 48px;
    }
    
    .lw-app-label {
        font-size: 0.9rem;
    }
    
    .lw-app-soon {
        font-size: 0.8rem;
    }
    
    .lw-info-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .lw-info-item {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 50px;
        gap: 30px;
    }
    
    .lw-info-item.lw-info-reverse {
        flex-direction: column !important;
    }
    
    .lw-info-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
        order: 1; /* Always show image first on mobile */
    }
    
    .lw-info-content {
        max-width: 100%;
        order: 2; /* Always show content second on mobile */
    }
    
    .lw-info-content h3 {
        font-size: 22px;
    }
    
    .lw-info-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lw-container {
        padding: 20px 12px 0 12px;
    }
    
    .lw-title {
        font-size: 2rem;
    }
    
    .lw-subtext {
        font-size: 1rem;
    }
    
    .lw-features {
        gap: 15px;
    }
    
    .lw-feature {
        gap: 8px;
    }
    
    .lw-feature-icon {
        width: 32px;
        height: 32px;
    }
    
    .lw-feature-title {
        font-size: 0.9rem;
    }
    
    .lw-apps-list {
        gap: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .lw-app-card {
        min-width: 140px;
        max-width: 140px;
        flex: 0 0 calc(50% - 6px);
        padding: 20px 12px 12px 12px;
        min-height: 100px;
    }
    
    .fc-app-icon {
        width: 40px;
        height: 40px;
    }
    
    .lw-app-label {
        font-size: 0.8rem;
    }
    
    .lw-app-soon {
        font-size: 0.7rem;
    }
    
    .lw-info-item {
        margin-bottom: 40px;
        gap: 25px;
    }
    
    .lw-info-image {
        width: 100px;
        height: 100px;
    }
    
    .lw-info-content h3 {
        font-size: 20px;
    }
    
    .lw-info-content p {
        font-size: 14px;
    }
}
/* AI Tools Section Styles */
.lw-tools-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
}

.lw-tools-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #222;
}

.lw-tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

.lw-tool-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
    min-height: 140px;
}

.lw-tool-card:hover {
    box-shadow: 0 8px 32px rgba(60,72,88,0.16);
    transform: translateY(-2px);
}

.lw-tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.lw-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lw-tool-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.2;
}

.lw-tool-link {
    font-size: 0.8rem;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
}

.lw-tool-link:hover {
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
}

/* Blog Section Styles */
.lw-blog-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
}

.lw-blog-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #222;
}

.lw-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

.lw-blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(60,72,88,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lw-blog-card:hover {
    box-shadow: 0 4px 20px rgba(60,72,88,0.12);
    transform: translateY(-2px);
}

.lw-blog-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.lw-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lw-blog-card:hover .lw-blog-image img {
    transform: scale(1.05);
}

.lw-blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lw-blog-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.lw-blog-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex: 1;
}

.lw-blog-link {
    font-size: 0.85rem;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.lw-blog-link:hover {
    color: #cc7a00;
    text-decoration: none;
}

.lw-blog-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.lw-blog-link:hover i {
    transform: translateX(2px);
}

/* Responsive blog grid breakpoints */
@media (max-width: 1200px) {
    .lw-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .lw-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Responsive adjustments for tools grid */
@media (max-width: 1200px) {
    .lw-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lw-tools-section,
    .lw-blog-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .lw-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .lw-tool-card {
        padding: 20px 12px 16px 12px;
        min-height: 120px;
    }
    
    .lw-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .lw-tools-section,
    .lw-blog-section {
        margin: 30px auto;
        padding: 0 12px;
    }
    
    .lw-tools-title,
    .lw-blog-title {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }
    
    .lw-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .lw-tool-card {
        padding: 16px 8px 12px 8px;
        min-height: 100px;
    }
    
    .lw-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .lw-blog-card {
        border-radius: 12px;
    }
}