﻿/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text: #374151;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.header .tagline {
    font-size: 1.1rem;
    color: #6b7280;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back {
    background: var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #d1d5db;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.pain-points, .solution-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pain-points li, .solution-list li {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.solution-list li {
    color: var(--text);
}

.cta-section {
    margin-top: 2rem;
}

.cta-subtext {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

/* Features Section */
.features {
    margin-bottom: 3rem;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* App Layout */
.app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.scanner-panel, .results-panel {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.scanner-panel h2 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.contract-input {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.contract-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1rem;
}

#scanBtn {
    width: 100%;
    margin-top: 1rem;
}

/* Score Badge */
.score-badge {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: bold;
    color: white;
}

.score-badge.safe {
    background: var(--success);
}

.score-badge.warning {
    background: var(--warning);
}

.score-badge.danger {
    background: var(--primary);
}

.score-badge .score-number {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.score-badge .score-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Red Flags List */
.risk-breakdown h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.red-flags-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.red-flag-item {
    padding: 1rem;
    border-left: 4px solid var(--primary);
    background: #fef2f2;
    border-radius: 4px;
    transition: transform 0.3s;
}

.red-flag-item:hover {
    transform: translateX(4px);
}

.red-flag-item.warning {
    border-left-color: var(--warning);
    background: #fffbeb;
}

.red-flag-item.info {
    border-left-color: var(--info);
    background: #eff6ff;
}

.red-flag-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
    font-size: 1rem;
}

.red-flag-item p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.red-flag-item .severity {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background: rgba(0,0,0,0.1);
    margin-top: 0.5rem;
}

/* Pro Teaser */
.pro-teaser {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.pro-teaser h3 {
    margin-bottom: 1rem;
    color: white;
}

.pro-teaser ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.pro-teaser li {
    margin-bottom: 0.5rem;
}

.pro-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.email-input, .pro-code-input {
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
}

.email-input::placeholder, .pro-code-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.email-input:focus, .pro-code-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--info);
}

.pro-note {
    font-size: 0.8rem;
    color: #d1d5db;
    margin-top: 1rem;
}

.pro-note code {
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

/* Watermark */
.watermark-badge {
    text-align: center;
    padding: 1rem;
    margin-top: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 600;
}

#watermark.hidden {
    display: none !important;
}

/* Pricing Section */
.pricing {
    margin-bottom: 3rem;
}

.pricing h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.pricing-card.pro {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-card .subtext {
    font-size: 0.9rem;
    color: #6b7280;
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: var(--text);
}

.pricing-card .cta-pro {
    margin-top: 1.5rem;
    text-align: center;
}

.pricing-card .cta-pro a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* How It Works */
.how-it-works {
    margin-bottom: 3rem;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.step p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Privacy Section */
.privacy {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.privacy h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.privacy p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #6b7280;
}

/* Testimonials */
.testimonials {
    margin-bottom: 3rem;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.testimonial .quote {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial .author {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

/* Footer CTA */
.footer-cta {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.footer-cta p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-meta {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Empty State */
.empty-state {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-layout {
        grid-template-columns: 1fr;
    }

    .app-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pricing-card.pro {
        transform: scale(1);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        padding: 0;
    }

    .app-header, .btn, .cta-section, .pro-teaser, .footer, .empty-state {
        display: none !important;
    }

    .results-panel {
        box-shadow: none;
        padding: 0;
        background: white;
    }

    .score-badge, .red-flag-item {
        page-break-inside: avoid;
    }
}
