/* LexAnnotate Page Specific Styles - Apple Dark Theme Overhaul */

:root {
    --apple-bg: #000000;
    --apple-card-bg: #1c1c1e;
    --apple-card-border: rgba(255, 255, 255, 0.1);
    --apple-text-primary: #f5f5f7;
    --apple-text-secondary: #86868b;
    --apple-accent: #2997ff; /* Apple-style blue */
    --apple-radius: 20px;
}

/* --- Hero Section (Already updated, tweaks for consistency) --- */
.la-hero {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: visible;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--apple-bg);
}

.la-hero-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.la-hero h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: 12px;
    line-height: 1.07143;
    color: var(--apple-text-primary);
}

.la-hero p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: .011em;
    color: var(--apple-text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Upload Card (Refined) --- */
.upload-card-wrapper {
    background: rgba(28, 28, 30, 0.6);
    border: 1px solid var(--apple-card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Features Grid (Bento Box Style) --- */
.la-features-section {
    padding: 80px 0;
    background: var(--apple-bg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.la-feature-card {
    background: var(--apple-card-bg);
    border: 1px solid transparent; /* Cleaner look */
    padding: 40px 30px;
    border-radius: 30px;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.la-feature-card:hover {
    transform: scale(1.02);
    background-color: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.1);
}

.la-icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2997ff20, #2997ff10);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--apple-accent);
    margin-bottom: 24px;
}

.la-feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--apple-text-primary);
}

.la-feature-card p {
    font-size: 17px;
    line-height: 1.5;
    color: var(--apple-text-secondary);
    margin: 0;
}

/* --- Advanced Capabilities (Feature Rows) --- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-row.reversed {
    direction: rtl;
}

.feature-row.reversed .feature-content {
    direction: ltr;
}

.feature-visual {
    background: #1c1c1e;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--apple-card-border);
}

.feature-content h2 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--apple-text-primary);
}

.feature-content p {
    font-size: 21px;
    line-height: 1.4;
    color: var(--apple-text-secondary);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    font-size: 17px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
}

.feature-item i {
    color: var(--apple-accent);
    font-size: 14px;
}

/* --- Pricing (Apple Card Style) --- */
.la-pricing-section {
    padding: 100px 0;
    background: #000;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--apple-card-bg);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.pricing-card:hover {
    transform: scale(1.02);
    border-color: var(--apple-card-border);
}

.pricing-card.featured {
    background: #1c1c1e;
    border: 2px solid var(--apple-accent);
    box-shadow: 0 0 30px rgba(41, 151, 255, 0.2);
}

.price-header {
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.price-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--apple-text-primary);
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--apple-text-primary);
    font-family: var(--font-primary); /* Use primary font for sleeker look */
}

.price-period {
    font-size: 15px;
    color: var(--apple-text-secondary);
}

.feature-list-check li {
    font-size: 15px;
    color: #d2d2d7;
    margin-bottom: 12px;
}

.feature-list-check li i {
    color: var(--apple-accent);
}

.popular-badge {
    background: var(--apple-accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: inline-block;
    align-self: flex-start;
    top: auto;
    left: auto;
    transform: none;
    position: static;
}

/* --- FAQ (Clean Accordion) --- */
.la-faq-section {
    padding: 100px 0;
    background: #000;
    border-top: 1px solid #1c1c1e;
}

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

.faq-item {
    border-bottom: 1px solid #333;
    margin-bottom: 0;
}

.faq-question {
    padding: 24px 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--apple-text-primary);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--apple-accent);
}

.faq-answer {
    font-size: 17px;
    color: var(--apple-text-secondary);
    line-height: 1.5;
    padding-bottom: 24px;
    padding-top: 0;
}

/* --- Buttons --- */
.btn {
    border-radius: 980px; /* Fully rounded */
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 600;
}

.btn-primary {
    background: var(--apple-text-primary);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: #fff;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.btn-outline {
    border: 1px solid var(--apple-text-primary);
    color: var(--apple-text-primary);
}

/* --- Final CTA --- */
.final-cta-section {
    background: #1c1c1e;
    padding: 120px 0;
    text-align: center;
}

.final-cta-content h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-row.reversed {
        direction: ltr;
    }
    
    .feature-visual {
        order: -1;
    }
    
    .la-hero h1 {
        font-size: 40px;
    }
}

/* --- Interactive Tutorial Popup --- */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.tutorial-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tutorial-card {
    background: #1c1c1e;
    width: 90%;
    max-width: 480px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    overflow: hidden;
}

.tutorial-overlay.active .tutorial-card {
    transform: scale(1);
}

.tutorial-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
    z-index: 10;
}

.tutorial-close:hover {
    background: rgba(255,255,255,0.2);
}

.tutorial-slides {
    position: relative;
    min-height: 280px; /* Adjust based on content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.t-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.t-slide.prev {
    transform: translateX(-20px);
}

.t-icon-bg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.2), rgba(41, 151, 255, 0.05));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--apple-accent);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.1);
}

.t-slide h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.t-slide p {
    font-size: 16px;
    line-height: 1.5;
    color: #86868b;
    margin: 0;
    padding: 0 10px;
}

.tutorial-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.t-dots {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.t-dot.active {
    background: var(--apple-accent);
    width: 20px;
    border-radius: 10px;
}

.t-next-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
}

.t-next-btn:hover {
    transform: scale(1.05);
}