.ap-pdf-benchmark {
    --ap-blue: #2563eb;
    --ap-blue-dark: #0f172a;
    --ap-blue-soft: #eff6ff;
    --ap-green: #15803d;
    --ap-red: #dc2626;
    --ap-amber: #b45309;
    --ap-border: #dbe4f0;
    --ap-muted: #64748b;
    --ap-panel: #ffffff;
    --ap-page: #f8fafc;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid var(--ap-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
    margin: 2rem 0;
    font-family: inherit;
}

.ap-pdf-benchmark *,
.ap-pdf-benchmark *::before,
.ap-pdf-benchmark *::after {
    box-sizing: border-box;
}

.ap-pdf-benchmark__hero {
    background:
        radial-gradient(circle at 82% 15%, rgba(37, 99, 235, 0.26), transparent 28%),
        linear-gradient(135deg, #020617 0%, #0f172a 58%, #172554 100%);
    color: #ffffff;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.ap-pdf-benchmark__eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.95);
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    padding: 0.48rem 0.72rem;
    margin-bottom: 1rem;
}

.ap-pdf-benchmark h2,
.ap-pdf-benchmark h3,
.ap-pdf-benchmark p {
    margin-top: 0;
}

.ap-pdf-benchmark h2 {
    color: inherit;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    max-width: 980px;
    margin-bottom: 1rem;
}

.ap-pdf-benchmark__hero > p:not(.ap-pdf-benchmark__source) {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 760px;
    margin-bottom: 1.6rem;
}

.ap-pdf-benchmark__stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    overflow: hidden;
}

.ap-pdf-benchmark__stat {
    min-height: 108px;
    background: rgba(2, 6, 23, 0.3);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.ap-pdf-benchmark__stat strong {
    display: block;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1;
    color: #60a5fa;
    letter-spacing: -0.035em;
}

.ap-pdf-benchmark__stat span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    line-height: 1.25;
}

.ap-pdf-benchmark__source {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    margin: 1rem 0 0;
}

.ap-pdf-benchmark__body {
    background: var(--ap-page);
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 1rem;
    padding: clamp(1rem, 2.6vw, 2rem);
}

.ap-pdf-benchmark__form,
.ap-pdf-benchmark__results,
.ap-pdf-benchmark__takeaways > div {
    background: var(--ap-panel);
    border: 1px solid var(--ap-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.ap-pdf-benchmark__form {
    padding: 1.25rem;
    align-self: start;
}

.ap-pdf-benchmark__form h3,
.ap-pdf-benchmark__results h3,
.ap-pdf-benchmark__takeaways h3 {
    font-size: 1.22rem;
    line-height: 1.15;
    margin-bottom: 0.45rem;
    color: #0f172a;
}

.ap-pdf-benchmark__form > p,
.ap-pdf-benchmark__results-head p,
.ap-pdf-benchmark__takeaways p {
    color: var(--ap-muted);
    line-height: 1.48;
}

.ap-pdf-benchmark__form label,
.ap-pdf-benchmark__form fieldset {
    display: block;
    margin: 1rem 0 0;
}

.ap-pdf-benchmark__form label > span,
.ap-pdf-benchmark__form legend {
    display: block;
    font-weight: 750;
    font-size: 0.92rem;
    color: #0f172a;
    margin-bottom: 0.44rem;
}

.ap-pdf-benchmark__form input[type='number'] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    min-height: 48px;
    padding: 0.72rem 0.9rem;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
}

.ap-pdf-benchmark__form input[type='number']:focus,
.ap-pdf-benchmark__choice-row label:has(input:focus-visible) {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    border-color: var(--ap-blue);
}

.ap-pdf-benchmark__form fieldset {
    border: 0;
    padding: 0;
}

.ap-pdf-benchmark__choice-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.ap-pdf-benchmark__choice-row label {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    min-height: 44px;
    cursor: pointer;
    color: #334155;
}

.ap-pdf-benchmark__choice-row label:has(input:checked) {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #60a5fa;
}

.ap-pdf-benchmark__choice-row input {
    margin: 0;
}

.ap-pdf-benchmark__form button,
.ap-pdf-benchmark__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 1.25rem;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    font-weight: 850;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
}

.ap-pdf-benchmark__form button:hover,
.ap-pdf-benchmark__cta:hover {
    transform: translateY(-1px);
}

.ap-pdf-benchmark__results {
    overflow: hidden;
}

.ap-pdf-benchmark__results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--ap-border);
}

.ap-pdf-benchmark__score {
    min-width: 118px;
    text-align: center;
    background: var(--ap-blue-soft);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 0.8rem;
}

.ap-pdf-benchmark__score span {
    display: block;
    font-size: 0.76rem;
    color: #475569;
    margin-bottom: 0.2rem;
}

.ap-pdf-benchmark__score strong {
    font-size: 2rem;
    line-height: 1;
    color: #1d4ed8;
}

.ap-pdf-benchmark__comparison {
    padding: 1rem 1.25rem 1.25rem;
}

.ap-pdf-benchmark__row {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr 0.9fr;
    gap: 0.75rem;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.78rem 0;
}

.ap-pdf-benchmark__row:first-child {
    color: #475569;
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ap-pdf-benchmark__row:last-child {
    border-bottom: 0;
}

.ap-pdf-benchmark__metric {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ap-pdf-benchmark__metric strong {
    font-size: 0.95rem;
}

.ap-pdf-benchmark__metric span {
    color: var(--ap-muted);
    font-size: 0.82rem;
}

.ap-pdf-benchmark__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.58rem;
    background: #f1f5f9;
    color: #334155;
}

.ap-pdf-benchmark__pill.is-good {
    background: #dcfce7;
    color: #166534;
}

.ap-pdf-benchmark__pill.is-warn {
    background: #fef3c7;
    color: #92400e;
}

.ap-pdf-benchmark__pill.is-bad {
    background: #fee2e2;
    color: #991b1b;
}

.ap-pdf-benchmark__takeaways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
}

.ap-pdf-benchmark__takeaways > div {
    padding: 1.15rem;
}

.ap-pdf-benchmark__takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.ap-pdf-benchmark__takeaways li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.6rem;
    color: #334155;
    line-height: 1.4;
}

.ap-pdf-benchmark__takeaways li::before {
    content: attr(data-icon);
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
}

.ap-pdf-benchmark__cta {
    width: fit-content;
    padding-inline: 1.1rem;
}

@media (max-width: 980px) {
    .ap-pdf-benchmark__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-pdf-benchmark__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .ap-pdf-benchmark {
        border-radius: 18px;
    }

    .ap-pdf-benchmark__hero,
    .ap-pdf-benchmark__body {
        padding: 1rem;
    }

    .ap-pdf-benchmark__stats,
    .ap-pdf-benchmark__choice-row,
    .ap-pdf-benchmark__takeaways {
        grid-template-columns: 1fr;
    }

    .ap-pdf-benchmark__results-head {
        flex-direction: column;
    }

    .ap-pdf-benchmark__score {
        width: 100%;
    }

    .ap-pdf-benchmark__row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 0.85rem;
        margin-bottom: 0.7rem;
    }

    .ap-pdf-benchmark__row:first-child {
        display: none;
    }
}
