/* shadcn-inspired design system */

:root {
    /* Colors */
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
    --success: 142.1 76.2% 36.3%;
    --warning: 38 92% 50%;
    --brand-orange: 16 100% 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 0;
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: hsl(var(--foreground));
    text-decoration: none;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.logo span {
    color: hsl(var(--brand-orange));
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 700px;
    margin: 0 auto 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
    margin-bottom: 1.5rem;
}

/* Main content */
main {
    padding: 2rem 0 4rem;
}

.section {
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
}

/* Card */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.card-content {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover:not(:disabled) {
    background: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover:not(:disabled) {
    background: hsl(var(--secondary) / 0.8);
}

.btn-outline {
    border: 1px solid hsl(var(--input));
    background: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover:not(:disabled) {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed hsl(var(--border));
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    background: hsl(var(--muted) / 0.3);
    cursor: pointer;
    transition: all 0.15s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}

.drop-zone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: hsl(var(--muted-foreground));
}

.drop-zone-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.drop-zone-hint {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.file-input {
    display: none;
}

/* Selected file */
.selected-file {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    align-items: center;
    justify-content: space-between;
}

.selected-file.visible {
    display: flex;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    width: 20px;
    height: 20px;
    color: hsl(var(--primary));
}

.file-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.file-size {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.btn-remove {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
}

.btn-remove:hover {
    color: hsl(var(--destructive));
    background: hsl(var(--destructive) / 0.1);
}

/* Alert */
.alert {
    display: none;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.alert.visible {
    display: block;
}

.alert-error {
    background: hsl(var(--destructive) / 0.1);
    border-color: hsl(var(--destructive) / 0.3);
    color: hsl(var(--destructive));
}

.alert-success {
    background: hsl(var(--success) / 0.1);
    border-color: hsl(var(--success) / 0.3);
    color: hsl(var(--success));
}

/* Processing state */
.processing {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.processing.visible {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid hsl(var(--border));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-text {
    color: hsl(var(--muted-foreground));
}

/* Results */
.results {
    display: none;
}

.results.visible {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-value.success { color: hsl(var(--success)); }
.stat-value.error { color: hsl(var(--destructive)); }
.stat-value.warning { color: hsl(var(--warning)); }

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Check list */
.check-list-header {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.check-list {
    display: grid;
    gap: 0.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    background: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
}

.check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.check-icon.pass { color: hsl(var(--success)); }
.check-icon.fail { color: hsl(var(--destructive)); }

.check-text {
    flex: 1;
    font-size: 0.875rem;
}

.check-title {
    font-weight: 500;
}

.check-details {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
}

/* Upgrade CTA */
.upgrade-cta {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(262 83% 58%) 100%);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
    margin-top: 2rem;
}

.upgrade-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.upgrade-cta p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.upgrade-cta ul {
    text-align: left;
    max-width: 450px;
    margin: 0 auto 2rem;
    list-style: none;
}

.upgrade-cta li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1rem;
}

.upgrade-cta li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-upgrade {
    background: white;
    color: hsl(var(--primary));
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}

.feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Price section */
.price-section {
    text-align: center;
    padding: 2.5rem 2rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.price {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.price-note {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

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

.step {
    text-align: center;
}

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

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
}

/* Issues list */
.issues-list {
    display: grid;
    gap: 1rem;
}

.issue-card {
    display: flex;
    gap: 1rem;
}

.issue-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.issue-content h3 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.issue-content p {
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
}

/* Trust badges */
.trust-section {
    text-align: center;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.trust-badge {
    text-align: center;
}

.trust-badge svg {
    margin: 0 auto 0.5rem;
    display: block;
}

.trust-badge p {
    font-weight: 600;
    font-size: 0.875rem;
}

.trust-description {
    color: hsl(var(--muted-foreground));
}

.trust-description strong {
    color: hsl(var(--foreground));
}

/* Footer navigation */
.footer-content {
    border-top: 1px solid hsl(var(--border));
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.footer-section .logo {
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: hsl(var(--foreground));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Upload page specific */
.upload-container {
    max-width: 600px;
}

.upload-section-header h1 {
    font-size: 2rem;
}

.invalid-session-content {
    text-align: center;
    padding: 3rem 2rem;
}

.invalid-session-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.invalid-session-content p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
