@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
    --bg: #f3efe6;
    --bg-deep: #e7e0d2;
    --ink: #1c2421;
    --muted: #3f4a45;
    --accent: #0f6b5c;
    --accent-dark: #0a4f44;
    --danger: #9b2c2c;
    --card: rgba(255, 252, 246, 0.96);
    --line: rgba(28, 36, 33, 0.14);
    --shadow: 0 18px 50px rgba(28, 36, 33, 0.1);
    --radius: 18px;
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, #d9efe8 0%, transparent 55%),
        radial-gradient(900px 500px at 100% 0%, #f0e2c8 0%, transparent 50%),
        linear-gradient(180deg, var(--bg), var(--bg-deep));
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: #fff;
    padding: 0.5rem 0.75rem;
    z-index: 10;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(243, 239, 230, 0.85);
    border-bottom: 1px solid var(--line);
    z-index: 5;
}

.header-inner, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: -0.03em;
}
.logo span {
    color: var(--accent);
    font-weight: 700;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.94rem;
}
.site-nav a.is-active,
.site-nav a:hover { color: var(--ink); }

.hero, .tool-hero {
    padding: 1.6rem 0 0.85rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.hero-copy {
    max-width: 620px;
    min-width: 0;
}
.hero-grid > .uploader {
    min-width: 0;
}

/* Keep hero compact once results are shown */
body.has-result .hero {
    padding-bottom: 0.35rem;
}
body.has-result .samples {
    display: none;
}

.utility-label {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent-dark);
}
.hero-copy h1 {
    font-size: clamp(2.05rem, 3.6vw, 2.85rem);
    font-weight: 700;
    max-width: 100%;
    margin: 0 0 0.65rem;
    white-space: normal;
    overflow-wrap: break-word;
}
.eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin: 0 0 0.75rem;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 0 0 0.75rem;
}
h2 {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.lede {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 36rem;
    line-height: 1.55;
    margin: 0;
}
.lede-secondary {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 36rem;
    margin-top: 0.5rem;
}
.section-intro {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 42rem;
    margin: 0.35rem 0 1.1rem;
}
.trust-banner {
    background: rgba(15, 107, 92, 0.1);
    border: 1px solid rgba(15, 107, 92, 0.25);
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    color: var(--accent-dark);
    font-size: 1.02rem;
    margin: 0;
}
.tool-grid-compact a {
    padding: 0.95rem 1.05rem;
}
.workflow-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.workflow-chips a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.98rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.workflow-chips a:hover {
    border-color: rgba(15, 107, 92, 0.45);
    color: var(--accent-dark);
    box-shadow: 0 8px 20px rgba(28, 36, 33, 0.06);
}

.uploader {
    position: relative;
}
.upload-shell {
    background: var(--card);
    border: 2px dashed rgba(15, 107, 92, 0.5);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 17.5rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.upload-shell:has(.upload-card.is-dragover),
.upload-shell:has(.upload-card:hover),
.upload-shell:has(.upload-card:focus-visible),
.upload-shell:hover {
    border-color: var(--accent);
}
.upload-shell:has(.upload-card.is-dragover) {
    background: rgba(217, 239, 232, 0.45);
    transform: translateY(-2px);
}
.upload-card {
    padding: 2rem 1.6rem 1.45rem;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 13.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.upload-card:hover,
.upload-card:focus-visible {
    outline: none;
}
.upload-card.is-dragover {
    background: transparent;
    transform: none;
}
.upload-icon {
    color: var(--accent);
    margin: 0 auto 0.55rem;
    display: grid;
    place-items: center;
}
.upload-icon svg {
    width: 46px;
    height: 46px;
}
.upload-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    margin: 0 0 1rem;
}
.upload-hint {
    margin: 0.85rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}
.upload-limits {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}
.muted, .privacy-note {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.btn-upload {
    padding: 0.95rem 1.75rem;
    font-size: 1.08rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.3rem;
    font-size: 0.98rem;
    color: var(--ink);
}
.trust-list li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
}

.advanced {
    margin: 0;
    background: rgba(15, 107, 92, 0.04);
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 0.55rem 1rem 0.7rem;
    text-align: left;
    cursor: default;
}
.advanced summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.95rem;
    list-style: none;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before {
    content: "▸ ";
    color: var(--accent);
}
.advanced[open] summary::before {
    content: "▾ ";
}
.advanced[open] summary {
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.advanced-limits {
    margin-top: 0.65rem;
}
.advanced .field {
    margin-top: 0.5rem;
}
.field {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
}
select {
    font: inherit;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
}

.samples {
    padding: 0.85rem 0 0.35rem;
}
.tools-index, .promise, .content-block, .job-page, .result-page {
    padding: 1.65rem 0;
}
#more-tools.tools-index {
    padding-top: 0.85rem;
}
.tool-grid > li {
    display: flex;
    height: 100%;
}

.result-page {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.result-page[hidden] {
    display: none !important;
}

.sample-links, .result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0.85rem 0 1.1rem;
}

.tool-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.tool-grid-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tool-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tool-card {
    display: flex;
    width: 100%;
    height: 100%;
}
.tool-grid a {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.3rem 1.25rem;
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-grid a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.tool-grid a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.tool-grid strong {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}
.tool-grid span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.tool-grid-featured a {
    border-color: rgba(15, 107, 92, 0.28);
    box-shadow: 0 10px 28px rgba(28, 36, 33, 0.06);
    min-height: 11.5rem;
}
.tool-grid-compact a span {
    font-size: 15px;
    line-height: 1.55;
}

.feature-list, .steps, .related, .faq {
    max-width: 48rem;
}

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.code-sample {
    background: #1c2421;
    color: #f3efe6;
    border-radius: 14px;
    padding: 1rem;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 0.92rem;
}

/* Blog / long-form guides */
.article {
    max-width: 46rem;
    padding-bottom: 3rem;
}
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.article-crumb {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    color: var(--muted);
}
.article-crumb a {
    font-weight: 600;
    text-decoration: none;
}
.article-crumb a:hover {
    text-decoration: underline;
}
.article h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    line-height: 1.18;
    margin: 0 0 0.85rem;
    letter-spacing: -0.02em;
}
.article .lede {
    max-width: 40rem;
    font-size: 1.2rem;
}
.article-meta {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}
.article-body > * + * {
    margin-top: 1.15rem;
}
.article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    margin: 2.4rem 0 0.85rem;
    line-height: 1.25;
}
.article-body h3 {
    font-size: 1.12rem;
    margin: 1.75rem 0 0.55rem;
}
.article-body p,
.article-body li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
}
.article-body ul,
.article-body ol {
    padding-left: 1.25rem;
}
.article-body li + li {
    margin-top: 0.35rem;
}
.article-body .code-sample {
    margin: 1.25rem 0;
}
.article-note {
    margin: 1.5rem 0;
    padding: 0.95rem 1.1rem;
    background: rgba(15, 107, 92, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
}
.article-note p {
    margin: 0;
}
.article-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}
.article-table th,
.article-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.article-table th {
    background: rgba(15, 107, 92, 0.08);
    font-weight: 700;
}
.article-table tr:last-child td {
    border-bottom: 0;
}
.article-faq {
    margin-top: 2.5rem;
}
.article-faq details {
    border-top: 1px solid var(--line);
    padding: 0.85rem 0;
}
.article-faq details:last-child {
    border-bottom: 1px solid var(--line);
}
.article-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}
.article-faq details p {
    margin: 0.65rem 0 0;
    color: var(--muted);
}
.article-cta {
    margin: 2.75rem 0 0;
    padding: 1.35rem 1.4rem;
    border-radius: 16px;
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(15, 107, 92, 0.14), transparent 60%),
        linear-gradient(165deg, rgba(255, 252, 246, 0.98), rgba(231, 224, 210, 0.88));
    border: 1px solid var(--line);
}
.article-cta h2 {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
}
.article-cta p {
    margin: 0 0 1rem;
    color: var(--muted);
}
.article-related {
    margin-top: 2.25rem;
}
.article-related h2 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
}
.article-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}
.article-related a {
    font-weight: 600;
    text-decoration: none;
}
.article-related a:hover {
    text-decoration: underline;
}

