```css
/* =========================================================
   PDF FIT — Shared Styles
   ========================================================= */

/* 1. CSS Variables */
:root {
    --ink: #101522;
    --muted: #667085;
    --line: #e7eaf0;
    --bg: #f7f8fb;
    --card: #fff;
    --accent: #5b5ce2;
    --shadow: 0 18px 50px rgba(16, 21, 34, .08);
}

/* 2. Global Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 3. Site Header and Navigation */
.site-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100% - 1160px) / 2));
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.brand {
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -.7px;
}

.brand span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 26px;
    font-size: 14px;
    color: #525b6d;
}

/* 4. Hero Sections */
.hero,
.tool-hero {
    max-width: 1160px;
    margin: auto;
    padding: 92px 24px 80px;
}

.hero {
    min-height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--accent);
    margin-bottom: 13px;
}

.hero h1,
.tool-hero h1 {
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -3.5px;
    margin: 0 0 22px;
    max-width: 820px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p,
.tool-hero > p {
    font-size: 19px;
    color: var(--muted);
    max-width: 670px;
    margin: 0 0 28px;
}

.tool-hero {
    padding-top: 70px;
}

/* 5. Buttons and Hero Actions */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    border-radius: 11px;
    padding: 13px 20px;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary {
    background: var(--accent);
    color: #fff;
}

.secondary {
    background: #fff;
    border: 1px solid var(--line);
}

.full {
    width: 100%;
    margin-top: 20px;
}

/* 6. General Content Sections */
.section {
    max-width: 1160px;
    margin: auto;
    padding: 82px 24px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 34px;
}

.section-head h2,
.feature-band h2,
.faq h2,
.content-section h2 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0;
}

.section-head p {
    max-width: 400px;
    color: var(--muted);
}

/* 7. PDF Tool Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    min-height: 190px;
    box-shadow: 0 8px 28px rgba(16, 21, 34, .03);
    transition: .2s;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tool-card b {
    font-size: 25px;
    color: var(--accent);
}

.tool-card h3 {
    margin: 12px 0 4px;
    font-size: 20px;
}

.tool-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 18px;
}

.tool-card span {
    font-size: 13px;
    font-weight: 750;
    color: var(--accent);
}

/* 8. Feature Band */
.feature-band {
    background: #111522;
    color: #fff;
    padding: 80px max(24px, calc((100% - 1160px) / 2));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.feature-band p {
    color: #aeb5c5;
    max-width: 520px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature-list div {
    padding: 18px 0;
    border-bottom: 1px solid #2b3040;
    display: flex;
    gap: 15px;
}

.feature-list strong {
    color: #858cff;
}

.feature-list span {
    font-weight: 650;
}

/* 9. FAQ Section */
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    padding: 18px 20px;
    margin-top: 10px;
    border-radius: 12px;
}

.faq summary {
    font-weight: 750;
    cursor: pointer;
}

.faq details p {
    color: var(--muted);
}

/* 10. Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 35px max(24px, calc((100% - 1160px) / 2));
    background: #fff;
    color: var(--muted);
    font-size: 13px;
}

/* 11. PDF Upload Workspace */
.workspace {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin-top: 35px;
    max-width: 900px;
}

.dropzone {
    border: 2px dashed #d8dce7;
    border-radius: 17px;
    padding: 45px 20px;
    text-align: center;
}

.drop-icon {
    font-size: 35px;
    color: var(--accent);
    font-weight: 300;
}

.dropzone h2 {
    margin: 6px 0;
    font-size: 22px;
}

.dropzone p {
    color: var(--muted);
    margin: 0 0 18px;
}

.dropzone input {
    display: none;
}

/* 12. File List and Status */
.file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 9px;
    background: #fafbfc;
}

.file-row span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove {
    border: 0;
    background: none;
    color: #a33;
    cursor: pointer;
}

.status {
    margin-top: 15px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.status.error {
    color: #a33;
}

.status.success {
    color: #3b6b45;
}

/* 13. Content and Article Sections */
.content-section {
    max-width: 900px;
    margin: auto;
    padding: 0 24px 90px;
}

.content-section h2 {
    margin-top: 45px;
}

.content-section li,
.content-section p {
    color: #596274;
}

.article {
    max-width: 820px;
    margin: auto;
    padding: 70px 24px 100px;
}

.article h1 {
    font-size: 54px;
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.article-intro {
    font-size: 20px;
    color: var(--muted);
}

.article h2 {
    margin-top: 40px;
}

.article p {
    color: #596274;
}

/* 14. Coming Soon Message */
.coming {
    margin-top: 15px;
    padding: 15px;
    background: #f5f6ff;
    border-radius: 10px;
    color: #545b83;
    font-size: 14px;
}

/* 15. Page Selection Controls */
.page-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.page-chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    padding: 9px 12px;
    cursor: pointer;
    color: #4c5668;
}

.page-chip.selected {
    background: #eef0ff;
    border-color: #7377ee;
    color: #3639a8;
    font-weight: 750;
}

.angle-row {
    display: flex;
    gap: 9px;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* 16. PDF Editor Layout */
.editor-shell {
    max-width: 1180px;
    margin: auto;
    padding: 55px 24px 90px;
}

.editor-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 28px;
}

.editor-top h1 {
    font-size: 46px;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 0 0 12px;
}

.editor-top p {
    color: var(--muted);
    margin: 0;
}

.workspace-empty {
    background: #fff;
    border: 1px dashed #cfd4e1;
    border-radius: 22px;
    padding: 90px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.workspace-empty p {
    margin-bottom: 20px;
}

.workspace-upload-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.toolbar-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.selection-badge {
    background: #eef0ff;
    color: #4448b8;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 800;
}

/* 17. Editor Help Bar */
.workspace-help {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 11px 20px;
    background: #fafbfc;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: #697386;
}

/* 18. Editor Panel and Toolbar */
.editor-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.editor-hint {
    color: var(--muted);
    font-size: 13px;
    margin-left: 8px;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 19. PDF Page Thumbnails */
.workspace-thumbs {
    min-height: 180px;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    padding: 22px;
    background: #f4f5f8;
}

.thumb {
    border: 2px solid transparent;
    border-radius: 13px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.thumb.chosen {
    border-color: #6a6eea;
}

.thumb.dragging {
    opacity: .45;
    transform: scale(.98);
}

.thumb.drag-over {
    border-color: #7377ee;
    box-shadow: 0 0 0 3px rgba(91, 92, 226, .14);
}

.thumb.last-focus {
    box-shadow: 0 0 0 2px rgba(91, 92, 226, .18);
}

.thumb-page {
    touch-action: none;
    border: 0;
    background: #eef0f4;
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
}

.thumb-page img {
    max-width: 86%;
    max-height: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    transition: .2s;
}

.page-number {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #fff;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 800;
}

.thumb-check {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dfe2ea;
    color: #4c51c7;
    font-weight: 900;
    font-size: 13px;
    line-height: 20px;
}

.chosen .thumb-check {
    background: #5b5ce2;
    border-color: #5b5ce2;
    color: #fff;
}

.thumb-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 2px 1px;
    font-size: 12px;
}

.thumb-meta > span {
    min-width: 0;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thumb-meta div {
    display: flex;
    gap: 3px;
}

.thumb-meta button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    width: 25px;
    height: 24px;
}

.thumb-actions {
    display: flex;
    gap: 3px;
}

.meta-input {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font: inherit;
}

/* 20. Guide Cards */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 35px;
}

.guide-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 25px;
}

.guide-card b {
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.guide-card h2 {
    font-size: 21px;
    margin: 10px 0;
}

.guide-card p,
.lead {
    color: var(--muted);
}

/* 21. Analytics Dashboard */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.analytics-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 20px;
}

.analytics-card h2 {
    margin-top: 0;
}

.analytics-card div {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

/* 22. Advertisement Placeholder */
.ad-slot {
    min-height: 90px;
    border: 1px dashed #d6d9e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa1b2;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ad-slot span {
    opacity: .8;
}

/* =========================================================
   PDF FIT — Responsive Navigation
   ========================================================= */

/* 23. Brand Logo and Header Enhancements */
.brand {
    display: inline-flex;
    align-items: center;
    min-width: 132px;
}

.brand-logo {
    display: block;
    width: 146px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.site-header {
    gap: 18px;
}

/* 24. Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav-toggle:focus-visible {
    outline: 3px solid #a5a6ff;
    outline-offset: 2px;
}

.mobile-nav-toggle .hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle .hamburger-lines span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 3px;
}

.site-header nav a {
    padding: 8px 0;
}

.site-header nav a:hover {
    color: var(--accent);
}

/* =========================================================
   25. Responsive Styles — Screens Up to 760px
   ========================================================= */

@media (max-width: 760px) {

    /* Header and Navigation */
    .site-header {
        height: auto;
        min-height: 68px;
        position: sticky;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .brand-logo {
        width: 132px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    nav {
        display: none;
    }

    .site-header nav {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        padding: 10px 0 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-header nav.is-open {
        display: flex;
    }

    .site-header nav a {
        display: block;
        padding: 12px 8px;
        border-top: 1px solid var(--line);
    }

    .site-header nav a:focus {
        outline-offset: -2px;
    }

    /* Hero and Main Sections */
    .hero,
    .tool-hero {
        padding-top: 60px;
    }

    .hero h1,
    .tool-hero h1 {
        letter-spacing: -2.3px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .feature-band {
        display: block;
    }

    .feature-list {
        margin-top: 35px;
    }

    .feature-band {
        padding: 65px 24px;
    }

    /* Upload Workspace */
    .workspace {
        padding: 15px;
    }

    .dropzone {
        padding: 42px 12px;
    }

    .workspace-upload-actions {
        margin-top: 18px;
    }

    .workspace-upload-actions .btn {
        width: auto;
    }

    /* PDF Editor */
    .editor-top {
        display: block;
    }

    .editor-top .btn {
        margin-top: 18px;
    }

    .workspace-help {
        display: none;
    }

    .thumb-grid.workspace-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .thumb-meta {
        display: block;
    }

    .thumb-actions {
        margin-top: 5px;
    }

    .thumb-actions button {
        flex: 1;
    }

    .toolbar-summary {
        margin-bottom: 8px;
    }

    .toolbar-actions {
        width: 100%;
    }

    .editor-toolbar {
        display: block;
    }

    .toolbar-actions {
        margin-top: 12px;
    }

    /* Guides and Analytics */
    .guide-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* 26. Drag-and-Drop Workspace State */
.file-dragging .workspace-empty,
.file-dragging .editor-panel {
    outline: 3px dashed #6a6eea;
    outline-offset: 4px;
}


