:root {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #10214a;
    background: #f5f7fb;
    --blue: #0967ea;
    --blue-hover: #075bd1;
    --navy: #10214a;
    --muted: #687b98;
    --line: #dfe8f3;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --success: #07884b;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 105px; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }

/* GLOBAL LAYOUT */
.site-header {
    position: sticky; top: 0; z-index: 1000; flex-shrink: 0;
    height: 88px; display: flex; align-items: center;
    padding: 0 clamp(28px, 5vw, 100px);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(223,232,243,.75);
    box-shadow: 0 4px 20px rgba(16,33,74,.04);
}
.site-brand { margin-right: auto; min-width: 0; }
.site-brand-title { display: flex; align-items: baseline; white-space: nowrap; line-height: .95; }
.brand-easy, .brand-pdf { font-size: 42px; font-weight: 850; letter-spacing: -3px; }
.brand-easy { color: var(--blue); }
.brand-pdf { color: var(--navy); }
.brand-privacy {
    margin-left: 14px; color: #172033;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px; font-style: italic; font-weight: 400; letter-spacing: 0;
}
.site-brand small { display: block; margin-top: 8px; color: #72829d; font-size: 12px; letter-spacing: 1.6px; }

/* Mobile Menu Toggle - Hidden by default on desktop */
.mobile-menu-toggle {
    display: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #60728f;
    font-size: 20px;
}

    .site-nav > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .site-nav > a:not(.site-header-cta):hover {
            color: var(--blue);
        }



.site-header-cta, .hero-cta {
    min-height: 42px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(9, 103, 234, .22);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .site-header-cta:hover {
        background: var(--blue-hover);
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 14px 32px rgba(9, 103, 234, .28);
    }

.site-main { width: min(1320px, calc(100% - 32px)); margin: auto; flex: 1 0 auto; }
.home-page .site-main, .tool-page .site-main { width: 100%; max-width: none; margin: 0; padding-left: 0; padding-right: 0; }

/* MODERN FOOTER */
.site-footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    background: #2d2d3d;
    color: #e0e0e0;
    font-size: 14px;
    border-top: 1px solid #444;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px clamp(28px, 5vw, 100px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 48px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: #b3b3b3;
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links li a:hover {
    color: var(--blue);
}

/* App Store Buttons */
.footer-apps {
    grid-column: span 1;
}

.app-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.app-store-btn:hover {
    border-color: var(--blue);
    background: rgba(9, 103, 234, 0.1);
}

.app-store-btn span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-store-btn small {
    color: #999;
    font-size: 10px;
    font-weight: 400;
}

.app-store-btn strong {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #555, transparent);
    margin: 40px 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-language {
    flex: 0 0 auto;
}

.language-selector-footer {
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #2d2d3d;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector-footer:hover {
    border-color: var(--blue);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #b3b3b3;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: rgba(9, 103, 234, 0.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Copyright */
.footer-copyright {
    flex: 1;
    text-align: right;
    color: #999;
    font-size: 12px;
}

.footer-copyright p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 40px clamp(20px, 4vw, 28px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
        flex: 1 0 100%;
        order: 3;
    }

    .footer-language {
        order: 1;
    }

    .footer-social {
        order: 2;
        justify-content: center;
        width: 100%;
    }
}


/* =========================================================
   EASY PDF - HOME HERO / FULL-WIDTH ULTRAWIDE
   ========================================================= */
.privacy-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    height: calc(100svh - 88px);
    min-height: 720px;
    max-height: 980px;
    display: flex;
    justify-content: center;
    color: var(--navy);
    background: #e9f4ff;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    object-position: center 59%;
    width: 100%;
    height: 100%;
    background-color: #e9f4ff;
    animation: heroImageLoad .3s ease-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.91) 13%,
            rgba(255,255,255,.48) 27%,
            rgba(255,255,255,.08) 43%,
            rgba(255,255,255,0) 69%,
            rgba(255,255,255,.28) 86%,
            #fff 100%),
        radial-gradient(ellipse at 50% 23%,
            rgba(255,255,255,.95) 0,
            rgba(255,255,255,.50) 35%,
            transparent 58%);
}

.hero-message {
    position: relative;
    z-index: 3;
    width: min(1000px, 92vw);
    padding-top: 26px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border: 1px solid #cfe4fd;
    border-radius: 999px;
    background: rgba(239,247,255,.90);
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.hero-message h1 {
    margin: 14px 0 0;
    color: var(--navy);
    font-size: clamp(46px, 4vw, 68px);
    font-weight: 850;
    line-height: .95;
    letter-spacing: -3.6px;
}

.hero-message h1 strong {
    display: block;
    color: var(--blue);
    font-weight: 850;
}

.hero-message > p {
    max-width: 760px;
    margin: 15px auto 0;
    color: #526b8b;
    font-size: 15px;
    line-height: 1.5;
}

.hero-message > p span { display: block; }

.hero-message .hero-cta {
    min-height: 48px;
    margin-top: 18px;
    padding: 0 25px;
}

.hero-message .hero-cta:hover {
    background: var(--blue-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(9,103,234,.28);
}

.hero-trust {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%);
    width: min(1220px, 92vw);
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 22px;
    padding: 15px 18px;
    border: 1px solid rgba(216,231,247,.76);
    border-radius: 20px;
    background: rgba(255,255,255,.74);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    box-shadow: 0 18px 45px rgba(21,67,119,.08);
}

.hero-trust article,
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hero-trust-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e8fb;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(28,76,133,.06);
}

    .hero-trust-icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }





.hero-trust strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
}

.hero-trust small {
    display: block;
    margin-top: 5px;
    color: #71819b;
    font-size: 11px;
    line-height: 1.4;
}

/* ========= FADE-IN SUAVE PARA i18n - APENAS TEXTO (500ms) ========= */
/* Imagem de fundo aparece LOGO (sem delay) */
.hero-background {
    opacity: 1; /* Sempre visível imediatamente */
}