.blog-index {
    max-width: 46rem;
    padding-bottom: 3rem;
}
.blog-index h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    margin: 0 0 0.65rem;
}
.blog-index-intro {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 38rem;
}
.blog-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}
.blog-post-card {
    display: block;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 252, 246, 0.9);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.blog-post-card:hover {
    border-color: rgba(15, 107, 92, 0.45);
    transform: translateY(-1px);
}
.blog-post-card h2 {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--ink);
}
.blog-post-card p {
    margin: 0;
    color: var(--muted);
}
.blog-post-card .blog-post-date {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.upload-status {
    margin-top: 1.25rem;
}
.convert-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    background:
        radial-gradient(420px 220px at 0% 0%, rgba(15, 107, 92, 0.12), transparent 60%),
        linear-gradient(165deg, rgba(255, 252, 246, 0.98), rgba(231, 224, 210, 0.9));
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    padding: 1.35rem 1.5rem;
    overflow: hidden;
    position: relative;
}
.convert-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    background-size: 220% 100%;
    animation: convert-sheen 3.2s ease-in-out infinite;
    pointer-events: none;
}
.convert-visual {
    position: relative;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
}
.convert-ring {
    position: relative;
    width: 132px;
    height: 132px;
}
.convert-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.convert-ring-track,
.convert-ring-progress {
    fill: none;
    stroke-width: 8;
}
.convert-ring-track { stroke: rgba(15, 107, 92, 0.14); }
.convert-ring-progress {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 0.45s ease;
    filter: drop-shadow(0 0 6px rgba(15, 107, 92, 0.25));
}
.convert-ring-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 0.1rem;
}
.convert-percent {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
}
.convert-page {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    min-height: 1.1em;
}
.convert-doc {
    position: absolute;
    right: -6px;
    bottom: -2px;
    width: 42px;
    height: 52px;
}
.convert-doc-sheet {
    position: absolute;
    inset: 0;
    border-radius: 6px 10px 6px 6px;
    background: linear-gradient(160deg, #fff, #efe8da);
    border: 1px solid rgba(15, 107, 92, 0.35);
    box-shadow: 0 8px 18px rgba(28, 36, 33, 0.12);
}
.convert-doc-sheet::before,
.convert-doc-sheet::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    border-radius: 999px;
    background: rgba(15, 107, 92, 0.28);
}
.convert-doc-sheet::before { top: 16px; }
.convert-doc-sheet::after { top: 24px; width: 55%; }
.convert-doc-scan {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(15, 107, 92, 0.55), transparent);
    animation: convert-scan 1.8s ease-in-out infinite;
}
.convert-copy { position: relative; z-index: 1; min-width: 0; }
.status-title {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.status-detail {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.status-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}
.status-steps li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.92rem;
    transition: color 0.25s ease, transform 0.25s ease;
}
.step-marker {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(92, 104, 98, 0.35);
    background: transparent;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.status-steps li.is-done { color: var(--muted); }
.status-steps li.is-done .step-marker {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: none;
}
.status-steps li.is-done .step-marker::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.status-steps li.is-active {
    color: var(--accent-dark);
    font-weight: 700;
    transform: translateX(2px);
}
.status-steps li.is-active .step-marker {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 107, 92, 0.12);
    animation: convert-pulse 1.4s ease-in-out infinite;
}
.status-error {
    color: var(--danger);
    font-weight: 700;
    margin: 0.85rem 0 0;
}
@keyframes convert-sheen {
    0% { background-position: 120% 0; }
    100% { background-position: -40% 0; }
}
@keyframes convert-scan {
    0% { top: 8px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 38px; opacity: 0; }
}
@keyframes convert-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.1); }
    50% { box-shadow: 0 0 0 7px rgba(15, 107, 92, 0.16); }
}
@media (max-width: 640px) {
    .convert-panel {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 1.25rem 1rem;
    }
    .convert-copy { width: 100%; }
    .status-steps li { justify-content: flex-start; text-align: left; }
    .status-steps li.is-active { transform: none; }
}

