:root {
    --pdfc-primary: #5b5bd6;
    --pdfc-primary-dark: #4343b6;
    --pdfc-secondary: #7c3aed;
    --pdfc-ink: #172033;
    --pdfc-muted: #667085;
    --pdfc-border: #dfe4ee;
    --pdfc-soft: #f7f7ff;
    --pdfc-success: #15803d;
    --pdfc-danger: #b42318;
    --pdfc-warning: #9a6700;
    --pdfc-shadow: 0 24px 70px rgba(31, 35, 75, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    background: #f7f8fc;
}

button,
input,
select {
    font: inherit;
}

button,
label,
summary {
    -webkit-tap-highlight-color: transparent;
}

.pdfc-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 80px;
    color: var(--pdfc-ink);
}

.pdfc-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--pdfc-muted);
    font-size: 0.9rem;
}

.pdfc-breadcrumb a {
    color: var(--pdfc-primary-dark);
    text-decoration: none;
}

.pdfc-breadcrumb a:hover {
    text-decoration: underline;
}

.pdfc-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 40px;
    margin-bottom: 28px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 36%),
        linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: var(--pdfc-shadow);
}

.pdfc-hero-icon {
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(10px);
    font-size: 2.6rem;
}

.pdfc-eyebrow {
    margin: 0 0 7px;
    color: var(--pdfc-primary);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pdfc-hero .pdfc-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.pdfc-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
}

.pdfc-hero p:not(.pdfc-eyebrow) {
    max-width: 780px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.pdfc-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 21px;
}

.pdfc-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.pdfc-tool-card,
.pdfc-content-section,
.pdfc-related,
.pdfc-report {
    border: 1px solid rgba(31, 35, 75, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(31, 35, 75, 0.07);
}

.pdfc-tool-card {
    overflow: hidden;
}

.pdfc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.pdfc-workspace {
    min-width: 0;
    padding: 34px;
}

.pdfc-sidebar {
    padding: 30px;
    border-left: 1px solid var(--pdfc-border);
    background: #f8f9ff;
}

.pdfc-drop-zone {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 34px;
    border: 2px dashed #a8a8ef;
    border-radius: 20px;
    background: linear-gradient(145deg, #fafaff, #f2f3ff);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.pdfc-drop-zone:hover,
.pdfc-drop-zone.is-dragging {
    border-color: var(--pdfc-primary);
    background: #eeeeff;
    transform: translateY(-2px);
}

.pdfc-drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.pdfc-upload-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--pdfc-primary), var(--pdfc-secondary));
    box-shadow: 0 12px 28px rgba(91, 91, 214, 0.28);
    font-size: 1.8rem;
}

.pdfc-drop-zone strong {
    font-size: 1.22rem;
}

.pdfc-drop-zone span:not(.pdfc-upload-icon),
.pdfc-drop-zone small {
    color: var(--pdfc-muted);
}

.pdfc-drop-zone small {
    margin-top: 5px;
}

.pdfc-file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid var(--pdfc-border);
    border-radius: 15px;
    background: #fff;
}

.pdfc-file-icon {
    width: 48px;
    height: 48px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: #dc2626;
    background: #fff0f0;
    font-size: 1.45rem;
}

.pdfc-file-details {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.pdfc-file-details strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdfc-file-details span {
    color: var(--pdfc-muted);
    font-size: 0.88rem;
}

.pdfc-icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--pdfc-muted);
    background: #f3f4f7;
    cursor: pointer;
}

.pdfc-icon-button:hover {
    color: var(--pdfc-danger);
    background: #fff0f0;
}

.pdfc-alert {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #f7c8c4;
    border-radius: 12px;
    color: var(--pdfc-danger);
    background: #fff3f2;
    font-weight: 650;
}

.pdfc-alert-success {
    border-color: #a9dfb9;
    color: var(--pdfc-success);
    background: #effbf2;
}

.pdfc-alert-error {
    border-color: #f7c8c4;
    color: var(--pdfc-danger);
    background: #fff3f2;
}

.pdfc-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.pdfc-preset {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--pdfc-border);
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pdfc-preset:last-child {
    grid-column: 1 / -1;
}

