/* Landing Page Specific Styles */

/* Prevent horizontal scroll */
.landing-page {
    overflow-x: hidden;
    width: 100%;
}

/* Override feedback form section hiding */
.landing-page .section {
    display: block !important;
}

/* ==================== Utility Classes ==================== */

/* Typography Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-12 { padding: var(--space-12); }

/* ==================== Responsive Tables ==================== */
.landing-page .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.landing-page .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.landing-page .table th,
.landing-page .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.landing-page .table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.landing-page .table tbody tr {
    transition: background-color 0.15s ease;
}

.landing-page .table tbody tr:hover {
    background: var(--bg-light);
}

.landing-page .table tbody tr:last-child td {
    border-bottom: none;
}

/* Mobile: Convert tables to card layout */
@media (max-width: 768px) {
    .landing-page .table-container {
        border: none;
    }

    .landing-page .table thead {
        display: none;
    }

    .landing-page .table,
    .landing-page .table tbody,
    .landing-page .table tr,
    .landing-page .table td {
        display: block;
        width: 100%;
    }

    .landing-page .table tr {
        margin-bottom: 1.5rem;
        background: var(--bg-card);
        border-radius: 8px;
        border: 1px solid var(--border);
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .landing-page .table td {
        border: none;
        padding: 0.5rem 0;
        position: relative;
        padding-left: 40%;
        text-align: right;
    }

    .landing-page .table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 38%;
        padding-right: 0.5rem;
        font-weight: 600;
        text-align: left;
        color: var(--text-secondary);
    }

    .landing-page .table td:first-child {
        padding-top: 0;
        font-weight: 600;
        font-size: 1rem;
    }
}

/* Header */
.landing-page .header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.landing-page .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.landing-page .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.landing-page .nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.landing-page .nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-page .nav a:hover {
    color: var(--primary);
}

.landing-page .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.landing-page .theme-toggle:hover {
    color: var(--primary);
}

.landing-page .theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hero */
.landing-page .hero {
    background: var(--primary-600);
    color: white;
    padding: var(--space-24) 0;
    text-align: center;
}

.landing-page .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.landing-page .hero-title {
    font-size: var(--text-6xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.landing-page .hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-page .hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.landing-page .section {
    padding: var(--space-24) 0;
}

.landing-page .section-alt {
    background: var(--bg-card);
}

.landing-page .section-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-16);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Features Grid */
.landing-page .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.5rem;
}

/* Better handling for 5-item grids (Dreyfus page) */
@media (min-width: 1024px) and (max-width: 1400px) {
    .landing-page .features-grid {
        /* Force 5 columns on medium-large screens for better 5-item layout */
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .landing-page .features-grid {
        /* 2 columns on tablets, better than 3-2 split */
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .landing-page .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .landing-page .features-grid {
        gap: 1.25rem;
    }
}

.landing-page .feature-card {
    background: var(--bg-card);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-page .section-alt .feature-card {
    box-shadow: var(--shadow-xs);
}

.landing-page .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.landing-page .feature-card h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    line-height: 1.3;
}

.landing-page .feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--text-base);
}

/* Use Cases Grid */
.landing-page .use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