.result-header {
    display: grid;
    gap: 0.75rem;
}
.result-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.result-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}
.result-check {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(15, 107, 92, 0.14);
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.result-meta {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    word-break: break-word;
}
.result-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.15rem;
    padding: 0.7rem 0.95rem;
    background: rgba(15, 107, 92, 0.07);
    border: 1px solid rgba(15, 107, 92, 0.18);
    border-radius: 12px;
    font-size: 0.98rem;
}
.result-stats strong {
    color: var(--ink);
    font-weight: 700;
}
.result-details,
.headers-details {
    border: 0;
    background: transparent;
    padding: 0;
}
.result-details summary,
.headers-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.95rem;
    list-style: none;
}
.result-details summary::-webkit-details-marker,
.headers-details summary::-webkit-details-marker { display: none; }
.result-details summary::before,
.headers-details summary::before {
    content: "▸ ";
    color: var(--accent);
}
.result-details[open] summary::before,
.headers-details[open] summary::before {
    content: "▾ ";
}
.result-details[open] summary,
.headers-details[open] summary {
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.quality-report {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0;
    display: grid;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.quality-report li::before { content: "• "; color: var(--accent); }

.review-box {
    background: #fff8e8;
    border: 1px solid #e2c56b;
    border-radius: 14px;
    padding: 0.9rem 1.05rem;
}
.review-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #7a5b12;
}
.review-list,
.headers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    color: #5c4a1d;
    font-size: 0.98rem;
}
.headers-details {
    margin-top: 0.65rem;
}
.headers-list code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    word-break: break-word;
}