.pdfc-preset:hover {
    transform: translateY(-1px);
    border-color: #a8a8ef;
}

.pdfc-preset.is-selected {
    border-color: var(--pdfc-primary);
    background: var(--pdfc-soft);
    box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.1);
}

.pdfc-preset input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pdfc-preset-icon {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--pdfc-primary);
    background: #ededff;
}

.pdfc-preset > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pdfc-preset small {
    color: var(--pdfc-muted);
    line-height: 1.3;
}

.pdfc-advanced {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--pdfc-border);
    border-radius: 17px;
    background: #fafbff;
}

.pdfc-field {
    min-width: 0;
}

.pdfc-field-full {
    grid-column: 1 / -1;
}

.pdfc-field > label:not(.pdfc-check),
.pdfc-label-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 750;
}

.pdfc-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdfc-label-row output {
    color: var(--pdfc-primary-dark);
    font-size: 0.9rem;
    font-weight: 800;
}

.pdfc-field select,
.pdfc-field input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd5e1;
    border-radius: 10px;
    color: var(--pdfc-ink);
    background: #fff;
}

.pdfc-field select:focus,
.pdfc-field input[type="text"]:focus {
    border-color: var(--pdfc-primary);
    outline: 3px solid rgba(91, 91, 214, 0.13);
}

.pdfc-field input[type="range"] {
    width: 100%;
    accent-color: var(--pdfc-primary);
}

.pdfc-field small {
    display: block;
    margin-top: 7px;
    color: var(--pdfc-muted);
    line-height: 1.45;
}

.pdfc-check {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dfe4ee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 650;
}

.pdfc-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--pdfc-primary);
}

.pdfc-action-row,
.pdfc-result-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.pdfc-primary-button,
.pdfc-secondary-button,
.pdfc-text-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.pdfc-primary-button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pdfc-primary), var(--pdfc-secondary));
    box-shadow: 0 10px 24px rgba(91, 91, 214, 0.25);
}

.pdfc-primary-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(91, 91, 214, 0.32);
}

.pdfc-primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.pdfc-secondary-button {
    border: 1px solid #cbd1de;
    color: var(--pdfc-ink);
    background: #fff;
}

.pdfc-secondary-button:hover {
    border-color: #a7add0;
    background: #f8f8ff;
}

.pdfc-text-button {
    border: 0;
    color: var(--pdfc-muted);
    background: transparent;
}

.pdfc-text-button:hover {
    color: var(--pdfc-primary-dark);
    background: #f2f2ff;
}

.pdfc-progress-section,
.pdfc-result {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--pdfc-border);
    border-radius: 17px;
    background: #fafbff;
}

.pdfc-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdfc-progress-track {
    height: 12px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4e6f3;
}

.pdfc-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pdfc-primary), var(--pdfc-secondary));
    transition: width 0.2s ease;
}

.pdfc-progress-section p {
    margin: 9px 0 0;
    color: var(--pdfc-muted);
    font-size: 0.9rem;
}

.pdfc-result {
    border-color: #b9e2c5;
    background: #f3fbf5;
}

.pdfc-result-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pdfc-result-check {
    width: 50px;
    height: 50px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--pdfc-success);
}

.pdfc-result h2 {
    margin: 0;
    font-size: 1.3rem;
}

.pdfc-result p {
    margin: 4px 0 0;
    color: #4f6354;
}

.pdfc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.pdfc-stats > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid #d6eadc;
    border-radius: 12px;
    background: #fff;
}

.pdfc-stats span {
    color: var(--pdfc-muted);
    font-size: 0.8rem;
}

.pdfc-stats strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-size: 1.04rem;
}

.pdfc-info-box,
.pdfc-warning-box {
    padding: 19px;
    border-radius: 16px;
}

.pdfc-info-box {
    margin-bottom: 16px;
    border: 1px solid #e0e2f3;
    background: #fff;
}

.pdfc-info-box h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 9px;
    font-size: 1.02rem;
}

.pdfc-info-box h2 i {
    color: var(--pdfc-primary);
}

.pdfc-info-box p,
.pdfc-info-box li,
.pdfc-warning-box p {
    color: var(--pdfc-muted);
    font-size: 0.9rem;
}