@media (max-width: 640px) {
    .landing-page .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.landing-page .use-case-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.landing-page .use-case-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.landing-page .use-case-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing Grid */
.landing-page .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .landing-page .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.landing-page .pricing-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.landing-page .pricing-featured {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.landing-page .featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.landing-page .pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.landing-page .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.landing-page .price-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.landing-page .pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.landing-page .pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.landing-page .pricing-features li:last-child {
    border-bottom: none;
}

.landing-page .pricing-features li:before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* FAQ Grid */
.landing-page .faq-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .landing-page .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.landing-page .faq-item {
    background: var(--bg-card);
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.landing-page .section-alt .faq-item {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.landing-page .faq-item summary {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    padding: 1.5rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.landing-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-page .faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s;
}

.landing-page .faq-item[open] summary::after {
    content: '−';
    transform: rotate(0deg);
}

.landing-page .faq-item summary:hover {
    background: var(--bg-light);
}

.landing-page .faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
}

/* CTA Section */
.landing-page .cta-section {
    background: var(--primary-600);
    color: white;
    border: 1px solid var(--primary-700);
}

.landing-page .cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.landing-page .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-page .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.landing-page .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.landing-page .footer {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.landing-page .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.landing-page .footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.landing-page .footer-section p {
    color: var(--text-secondary);
}

.landing-page .footer-section ul {
    list-style: none;
}

.landing-page .footer-section ul li {
    margin-bottom: 0.5rem;
}

.landing-page .footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.landing-page .footer-section a:hover {
    color: var(--primary);
}

.landing-page .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Special Feature Cards with Color Variants */
.landing-page .feature-card-danger {
    background: var(--bg-card);
    border-left: 4px solid #dc2626;
}

.landing-page .feature-card-danger h3 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.landing-page .feature-card-success {
    background: var(--bg-card);
    border-left: 4px solid #16a34a;
}

.landing-page .feature-card-success h3 {
    color: #16a34a;
    margin-bottom: 1rem;
}

.landing-page .feature-card-warning {
    background: var(--bg-card);
    border-left: 4px solid #f59e0b;
}

.landing-page .feature-card-warning h3 {
    color: #d97706;
}

.landing-page .feature-card-info {
    background: var(--bg-card);
    border-left: 4px solid #3b82f6;
}

.landing-page .feature-card-info h3 {
    color: #1e40af;
}

/* Read More / Expandable Content */
.expandable-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.expandable-section.expanded {
    max-height: 5000px; /* Large enough to accommodate content */
    opacity: 1;
}

.read-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin: 1.5rem auto;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.read-more-toggle:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.read-more-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.read-more-toggle.active svg {
    transform: rotate(180deg);
}

.read-more-container {
    text-align: center;
    margin: 2rem 0;
}

/* Partial grid - show first N items, hide rest */
.features-grid-partial > *:nth-child(n+7) {
    display: none;
}

.features-grid-partial.expanded > * {
    display: block;
}

/* Card-level expandable content */
.card-expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
    opacity: 0;
}

.card-expandable-content.expanded {
    max-height: 1000px;
    opacity: 1;
    margin-top: 1rem;
}

/* Feature cards with expandable content need flex layout for button alignment */
.feature-card:has(.card-expand-toggle) {
    display: flex;
    flex-direction: column;
}

.feature-card:has(.card-expand-toggle) > *:not(.card-expand-toggle) {
    flex: 0 0 auto;
}

.card-expand-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    padding: 0.5rem 0.875rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-start;
}

.card-expand-toggle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.card-expand-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.card-expand-toggle.active svg {
    transform: rotate(180deg);
}

/* Agency Level Color System - Red (L1) → Yellow (L3) → Green (L5) */
.landing-page .level-card-1 {
    background: rgba(220, 38, 38, 0.08);
    border-left: 4px solid #dc2626;
    opacity: 0.7;
}

.landing-page .level-card-1 h3 {
    color: var(--text-secondary);
}

.landing-page .level-card-2 {
    background: rgba(249, 115, 22, 0.08);
    border-left: 4px solid #f97316;
}

.landing-page .level-card-2 h3 {
    color: #ea580c;
}

.landing-page .level-card-3 {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid #f59e0b;
}

.landing-page .level-card-3 h3 {
    color: #d97706;
}

.landing-page .level-card-4 {
    background: rgba(132, 204, 22, 0.08);
    border-left: 4px solid #84cc16;
}

.landing-page .level-card-4 h3 {
    color: #65a30d;
}

.landing-page .level-card-5 {
    background: rgba(22, 163, 74, 0.08);
    border-left: 4px solid #16a34a;
}

.landing-page .level-card-5 h3 {
    color: #16a34a;
}

.landing-page .feature-card-gradient {
    background: var(--primary-600);
    color: white;
    border: 1px solid var(--primary-700);
}

.landing-page .feature-card-gradient h3 {
    color: white;
}

.landing-page .feature-card-gradient p {
    color: rgba(255, 255, 255, 0.95);
}

.landing-page .comparison-list {
    list-style: none;
    padding: 0;
    color: var(--text-primary);
}

.landing-page .comparison-list li {
    margin-bottom: 0.5rem;
}

.landing-page .cta-box {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.landing-page .cta-box h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.landing-page .cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.landing-page .code-block {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 2rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.landing-page .table-header-primary {
    background: var(--bg-light);
    padding: 1rem;
}

.landing-page .table-header-success {
    background: var(--bg-light);
    padding: 1rem;
}

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

.landing-page .mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Signup Page Styles */
.signup-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px 20px;
}

.signup-header {
    text-align: center;
    margin-bottom: 60px;
}

.signup-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.signup-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.plan-price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.plan-features li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
}

.checkout-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-btn.primary {
    background: var(--primary-600);
    color: white;
    border: 1px solid var(--primary-700);
}

.checkout-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

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

.checkout-btn.secondary:hover {
    background: var(--bg-light);
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 20px;
}

.back-link:hover {
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-page .header-content {
        position: relative;
    }

    .landing-page .mobile-menu-toggle {
        display: block;
    }

    .landing-page .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }

    .landing-page .nav.active {
        display: flex;
    }

    .landing-page .nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
    }

    .landing-page .nav .theme-toggle {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        justify-content: flex-start;
    }

    .landing-page .nav a:last-child,
    .landing-page .nav .theme-toggle:last-child {
        border-bottom: none;
    }

    .landing-page .hero-title {
        font-size: 2rem;
    }

    .landing-page .hero-subtitle {
        font-size: 1rem;
    }

    .landing-page .section-title {
        font-size: 2rem;
    }

    .landing-page .hero {
        padding: var(--space-20) 0;
    }

    .landing-page .section {
        padding: var(--space-16) 0;
    }

    .landing-page .features-grid,
    .landing-page .use-cases-grid,
    .landing-page .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Mobile-optimized feature cards */
    .landing-page .feature-card {
        padding: 1.5rem;
    }

    .landing-page .feature-card h3 {
        font-size: 1.15rem;
    }

    /* Ensure no element exceeds viewport */
    .landing-page * {
        max-width: 100%;
    }

    /* Fix any overflow issues */
    .landing-page .table-container {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==================== Enhanced Component Styles ==================== */

/* Refined feature card variants with subtle, elegant colors */
.landing-page .feature-card-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-left: 4px solid var(--success);
}

.landing-page .feature-card-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-left: 4px solid var(--warning);
}