/* APENAS o TEXTO começa invisível */
.hero-eyebrow[data-i18n],
.hero-message h1 span[data-i18n],
.hero-message h1 strong[data-i18n],
.hero-message > p span[data-i18n],
.hero-trust strong[data-i18n],
.hero-trust small[data-i18n] {
    opacity: 0;
    transition: opacity 500ms ease-in-out;
}

/* Após i18n traduzir, apenas TEXTO faz fade in */
.hero-eyebrow.i18n-translated,
.hero-message h1 span.i18n-translated,
.hero-message h1 strong.i18n-translated,
.hero-message > p span.i18n-translated,
.hero-trust strong.i18n-translated,
.hero-trust small.i18n-translated {
    opacity: 1;
}

@media (min-width: 1800px) {
    .hero-background { background-position: center 58%; }
    .hero-message { padding-top: 34px; }
    .hero-message h1 { font-size: 68px; }
}

@media (max-width: 1050px) {
    .privacy-hero { min-height: 700px; }
    .hero-background { background-size: auto 100%; background-position: center 57%; }
    .hero-message h1 { font-size: clamp(42px,7vw,58px); }
    .hero-trust { grid-template-columns: repeat(2,minmax(0,1fr)); max-width:680px; }
}

@media (max-width: 600px) {
    .privacy-hero { position:static; display:block; height:auto; min-height:auto; max-height:none; padding:0; overflow:visible !important; background:#e9f4ff; }
    .hero-background { display:none; }
    .hero-overlay { display:none; }
    .hero-message { width:94vw; padding-top:40px; padding-bottom:40px; margin:0 auto; }
    .hero-eyebrow { font-size:8px; letter-spacing:1.3px; }
    .hero-message h1 { font-size:39px; line-height:1; letter-spacing:-2.1px; }
    .hero-message > p { padding:0 12px; font-size:13px; }
    .hero-message > p span { display:inline; }
    .hero-message .hero-cta { min-height:48px; padding:0 22px; font-size:13px; }
    .hero-trust { position:static !important; left:auto !important; transform:none !important; z-index:auto !important; bottom:auto !important; margin:30px auto 0 !important; grid-template-columns:1fr; width:min(350px,92vw); gap:10px; padding:12px; }
    .hero-trust-icon { width:36px; height:36px; flex-basis:36px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-message .hero-cta { transition:none !important; }
}

/* HOME TOOLS */
.tools-intro { padding: 70px max(24px,calc((100vw - 1320px)/2)) 10px; background: var(--surface-soft); }
.tools-intro small { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.tools-intro h2 { margin: 7px 0; font-size: 30px; letter-spacing: -1px; }
.tools-intro p { margin: 0; color: #7b8ba2; font-size: 13px; }
.tools-container { padding: 20px max(16px,calc((100vw - 1320px)/2)) 60px; background: var(--surface-soft); }
.home-page .tools-intro { padding-left: clamp(24px,3vw,56px); padding-right: clamp(24px,3vw,56px); }
.home-page .tools-container { width: 100%; padding-left: clamp(20px,3vw,56px); padding-right: clamp(20px,3vw,56px); }
.home-page .tools-container .category { width: 100%; max-width: none; }
.home-page .tools-container .grid { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }

/* TOOL CARDS / CATEGORIES */
.category { background: #fff; border: 1px solid #dde4ee; border-radius: 20px; padding: 24px; margin: 24px 0; }
.category h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; }
.grid a, .tool-link {
    display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem;
    border: 1px solid #dde4ee; border-radius: 13px; background: #fff; text-decoration: none; color: inherit; transition: .25s;
}
.grid a:hover, .tool-link:hover { border-color: #7ca2f7; background: #f7faff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(25,61,105,.09); }
.grid a.tool-link-disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }
.tool-icon { font-size: 2.5rem; line-height: 1; }
.tool-link h3 { margin: 0; font-size: 1.1rem; text-align: center; }
.tool-link p, .grid p, .lead, #status { margin: 0; color: #667085; font-size: .9rem; text-align: center; }
.home-page .tools-container .tool-badges { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; justify-content: center; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-disabled { background: #fef3f2; color: #b42318; border: 1px solid #fbd2cb; }
.badge-beta { background: #f3f0ff; color: #6b21a8; border: 1px solid #d8b4fe; }

/* TOOL PAGE SHELL */
.tool-page-header {
    padding: 34px clamp(24px,5vw,90px) 42px;
    background: radial-gradient(circle at 65% 50%,rgba(76,157,255,.12),transparent 40%),linear-gradient(180deg,#fff,#f7fbff);
    border-bottom: 1px solid #e7eef7;
}
.tool-page-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.tool-back { display: inline-flex; align-items: center; gap: 9px; color: #637693; font-size: 13px; font-weight: 650; transition: .2s ease; }
.tool-back:hover { color: var(--blue); }
.tool-back span { font-size: 17px; }
.tool-privacy-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #d8e8fa; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.tool-privacy-badge svg, .tool-title-icon svg, .drop-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-privacy-badge svg { width: 17px; height: 17px; }
.tool-title-row { display: flex; align-items: center; gap: 22px; }
.tool-title-icon { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border: 1px solid #d7e7fb; border-radius: 18px; background: #fff; color: var(--blue); box-shadow: 0 12px 35px rgba(28,76,133,.08); }
.tool-title-icon svg { width: 31px; height: 31px; }
.tool-title-row h1 { margin: 0; font-size: clamp(34px,3vw,48px); line-height: 1.05; letter-spacing: -2px; color: var(--navy); }
.tool-title-row p { max-width: 650px; margin: 9px 0 0; color: #697c99; font-size: 14px; line-height: 1.6; }
.tool-trust { display: flex; gap: 28px; margin-top: 29px; margin-left: 88px; color: #536987; font-size: 12px; }
.tool-trust span { display: flex; align-items: center; gap: 8px; }
.tool-trust b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #d9f5e7; color: var(--success); font-size: 12px; }
.tool-workspace { width: 100%; padding: 38px clamp(24px,5vw,90px) 65px; background: var(--surface-soft); }
.panel { background: #fff; border: 1px solid #dde4ee; border-radius: 18px; padding: 24px; margin: 20px 0 50px; }
.tool-panel { width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(28,64,105,.06); }

/* FILE DROP / OPTIONS / PREVIEW */
.drop { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 2px dashed #9bafd0; border-radius: 14px; background: #f8fbff; cursor: pointer; }
.drop.drag { border-color: #2563eb; background: #eef4ff; }
.drop input { display: none; }
.tool-panel .drop { min-height: 210px; height: auto; padding: 30px; border-color: #b7cce6; border-radius: 16px; background: linear-gradient(180deg,#fbfdff,#f5f9ff); transition: .2s ease; }
.tool-panel .drop:hover { border-color: #4388e9; background: #f3f8ff; }
.tool-panel .drop.drag { border-color: var(--blue); background: #eef5ff; transform: scale(1.003); }
.drop-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 15px; background: #eaf3ff; color: var(--blue); }
.drop-icon svg { width: 27px; height: 27px; }
.tool-panel .drop strong { margin-top: 3px; color: var(--navy); font-size: 16px; }
.tool-panel .drop > span:not(.drop-icon) { color: #788ba7; font-size: 12px; }
.tool-panel .drop small { margin-top: 7px; color: #94a2b5; font-size: 10px; }
.options { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; margin: 18px 0; }
.options label { font-size: 13px; font-weight: 700; }
.options input, .options select, .options textarea { display: block; width: 100%; margin-top: 5px; padding: 10px; border: 1px solid #cfd8e5; border-radius: 8px; }
.options textarea { min-height: 120px; }
.pages { display: grid; grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 12px; margin: 18px 0; }
.page { padding: 8px; border: 2px solid transparent; border-radius: 10px; background: #f5f7fa; cursor: pointer; }
.page.sel { border-color: #2563eb; outline: 2px solid #2563eb; outline-offset: 1px; }
.page[aria-selected="true"] { background: #edf3ff; }
.page canvas { width: 100%; display: block; background: #fff; }
.page span { font-size: 12px; color: #667085; }
.page.error { min-height: 145px; display: flex; align-items: center; justify-content: center; padding: 12px; border-color: #f97066; background: #fef3f2; color: #b42318; font-weight: 600; text-align: center; cursor: not-allowed; }
.tools { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
button { border: 0; border-radius: 9px; padding: 12px 17px; background: #2563eb; color: #fff; font-weight: 800; cursor: pointer; }
button:disabled { opacity: .5; }
.tools button { padding: 8px 10px; border: 1px solid #ccd7e7; background: #fff; color: #2563eb; }
.tool-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.tool-run { min-width: 220px; padding: 14px 22px; border-radius: 11px; background: var(--blue); box-shadow: 0 10px 25px rgba(9,103,234,.20); font-size: 13px; }
.tool-run:hover:not(:disabled) { background: var(--blue-hover); transform: translateY(-1px); }
.tool-run:disabled { box-shadow: none; }
.selection-help { margin: 8px 0; color: #667085; font-size: 12px; }
.progress-wrap { margin: 14px 0; padding: 12px; background: #f7f9fc; border: 1px solid #dce4ef; border-radius: 10px; }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 7px; color: #475467; font-size: 13px; }
.progress-wrap progress { width: 100%; height: 12px; accent-color: #2563eb; }
.hidden { display: none !important; }
.error, .status-error { color: #b42318 !important; }
.status-success { color: #067647 !important; }
.is-busy { cursor: wait; }
.is-busy button { pointer-events: none; }
video#camera { max-width: 100%; margin-top: 12px; border-radius: 12px; background: #111; }
.instructions-overview { padding: 1rem; margin-bottom: 1rem; border-left: 4px solid #0066cc; border-radius: 4px; background: #f0f8ff; }
.instructions-steps { padding-left: 1.5rem; margin: 1rem 0; }
.instructions-steps li { margin-bottom: .5rem; line-height: 1.6; }
.instructions-tips { padding: 1rem; margin-top: 1rem; border-left: 4px solid #ffb300; border-radius: 4px; background: #fff9e6; }
.tip { margin: 0; font-style: italic; }

/* LAZY LOADING */
@keyframes loadingPulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pulseOpacity { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.category-loading .tool-placeholder { background: linear-gradient(90deg,#e8e8e8 25%,#f0f0f0 50%,#e8e8e8 75%); background-size: 200% 100%; animation: loadingPulse 1.5s infinite; cursor: wait; opacity: .7; }
.tool-placeholder span { font-size: 2rem; animation: pulseOpacity 1.5s ease-in-out infinite; }

/* RESPONSIVE */
@media (min-width:1600px) {
    .home-page .tools-container .grid { grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 18px; }
}
@media (min-width:1800px) {
    .hero-benefit:first-of-type { margin-top: 255px; }
    .hero-benefit h2 { font-size: 17px; }
    .hero-benefit p { max-width: 210px; font-size: 14px; }
    .hero-benefit-icon { width: 52px; height: 52px; }
    .hero-benefit-icon svg { width: 26px; height: 26px; }
    .privacy-hero { grid-template-columns: 19% 50% 31%; }
    .hero-visual img { max-width: 1120px; }
    .hero-message { padding-top: 20px; }
    .hero-message h1 { font-size: 64px; }
    .hero-checks { margin-top: 66px; }
    .hero-checks li { font-size: 17px; }
}
@media (max-width:1250px) and (min-width:1051px) {
    .hero-message h1 { font-size: 43px; }
    .hero-visual img { width: 120%; }
}
@media (max-width:1050px) {
    /* Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 3px;
        background: var(--navy);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Mobile Menu */
    .site-nav {
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        display: flex !important;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(223, 232, 243, 0.75);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-nav.open {
        max-height: 400px;
    }

    .site-nav > a {
        padding: 16px 24px;
        border-bottom: 1px solid rgba(223, 232, 243, 0.5);
        font-size: 16px;
    }

    .site-nav .site-header-cta {
        margin: 12px 24px;
        border-radius: 8px;
    }

    .site-nav .language-selector {
        padding: 12px 24px;
        border-top: 1px solid rgba(223, 232, 243, 0.5);
    }

    .brand-easy, .brand-pdf { font-size: 34px; }
    .brand-privacy { margin-left: 10px; font-size: 16px; }
    .site-brand small { margin-top: 5px; font-size: 10px; }
    .privacy-hero { grid-template-columns: 1fr; align-items: center; padding: 45px 7%; }
    .hero-message { order: 1; align-self: auto; padding: 0; text-align: center; }
    .hero-message h1, .hero-message h1 strong { white-space: normal; }
    .hero-message > p { margin-left: auto; margin-right: auto; }
    .hero-checks { width: max-content; margin: 32px auto; }
    .hero-cta { margin: auto; }
    .hero-visual { order: 2; min-height: 520px; }
    .hero-visual img { width: 115%; }
    .hero-benefits { order: 3; height: auto; }
    .hero-eyebrow { position: static; display: block; width: max-content; margin: 0 auto 26px; }
    .hero-benefit, .hero-benefit:first-of-type { max-width: 390px; margin: 20px auto; }
    .site-footer { flex-direction: column; text-align: center; }
    .tools-container { padding-left: 16px; padding-right: 16px; }
    .tool-trust { margin-left: 0; flex-wrap: wrap; }
}
@media (max-width:600px) {
    .site-header { height: 76px; padding: 0 20px; }
    .brand-easy, .brand-pdf { font-size: 29px; letter-spacing: -2.2px; }
    .brand-privacy { margin-left: 8px; font-size: 14px; }
    .site-brand small { margin-top: 4px; font-size: 9px; letter-spacing: 1px; }
    .site-header-cta { padding: 12px; font-size: 0; }
    .site-header-cta span { font-size: 15px; }
    .privacy-hero { min-height: auto; padding: 38px 20px; }
    .hero-message h1 { font-size: 41px; }
    .hero-message > p { font-size: 14px; }
    .hero-visual { min-height: 340px; }
    .hero-visual img { width: 135%; }
    .local-processing { bottom: 13px; font-size: 7px; }
    .home-page .tools-intro { padding: 50px 18px 8px; }
    .home-page .tools-container { padding: 14px 12px 45px; }
    .home-page .tools-container .grid { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; }
    .site-main { width: calc(100% - 24px); }
    .home-page .site-main, .tool-page .site-main { width: 100%; }
    .site-footer { padding: 22px 20px; }
    .tool-page-header { padding: 24px 20px 30px; }
    .tool-page-top { margin-bottom: 26px; }
    .tool-privacy-badge { font-size: 8px; }
    .tool-title-row { align-items: flex-start; gap: 15px; }
    .tool-title-icon { width: 54px; height: 54px; flex-basis: 54px; border-radius: 15px; }
    .tool-title-icon svg { width: 26px; height: 26px; }
    .tool-title-row h1 { font-size: 34px; letter-spacing: -1.5px; }
    .tool-title-row p { font-size: 13px; }
    .tool-trust { gap: 10px 16px; margin-top: 24px; font-size: 11px; }
    .tool-workspace { padding: 24px 14px 42px; }
    .tool-panel { padding: 18px; border-radius: 16px; }
    .tool-panel .drop { min-height: 185px; padding: 22px 14px; }
    .tool-actions { justify-content: stretch; }
    .tool-run { width: 100%; }
}

/* =========================================================
   HERO MOTION
   Apenas animações adicionadas à versão fornecida pelo utilizador.
   ========================================================= */
.hero-visual img {
    animation: heroComputerFloat 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes heroComputerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-visual-glow {
    animation: heroGlowPulse 5s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: .65; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes heroImageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-benefit {
    opacity: 0;
    transform: translateX(-14px);
    animation: benefitEnter .65s ease-out forwards;
}

.hero-benefit:nth-of-type(1) { animation-delay: .20s; }
.hero-benefit:nth-of-type(2) { animation-delay: .35s; }
.hero-benefit:nth-of-type(3) { animation-delay: .50s; }

@keyframes benefitEnter {
    to { opacity: 1; transform: translateX(0); }
}

.hero-benefit-icon {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.hero-benefit h2 {
    transition: color .25s ease, transform .25s ease;
}

.hero-benefit:hover .hero-benefit-icon {
    transform: translateY(-3px) scale(1.05);
    border-color: #b9d6fb;
    background: #f5f9ff;
    box-shadow: 0 12px 30px rgba(9,103,234,.14);
}

.hero-benefit:hover h2 {
    color: var(--blue);
    transform: translateX(2px);
}

.hero-checks li {
    opacity: 0;
    transform: translateX(14px);
    animation: checkEnter .6s ease-out forwards;
}

.hero-checks li:nth-child(1) { animation-delay: .45s; }
.hero-checks li:nth-child(2) { animation-delay: .60s; }
.hero-checks li:nth-child(3) { animation-delay: .75s; }

@keyframes checkEnter {
    to { opacity: 1; transform: translateX(0); }
}

.hero-checks li span {
    transform: scale(.7);
    animation: checkPop .35s ease-out forwards;
}

.hero-checks li:nth-child(1) span { animation-delay: .65s; }
.hero-checks li:nth-child(2) span { animation-delay: .80s; }
.hero-checks li:nth-child(3) span { animation-delay: .95s; }

@keyframes checkPop {
    to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual img,
    .hero-visual-glow,
    .hero-benefit,
    .hero-benefit-icon,
    .hero-benefit h2,
    .hero-checks li,
    .hero-checks li span {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* =========================================================
   HOME TOOL FILTERS
   ========================================================= */
.home-page .tools-intro {
    position: relative;
    padding-top: 58px;
    padding-bottom: 26px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(89,159,255,.08), transparent 46%),
        var(--surface-soft);
}

.home-page .tools-intro h2 {
    margin: 9px 0 8px;
    color: var(--navy);
    font-size: clamp(28px, 2.2vw, 38px);
    line-height: 1.08;
    letter-spacing: -1.6px;
}

.home-page .tools-intro p {
    max-width: 640px;
    margin: 0 auto;
    color: #71819b;
    font-size: 14px;
    line-height: 1.5;
}

.tool-filters {
    width: min(980px, 100%);
    margin: 27px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    flex-wrap: wrap;
}

.tool-filter {
    min-width: 128px;
    min-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #dbe6f3;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #203354;
    box-shadow: 0 6px 18px rgba(22,65,115,.045);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tool-filter:hover {
    color: var(--blue);
    border-color: #b6d5fc;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(9,103,234,.09);
}

.tool-filter.is-active,
.tool-filter[aria-pressed="true"] {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 11px 25px rgba(9,103,234,.22);
}

.tool-filter.is-active:hover,
.tool-filter[aria-pressed="true"]:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    color: #fff;
}

.tool-filter:focus-visible {
    outline: 3px solid rgba(9,103,234,.22);
    outline-offset: 3px;
}

.home-page .tools-container {
    padding-top: 6px;
}

.home-page .tools-container .category[hidden] {
    display: none !important;
}

@media (max-width: 780px) {
    .home-page .tools-intro {
        padding-top: 44px;
        padding-bottom: 20px;
    }

    .tool-filters {
        width: 100%;
        margin-top: 22px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 3px 2px 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tool-filters::-webkit-scrollbar { display: none; }

    .tool-filter {
        flex: 0 0 auto;
        min-width: auto;
        min-height: 42px;
        padding: 0 18px;
    }
}

@media (max-width: 600px) {
    .home-page .tools-intro {
        padding: 42px 18px 16px;
    }

    .home-page .tools-intro h2 {
        font-size: 29px;
        letter-spacing: -1.2px;
    }

    .home-page .tools-intro p {
        font-size: 13px;
    }

    .home-page .tools-container {
        padding-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tool-filter {
        transition: none !important;
    }
}


/* =========================================================
   HOME TOOL FILTERS - CTA STYLE ALIGNMENT
   ========================================================= */
.tool-filter {
    min-width: 128px;
    min-height: 48px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #d8e5f4;
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 5px 14px rgba(16, 33, 74, .045);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tool-filter:hover {
    background: #fff;
    color: var(--blue);
    border-color: #a9caf5;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(9, 103, 234, .10);
}

.tool-filter.is-active,
.tool-filter[aria-pressed="true"] {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 28px rgba(9, 103, 234, .22);
}

.tool-filter.is-active:hover,
.tool-filter[aria-pressed="true"]:hover {
    border-color: var(--blue-hover);
    background: var(--blue-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(9, 103, 234, .28);
}

.tool-filter:focus-visible {
    outline: 3px solid rgba(9, 103, 234, .22);
    outline-offset: 3px;
}

@media (max-width: 780px) {
    .tool-filter {
        flex: 0 0 auto;
        min-width: auto;
        min-height: 48px;
        padding: 0 22px;
    }
}

/* LANGUAGE SELECTOR */
.language-selector {
    display: flex;
    align-items: center;
}

.language-selector select {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--navy);
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-selector select:hover {
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(9, 103, 234, 0.1);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(9, 103, 234, 0.1);
}

@media (max-width: 786px) {
    .language-selector select {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* =========================================================
   TOOL PAGES - FULL WIDTH OVERRIDE
   ========================================================= */
body.tool-page .site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.tool-page .tool-detail-page {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.tool-page .tool-detail-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
}

/* =========================================================
   EASY PDF - TOOL DETAIL LAYOUT
   ========================================================= */

.tool-detail-page {
    width: 100%;
    min-height: 100%;
    padding: 18px 3% 48px;
    background: radial-gradient(circle at 8% 5%, rgba(9,103,234,.035), transparent 24%), #f7faff;
}

.tool-detail-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 26px 30px 30px;
    border: 1px solid #dce6f2;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 35px rgba(16,33,74,.025);
}


/* ---------------------------------------------------------
   BACK
   --------------------------------------------------------- */

.tool-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease, transform .2s ease;
}

    .tool-detail-back:hover {
        color: var(--blue-hover);
        transform: translateX(-2px);
    }

    .tool-detail-back span {
        font-size: 19px;
        line-height: 1;
    }


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.tool-detail-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.tool-detail-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    border: 1px solid #dfebfa;
    border-radius: 17px;
    background: #f0f6ff;
    font-size: 38px;
    line-height: 1;
}

.tool-detail-heading h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(32px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -1.7px;
}

.tool-detail-heading p {
    margin: 7px 0 0;
    color: #637796;
    font-size: 16px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   PRIVACY STRIP
   --------------------------------------------------------- */

.tool-privacy-strip {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 16px;
    padding: 10px 24px 10px 16px;
    border: 1px solid #d8e9fb;
    border-radius: 14px;
    background: linear-gradient( 90deg, rgba(234,244,255,.88), rgba(247,251,255,.92) );
}

.tool-privacy-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-privacy-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcecff;
    color: var(--blue);
}

    .tool-privacy-icon svg {
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.tool-privacy-main strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.tool-privacy-main span {
    display: block;
    color: #5f7290;
    font-size: 12px;
    line-height: 1.45;
}

.tool-privacy-points {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

    .tool-privacy-points span {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 0 23px;
        border-left: 1px solid #ccdaeb;
        color: #435a7a;
        font-size: 12px;
        white-space: nowrap;
    }

    .tool-privacy-points b {
        width: 19px;
        height: 19px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #21a35a;
        color: #fff;
        font-size: 11px;
        font-weight: 900;
    }


/* ---------------------------------------------------------
   MAIN GRID
   --------------------------------------------------------- */

.tool-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 28px;
    align-items: start;
}

.tool-detail-main {
    min-width: 0;
}

.tool-detail-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ---------------------------------------------------------
   UPLOAD / DROP
   --------------------------------------------------------- */

.tool-detail-page .tool-upload-zone {
    min-height: 270px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 30px;
    border: 1.5px dashed #9ec5f2;
    border-radius: 14px;
    background: radial-gradient(circle at center, rgba(233,243,255,.6), transparent 70%), #fbfdff;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

    .tool-detail-page .tool-upload-zone:hover {
        border-color: var(--blue);
        background: radial-gradient(circle at center, rgba(224,239,255,.8), transparent 70%), #f8fbff;
        box-shadow: inset 0 0 0 1px rgba(9,103,234,.025);
    }

    .tool-detail-page .tool-upload-zone.drag {
        border-color: var(--blue);
        background: #f2f7ff;
    }

.tool-upload-zone input {
    display: none;
}

.tool-upload-icon {
    position: relative;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    color: #91b7e5;
}

    .tool-upload-icon svg {
        width: 52px;
        height: 52px;
        fill: #edf5ff;
        stroke: #93b9e7;
        stroke-width: 1.3;
        stroke-linejoin: round;
    }

    .tool-upload-icon > span {
        position: absolute;
        right: -2px;
        bottom: 3px;
        width: 29px;
        height: 29px;
        display: grid;
        place-items: center;
        border: 3px solid #fff;
        border-radius: 50%;
        background: var(--blue);
        color: #fff;
        font-size: 21px;
        font-weight: 700;
        line-height: 1;
    }

.tool-detail-page .tool-upload-zone > strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 16px;
    text-align: center;
}

.tool-detail-page .tool-upload-zone > span:not(.tool-select-button) {
    color: #7284a0;
    font-size: 12px;
    text-align: center;
}

.tool-select-button {
    min-height: 45px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
    padding: 0 23px;
    border-radius: 9px;
    background: var(--blue);
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 750;
    box-shadow: 0 9px 22px rgba(9,103,234,.18);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tool-upload-zone:hover .tool-select-button {
    background: var(--blue-hover);
}

.tool-select-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-detail-page .tool-upload-zone small {
    margin-top: 3px;
    color: #8594a9;
    font-size: 10px;
}


/* ---------------------------------------------------------
   STATUS / OPTIONS
   --------------------------------------------------------- */

.tool-detail-page .options {
    margin: 14px 0;
}

.tool-status {
    min-height: 0;
    margin: 8px 0;
}

    .tool-status:empty {
        display: none;
    }


/* ---------------------------------------------------------
   PREVIEW
   --------------------------------------------------------- */

.tool-preview-panel {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    background: #fff;
}

.tool-preview-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

    .tool-preview-header > div:first-child {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .tool-preview-header strong {
        color: var(--navy);
        font-size: 13px;
    }

    .tool-preview-header #previewSummary {
        color: var(--navy);
        font-size: 11px;
        font-weight: 650;
    }

        .tool-preview-header #previewSummary:not(:empty)::before {
            content: "·";
            padding-right: 7px;
        }

    .tool-preview-header .tools {
        margin: 0;
    }

        .tool-preview-header .tools button {
            padding: 6px 9px;
            border: 0;
            background: transparent;
            color: var(--blue);
            font-size: 11px;
        }

            .tool-preview-header .tools button:hover {
                background: #f2f7ff;
            }


/* container populated by existing JS */

.tool-preview-content:empty {
    min-height: 90px;
    display: grid;
    place-items: center;
    border: 1px dashed #d7e2ef;
    border-radius: 10px;
    background: #fbfcfe;
}

    .tool-preview-content:empty::after {
        content: "Os ficheiros selecionados serão apresentados aqui";
        color: #93a1b4;
        font-size: 11px;
    }


/* Existing preview renderer */

.tool-detail-page .pages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 12px;
    margin: 0;
}

.tool-detail-page .page {
    position: relative;
    overflow: hidden;
    padding: 7px;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .tool-detail-page .page:hover {
        border-color: #b6cff0;
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(16,33,74,.07);
    }

    /* Página selecionável - destaque em seleção */
    .tool-detail-page .page.selectable {
        cursor: pointer;
    }

    .tool-detail-page .page.selectable.selected {
        border-color: #0967ea;
        border-width: 2px;
        box-shadow: 0 0 0 3px rgba(9, 103, 234, 0.1), 0 7px 18px rgba(16,33,74,.07);
        background: #f0f6ff;
    }

    .tool-detail-page .page canvas {
        width: 100%;
        border-radius: 5px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(16,33,74,.06);
    }

    /* Imagens em preview (mesmo styling que canvas) */
    .tool-detail-page .page img {
        width: 100%;
        max-width: 100%;
        border-radius: 5px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(16,33,74,.06);
        object-fit: contain;
    }

    /* Labels de página/ficheiro - com ou sem container */
    .tool-detail-page .page span.page-label {
        display: block;
        margin-top: 6px;
        flex-shrink: 0;
        color: #667995;
        font-size: 11px;
        text-align: center;
    }

    /* Fallback para labels antigas (sem classe page-label) */
    .tool-detail-page .page > span {
        display: block;
        margin-top: 6px;
        color: #667995;
        font-size: 10px;
        text-align: center;
    }


/* ---------------------------------------------------------
   INFO NOTE
   --------------------------------------------------------- */

.tool-info-note {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 12px 16px;
    border: 1px solid #dbe8f7;
    border-radius: 12px;
    background: #f8fbff;
}

.tool-info-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border: 2px solid var(--blue);
    border-radius: 50%;
    color: var(--blue);
    font-size: 11px;
    font-family: Georgia, serif;
    font-weight: 700;
}

.tool-info-note .selection-help {
    margin: 0;
    color: #637694;
    font-size: 11px;
}


/* ---------------------------------------------------------
   SIDEBAR CARDS
   --------------------------------------------------------- */

.tool-side-card {
    padding: 19px;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16,33,74,.025);
}

    .tool-side-card h2 {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 0;
        color: var(--navy);
        font-size: 17px;
        letter-spacing: -.3px;
    }

        .tool-side-card h2 > span {
            font-size: 21px;
        }

.tool-side-overview {
    margin: 7px 0 17px;
    color: #6e7f98;
    font-size: 11px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   STEPS
   --------------------------------------------------------- */

.tool-step-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .tool-step-list li {
        position: relative;
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 11px;
        align-items: center;
        min-height: 46px;
    }

        .tool-step-list li:not(:last-child)::after {
            content: "";
            position: absolute;
            top: 34px;
            bottom: -5px;
            left: 15px;
            width: 1px;
            background: #d5e2f1;
        }

        .tool-step-list li > span {
            position: relative;
            z-index: 1;
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            border: 1px solid #bfdbfb;
            border-radius: 50%;
            background: #eff6ff;
            color: var(--blue);
            font-size: 11px;
            font-weight: 700;
        }

    .tool-step-list p {
        margin: 0;
        color: #263b5d;
        font-size: 11.5px;
        line-height: 1.4;
    }


/* ---------------------------------------------------------
   TIP
   --------------------------------------------------------- */

.tool-tip {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    padding: 11px 12px;
    border-radius: 9px;
    background: #eefaf2;
    color: #18753c;
}

    .tool-tip > span {
        font-size: 17px;
    }

    .tool-tip p {
        margin: 0;
        font-size: 11px;
        line-height: 1.4;
    }

    .tool-tip strong {
        font-weight: 800;
    }


/* ---------------------------------------------------------
   HELP
   --------------------------------------------------------- */

.tool-help-card {
    padding: 18px;
}

.tool-help-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tool-help-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border: 1px solid #bcd9fb;
    border-radius: 50%;
    background: #eaf4ff;
    color: var(--blue);
    font-size: 17px;
    font-weight: 750;
}

.tool-help-title h2 {
    margin: 3px 0 5px;
    font-size: 15px;
}

.tool-help-title p {
    margin: 0;
    color: #687b98;
    font-size: 11px;
    line-height: 1.5;
}

.tool-help-button {
    width: max-content;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    padding: 0 20px;
    border: 1px solid #c7dcf5;
    border-radius: 7px;
    background: #f5f9ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 650;
    transition: .2s ease;
}

    .tool-help-button:hover {
        border-color: #9fc6f5;
        background: #edf5ff;
    }


/* ---------------------------------------------------------
   MAIN ACTION
   --------------------------------------------------------- */

.tool-detail-page .tool-run-large {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0;
    padding: 0 24px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    box-shadow: 0 12px 28px rgba(9,103,234,.20);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .tool-detail-page .tool-run-large:hover:not(:disabled) {
        background: var(--blue-hover);
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba(9,103,234,.25);
    }

    .tool-detail-page .tool-run-large:disabled {
        background: #9fc4f7;
        cursor: not-allowed;
        box-shadow: none;
    }


/* ---------------------------------------------------------
   PROGRESS
   --------------------------------------------------------- */

.tool-detail-page .progress-wrap {
    margin: 14px 0;
    border-color: #d8e6f6;
    background: #f8fbff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .tool-detail-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 18px;
    }

    .tool-privacy-points span {
        padding: 0 13px;
    }
}


@media (max-width: 850px) {

    .tool-detail-grid {
        grid-template-columns: 1fr;
    }

    .tool-detail-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .tool-run-large {
        grid-column: 1 / -1;
    }

    .tool-privacy-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .tool-privacy-points {
        width: 100%;
        padding-left: 62px;
    }

        .tool-privacy-points span:first-child {
            border-left: 0;
            padding-left: 0;
        }
}


@media (max-width: 600px) {

    .tool-detail-page {
        padding: 12px 10px 32px;
    }

    .tool-detail-shell {
        padding: 18px 14px 20px;
        border-radius: 15px;
    }

    .tool-detail-back {
        margin-bottom: 17px;
    }

    .tool-detail-heading {
        align-items: flex-start;
        gap: 13px;
    }

    .tool-detail-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 13px;
        font-size: 29px;
    }

    .tool-detail-heading h1 {
        font-size: 29px;
        letter-spacing: -1.2px;
    }

    .tool-detail-heading p {
        margin-top: 5px;
        font-size: 13px;
    }

    .tool-privacy-strip {
        padding: 13px;
    }

    .tool-privacy-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

        .tool-privacy-icon svg {
            width: 22px;
            height: 22px;
        }

    .tool-privacy-points {
        padding-left: 0;
        justify-content: space-between;
    }

        .tool-privacy-points span {
            flex: 1;
            justify-content: center;
            padding: 0 8px;
            font-size: 10px;
        }

            .tool-privacy-points span:first-child {
                justify-content: flex-start;
            }

    .tool-detail-page .tool-upload-zone {
        min-height: 235px;
        padding: 24px 15px;
    }

    .tool-preview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-detail-page .pages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-detail-sidebar {
        display: flex;
    }

    .tool-side-card {
        padding: 16px;
    }

    .tool-detail-page .tool-run-large {
        min-height: 54px;
    }
}

/* TOOL MODES SELECTOR BUTTONS */
.tool-modes-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tool-mode-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f4f9;
    color: #10214a;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(16, 33, 74, 0.08);
}

.tool-mode-btn:hover:not(.is-active) {
    background-color: #e6ecf5;
    color: #0967ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 103, 234, 0.15);
}

.tool-mode-btn.is-active {
    background-color: var(--blue, #0967ea);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(9, 103, 234, 0.35);
    font-weight: 600;
    transform: scale(1.02);
}

.tool-mode-btn.is-active:hover {
    background-color: var(--blue-hover, #075bd1);
    box-shadow: 0 12px 32px rgba(9, 103, 234, 0.45);
    transform: scale(1.02) translateY(-2px);
}

.tool-mode-btn:active:not(.is-active) {
    transform: scale(0.98);
}

.tool-mode-btn.animate-click {
    transform: scale(0.96);
}

.tool-mode-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* PÁGINA BUTTON CUSTOMIZATION CLASSES                                             */
/* Classes globais para customizar botões de página (.page-button-{name})          */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* Classe base para todos os botões de página */
.page-button {
    /* Estilos base definidos em JavaScript, aqui pode customizar adicionalmente */
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* DELETE BUTTON - ❌ Apagar página                                               */
/* ─────────────────────────────────────────────────────────────────────────────── */
.page-button-delete {
    /* Customizações específicas para botão delete */
    /* Exemplo: adicionar sombra personalizada */
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.page-button-delete:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* ROTATE BUTTON - 🔄 Rodar página                                                */
/* ─────────────────────────────────────────────────────────────────────────────── */
.page-button-rotate {
    /* Customizações específicas para botão rotate */
    /* Exemplo: adicionar sombra personalizada */
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.page-button-rotate:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* MOVE BUTTON - ↔️ Mover página                                                   */
/* ─────────────────────────────────────────────────────────────────────────────── */
.page-button-move {
    /* Customizações específicas para botão move */
    /* Exemplo: adicionar sombra personalizada */
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.page-button-move:hover {
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* DUPLICATE BUTTON - 📋 Duplicar página                                          */
/* ─────────────────────────────────────────────────────────────────────────────── */
.page-button-duplicate {
    /* Customizações específicas para botão duplicate */
    /* Exemplo: adicionar sombra personalizada */
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.page-button-duplicate:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ═════════════════════════════════════════════════════════════════════════════════ */
/* ANIMAÇÕES OPCIONAIS PARA BOTÕES DE PÁGINA                                        */
/* ═════════════════════════════════════════════════════════════════════════════════ */

@keyframes button-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--button-color), 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(var(--button-color), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--button-color), 0); }
}

@keyframes button-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Usar estas classes para adicionar animações aos botões */
.page-button.animate-pulse {
    animation: button-pulse 2s infinite;
}

.page-button-rotate.animate-spin {
    animation: button-spin 0.6s ease-in-out;
}

/* ═════════════════════════════════════════════════════════════════════════════════ */
/* VARIANTES DE TAMANHO                                                             */
/* ═════════════════════════════════════════════════════════════════════════════════ */

.page-button.size-sm {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
}

.page-button.size-lg {
    width: 44px !important;
    height: 44px !important;
    font-size: 22px !important;
}

/* ═════════════════════════════════════════════════════════════════════════════════ */
/* VARIANTES DE ESTADO                                                              */
/* ═════════════════════════════════════════════════════════════════════════════════ */

.page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.page-button.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}




    .tool-detail-page *,
    .tool-detail-page *::before,
    .tool-detail-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

.dm-progress-details { margin-top: 8px; color: #6b7280; font-size: 12px; }
.data-masking-options { display: grid; gap: 12px; }
.dm-mode-select { display: block; width: 100%; margin-top: 5px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 7px; }
.dm-category-fieldset { padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; }
.dm-category-grid, .dm-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.dm-option-category { display: flex; align-items: center; gap: 7px; }
.dm-info-note { margin: 0; padding: 9px; border: 1px solid; border-radius: 7px; font-size: 12px; }
.dm-info-note--detector { border-color: #bfdbfe; background: #eff6ff; }
.dm-info-note--flattening { border-color: #fed7aa; background: #fff7ed; }
.data-masking-report { max-width: 1180px; margin: 16px auto; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.dm-report-header { padding: 18px; border-bottom: 1px solid #e2e8f0; background: linear-gradient(135deg, #f5f3ff, #eff6ff); }
.dm-report-header h2 { margin: 0 0 6px; }
.dm-limitation { margin: 9px 0 0; color: #7c2d12; font-size: 13px; }
.dm-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; padding: 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.dm-summary-card { padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; text-align: center; }
.dm-summary-card--total { border-color: #c4b5fd; }
.dm-summary-card--selected { border-color: #86efac; }
.dm-summary-card--unique { border-color: #bfdbfe; }
.dm-summary-value { font-size: 21px; }
.dm-summary-mode { font-size: 15px; }
.dm-summary-card div { font-size: 12px; }
.dm-warnings { margin: 14px; padding: 10px 14px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; }
.dm-report-section { padding: 0 14px 14px; }
.dm-type-card { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.dm-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dm-review-toolbar select { padding: 7px; border: 1px solid #cbd5e1; border-radius: 6px; }
.dm-table-wrap { overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dm-table thead { background: #f8fafc; text-align: left; }
.dm-table th, .dm-table-cell { padding: 8px; border-bottom: 1px solid #e2e8f0; }
.dm-group-row > td { vertical-align: top; }
.dm-group-pages small { display: block; color: #64748b; }
.dm-group-details { margin-top: 6px; color: #475569; font-size: 12px; }
.dm-group-details summary { cursor: pointer; }
.dm-group-details ul { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 18px; }
.dm-group-details li { display: flex; align-items: center; gap: 8px; }
.dm-show-page { border: 0; background: transparent; color: #2563eb; cursor: pointer; }
.dm-occurrence-source { color: #64748b; font-size: 11px; }
.dm-break-word { word-break: break-word; }
.dm-group-replacement { width: 100%; padding: 6px; border: 1px solid #cbd5e1; border-radius: 6px; }
.dm-empty-state { padding: 14px; border-radius: 8px; background: #f8fafc; }
.dm-report-footer { display: flex; gap: 8px; flex-wrap: wrap; padding: 13px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.dm-export-pdf, .dm-export-json { padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 7px; cursor: pointer; }
.dm-export-pdf { border-color: #7c3aed; background: #7c3aed; color: #fff; }
.dm-export-json { background: #fff; }
.tool-detail-page .options input[type="checkbox"] { display: inline-block; width: auto; margin: 0 6px 0 0; padding: 0; }

/* PWA Install Button Styles */
.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #0967ea 0%, #0052cc 100%);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(9, 103, 234, 0.3);
}

.pwa-install-btn:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003a99 100%);
    box-shadow: 0 4px 8px rgba(9, 103, 234, 0.4);
    transform: translateY(-2px);
}

.pwa-install-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(9, 103, 234, 0.2);
}

.pwa-install-btn:focus {
    outline: 2px solid #0967ea;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .pwa-install-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .pwa-install-btn span:last-child {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .pwa-install-btn {
        box-shadow: 0 2px 4px rgba(9, 103, 234, 0.5);
    }

    .pwa-install-btn:hover {
        box-shadow: 0 4px 8px rgba(9, 103, 234, 0.6);
    }
}