.more-exports {
    position: relative;
}
.more-exports summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font: inherit;
    font-weight: 700;
    color: var(--ink);
}
.more-exports summary::-webkit-details-marker { display: none; }
.more-exports summary::after {
    content: " ▾";
    color: var(--muted);
}
.more-exports-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 4;
    min-width: 12rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.more-exports-menu a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
}
.more-exports-menu a:hover {
    background: rgba(15, 107, 92, 0.08);
    color: var(--accent-dark);
}

.result-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
    align-items: stretch;
}
.pane {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 720px;
}
.pane-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}
.pane-toolbar h3 {
    margin: 0;
    font-size: 1.05rem;
}
.pdf-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.pdf-page-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    min-width: 5.5rem;
    text-align: center;
}
.btn-tiny {
    padding: 0.25rem 0.55rem;
    min-width: 2rem;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1;
}
.pdf-preview,
.output-view {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 12px;
}
.pdf-preview {
    background: #eef1ee;
    display: grid;
    place-items: start center;
    padding: 0.75rem;
}
.pdf-preview canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 24px rgba(28, 36, 33, 0.12);
}
.output-view {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    background: #1c2421;
    color: #f3efe6;
    padding: 1rem;
    font-size: 0.92rem;
}
.tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}
.tab-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.tab-group-assets {
    margin-left: auto;
    padding-left: 0.5rem;
}
.tab {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
}
.tab.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.images-gallery {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 12px;
    background: #fffdf8;
    border: 1px solid var(--line);
    padding: 1rem 1.1rem 1.15rem;
}
.images-gallery-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.images-gallery-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.images-gallery-empty {
    margin: 0.5rem 0 0;
    color: var(--muted);
}
.images-list {
    display: grid;
    gap: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.image-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
}
.image-item:first-child {
    border-top: 0;
    padding-top: 0;
}
.image-thumb-wrap {
    width: 132px;
    height: 96px;
    display: grid;
    place-items: center;
    background: #eef1ee;
    border-radius: 10px;
    overflow: hidden;
}
.image-thumb {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.image-meta {
    min-width: 0;
}
.image-name {
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}
.image-page {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.image-caption {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.image-actions {
    display: flex;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .image-item {
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .image-thumb-wrap {
        width: 100%;
        height: 140px;
    }
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 1rem;
}
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}
.site-footer nav a {
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 960px) {
    .tool-grid,
    .tool-grid-featured,
    .tool-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hero-grid,
    .compare,
    .result-split {
        grid-template-columns: 1fr;
    }
    .pane {
        height: 560px;
    }
    .tab-group-assets {
        margin-left: 0;
        padding-left: 0;
        width: 100%;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-title-row {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .tool-grid,
    .tool-grid-featured,
    .tool-grid-compact {
        grid-template-columns: 1fr;
    }
}