.pdfc-info-box p,
.pdfc-warning-box p {
    margin: 0;
}

.pdfc-info-box ul {
    margin: 0;
    padding-left: 20px;
}

.pdfc-info-box li + li {
    margin-top: 8px;
}

.pdfc-warning-box {
    border: 1px solid #f0d89d;
    color: var(--pdfc-warning);
    background: #fff9e8;
}

.pdfc-warning-box strong {
    display: block;
    margin-bottom: 8px;
}

.pdfc-content-section,
.pdfc-related,
.pdfc-report {
    margin-top: 28px;
    padding: 34px;
}

.pdfc-content-section > h2,
.pdfc-related > h2,
.pdfc-report h2,
.pdfc-content-grid h2 {
    margin: 0 0 14px;
    color: var(--pdfc-ink);
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.22;
}

.pdfc-content-section p,
.pdfc-content-grid p {
    color: var(--pdfc-muted);
}

.pdfc-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
}

.pdfc-steps {
    display: grid;
    gap: 16px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.pdfc-steps li {
    display: flex;
    gap: 14px;
}

.pdfc-steps li > span {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--pdfc-primary);
    font-weight: 850;
}

.pdfc-steps p {
    margin: 3px 0 0;
}

.pdfc-comparison-grid,
.pdfc-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.pdfc-comparison-grid article {
    padding: 22px;
    border: 1px solid var(--pdfc-border);
    border-radius: 16px;
    background: #fafbff;
}

.pdfc-comparison-grid article > i {
    color: var(--pdfc-primary);
    font-size: 1.65rem;
}

.pdfc-comparison-grid h3 {
    margin: 13px 0 7px;
}

.pdfc-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.pdfc-faq-list details {
    border: 1px solid var(--pdfc-border);
    border-radius: 13px;
    background: #fff;
}

.pdfc-faq-list summary {
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 800;
}

.pdfc-faq-list details[open] summary {
    color: var(--pdfc-primary-dark);
    border-bottom: 1px solid var(--pdfc-border);
}

.pdfc-faq-list details p {
    margin: 0;
    padding: 15px 18px 18px;
}

.pdfc-related-grid a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--pdfc-border);
    border-radius: 15px;
    color: var(--pdfc-ink);
    background: #fafbff;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.pdfc-related-grid a:hover {
    transform: translateY(-2px);
    border-color: var(--pdfc-primary);
}

.pdfc-related-grid i {
    width: 44px;
    height: 44px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--pdfc-primary);
    background: #ededff;
}

.pdfc-related-grid span {
    display: flex;
    flex-direction: column;
}

.pdfc-related-grid small {
    color: var(--pdfc-muted);
}

.pdfc-report {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: linear-gradient(145deg, #fbfbff, #f3f4ff);
}

.pdfc-report h2 {
    margin-bottom: 6px;
    font-size: 1.35rem;
}

.pdfc-report p {
    margin: 0;
    color: var(--pdfc-muted);
}

[hidden] {
    display: none !important;
}

@media (max-width: 960px) {
    .pdfc-grid {
        grid-template-columns: 1fr;
    }

    .pdfc-sidebar {
        border-top: 1px solid var(--pdfc-border);
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .pdfc-page {
        width: min(100% - 20px, 1180px);
        padding-top: 14px;
    }

    .pdfc-hero {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .pdfc-hero-icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
        font-size: 2rem;
    }

    .pdfc-workspace,
    .pdfc-sidebar,
    .pdfc-content-section,
    .pdfc-related,
    .pdfc-report {
        padding: 22px 17px;
    }

    .pdfc-drop-zone {
        min-height: 215px;
        padding: 25px 15px;
    }

    .pdfc-presets,
    .pdfc-advanced,
    .pdfc-content-grid,
    .pdfc-comparison-grid,
    .pdfc-related-grid {
        grid-template-columns: 1fr;
    }

    .pdfc-preset:last-child,
    .pdfc-field-full {
        grid-column: auto;
    }

    .pdfc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdfc-primary-button,
    .pdfc-secondary-button {
        width: 100%;
    }

    .pdfc-action-row .pdfc-text-button {
        width: 100%;
    }

    .pdfc-report {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