.landing-page .feature-card-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
    border-left: 4px solid var(--danger);
}

.landing-page .feature-card-info {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0.02) 100%);
    border-left: 4px solid var(--primary);
}

/* Refined table row colors - subtle backgrounds without affecting text */
.landing-page .table tbody tr[style*="border-left: 3px solid var(--success)"],
.landing-page .table tbody tr[style*="border-left: 4px solid var(--success)"] {
    background: rgba(16, 185, 129, 0.03);
}

.landing-page .table tbody tr[style*="border-left: 3px solid var(--warning)"],
.landing-page .table tbody tr[style*="border-left: 4px solid var(--warning)"] {
    background: rgba(245, 158, 11, 0.03);
}

[data-theme="dark"] .landing-page .table tbody tr[style*="border-left: 3px solid var(--success)"],
[data-theme="dark"] .landing-page .table tbody tr[style*="border-left: 4px solid var(--success)"] {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="dark"] .landing-page .table tbody tr[style*="border-left: 3px solid var(--warning)"],
[data-theme="dark"] .landing-page .table tbody tr[style*="border-left: 4px solid var(--warning)"] {
    background: rgba(52, 211, 153, 0.08);
}

/* Level cards on agency page */
.landing-page .level-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-page .level-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Better spacing and readability */
.landing-page .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

@media (max-width: 640px) {
    .landing-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* More compact hero on mobile */
    .landing-page .hero {
        padding: 3rem 0;
    }

    .landing-page .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .landing-page .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Smaller section titles */
    .landing-page .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    /* More compact sections */
    .landing-page .section {
        padding: 2.5rem 0;
    }

    /* Better button sizing on mobile */
    .landing-page .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Responsive flex containers */
    .landing-page .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .landing-page .hero-cta .btn {
        width: 100%;
    }
}
