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


:root {
    --site-shell-max-width: 1100px;
    --site-page-gutter: clamp(12px, 2.4vw, 22px);
}
/* Screen reader only - for SEO content that should be accessible but not visible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SEO Content Section - visible but styled to blend naturally */
.seo-content {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

.seo-details {
    display: block;
}

.seo-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    color: #667eea;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hide default disclosure marker */
.seo-summary::-webkit-details-marker {
    display: none;
}

.seo-summary:focus {
    outline: none;
}

.seo-details:focus-within .seo-summary {
    text-decoration-thickness: 3px;
}

.seo-details-body {
    margin-top: 16px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease;
}

/* Show on click (open) */
.seo-details[open] .seo-details-body {
    max-height: 1000px;
    opacity: 1;
}

/* Preview on hover/focus (doesn't persist on touch, but click works) */
.seo-details:hover .seo-details-body,
.seo-details:focus-within .seo-details-body {
    max-height: 1000px;
    opacity: 1;
}

.seo-content h3 {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 8px;
}

.seo-content article {
    margin-bottom: 16px;
}

.seo-content p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #6631e1 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--site-page-gutter);
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px;
    max-width: var(--site-shell-max-width);
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.container.wide {
    max-width: var(--site-shell-max-width);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
    font-size: 16px;
}

.privacy-notice {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0e6ff 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.privacy-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 4px;
}

.privacy-content {
    flex: 1;
}

.privacy-content strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.privacy-content p {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
}

.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f7fafc;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #667eea;
    background: #edf2f7;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e6f0ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #667eea;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #718096;
}

.upload-hint span {
    color: #667eea;
    font-weight: 600;
}

.limits-note {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

input[type="file"] {
    display: none;
}

.format-selector {
    margin-top: 32px;
    display: none;
}

.format-selector.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info {
    background: #edf2f7;
    padding: var(--site-page-gutter);
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.file-icon {
    font-size: 32px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.file-size {
    font-size: 14px;
    color: #718096;
}

.file-size-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.job-status-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.job-status-ready {
    color: #4a5568;
    background: #edf2f7;
    border-color: #cbd5e0;
}

.job-status-queued {
    color: #1a365d;
    background: #ebf8ff;
    border-color: #90cdf4;
}

.job-status-running {
    color: #7b341e;
    background: #fffaf0;
    border-color: #f6ad55;
}

.job-status-done {
    color: #22543d;
    background: #f0fff4;
    border-color: #68d391;
}

.job-status-failed {
    color: #742a2a;
    background: #fff5f5;
    border-color: #fc8181;
}

.job-status-canceled {
    color: #553c9a;
    background: #faf5ff;
    border-color: #b794f4;
}

.remove-file-btn {
    background: #e53e3e;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-file-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}

.remove-file-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

select:hover {
    border-color: #cbd5e0;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.convert-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.convert-btn:active {
    transform: translateY(0);
}

.cancel-convert-btn {
    margin-top: 10px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    box-shadow: 0 4px 12px rgba(221, 107, 32, 0.35);
}

.cancel-convert-btn:hover {
    box-shadow: 0 6px 20px rgba(221, 107, 32, 0.5);
}

.progress {
    margin-top: 20px;
    display: none;
}

.progress.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Multiple Files Styling */
.multi-file-list {
    margin-bottom: 24px;
    width: 100%;
}

.multi-file-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.multi-file-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.multi-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    width: 100%;
}

.multi-file-format {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.file-format-select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.file-format-select:hover {
    border-color: #cbd5e0;
}

.file-format-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.multi-file-item .remove-file-btn {
    margin-left: 0;
    flex-shrink: 0;
}

.cancel-file-btn {
    background: #ed8936;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cancel-file-btn:hover {
    background: #dd6b20;
}

.cancel-file-btn:disabled {
    background: #e2e8f0;
    color: #718096;
    cursor: not-allowed;
}

/* Terms & Conditions Page Styles */
.terms-content {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0e6ff 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.wide .terms-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .wide .terms-content {
        grid-template-columns: 1fr;
    }
}

.term-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.term-item:last-child {
    margin-bottom: 0;
}

.wide .terms-content .term-item {
    margin-bottom: 0;
}

.wide .terms-content .term-item:last-child {
    margin-bottom: 0;
}

.term-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.term-text {
    flex: 1;
}

.term-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #2d3748;
    margin: 0;
}

.back-home {
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.back-btn:hover {
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.back-btn:active {
    transform: translateY(0);
}

/* Footer Links */
.footer-links {
    margin-top: 32px;
    margin-left: 0;
    margin-right: 0;
    padding: 24px 0 0 0;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0 16px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Contact Page Styles */
.contact-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #2d3748;
    background: white;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Inline Links */
.inline-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.inline-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Device Compatibility Hardening */
@media (max-width: 1024px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }

    .container {
        padding: 36px 28px;
    }

    .footer-links {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .container {
        border-radius: 18px;
        padding: 28px 20px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .privacy-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px;
    }

    .privacy-icon {
        margin-top: 0;
    }

    .upload-area {
        padding: 40px 24px;
    }

    .upload-icon {
        font-size: 52px;
        margin-bottom: 14px;
    }

    .upload-text {
        font-size: 17px;
    }

    .file-info {
        padding: 14px;
        gap: 12px;
    }

    .multi-file-item {
        padding: 14px;
    }

    .multi-file-info {
        align-items: flex-start;
        gap: 12px;
    }

    .multi-file-format {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .convert-btn,
    .cancel-convert-btn,
    select,
    .file-format-select {
        min-height: 44px;
    }

    .remove-file-btn,
    .multi-file-item .remove-file-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .cancel-file-btn {
        width: 100%;
        min-height: 42px;
        font-size: 14px;
    }

    .footer-links {
        margin-left: 0;
        margin-right: 0;
        padding-top: 18px;
    }

    .footer-links a {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 22px 14px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .upload-area {
        padding: 32px 16px;
    }
}

@media (hover: none), (pointer: coarse) {
    .upload-area:hover,
    .convert-btn:hover,
    .cancel-convert-btn:hover,
    .remove-file-btn:hover,
    .cancel-file-btn:hover,
    .back-btn:hover,
    .submit-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .multi-file-item:hover {
        border-color: #e2e8f0;
        box-shadow: none;
    }
}

