@import url('/assets/tool-commerce.css?v=20260921-plans1');
.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: #fff;
    background: #07152f;
    border-radius: 8px;
    transform: translateY(-180%);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

.ui-preview-banner {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    color: #17304f;
    background: #eaf3ff;
    border-bottom: 1px solid #bdd3f1;
    font-size: .82rem;
    text-align: center;
}

.ui-preview-banner strong {
    color: #0757cf;
}

.ui-preview-active #gateState,
.ui-preview-active [data-gate] {
    display: none !important;
}

.ui-preview-active #toolState,
.ui-preview-active [data-workbench] {
    display: block !important;
}

@media (max-width: 560px) {
    .ui-preview-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        text-align: left;
    }
}

/* Shared minimum touch targets for every protected tool entry. */
.tool-header .brand,
.tool-header .tool-brand,
.feed-header .feed-brand,
.rental-header .rental-brand,
.app-header .app-brand,
.tool-header nav a,
.feed-header nav a,
.rental-header nav a,
.app-header a,
.gate-card .text-link,
.gate-actions a,
.gate-state a,
.compare-gate a,
.redaction-gate a,
.rental-gate a,
.feed-gate a,
.gate-tool-finder-link {
    display: inline-flex;
    min-height: 44px !important;
    align-items: center;
}

.gate-standard-note {
    margin: 16px 0 6px;
    padding: 13px 15px;
    border: 1px solid #d5e1ee;
    border-radius: 12px;
    color: #4f6077;
    background: #f4f7fb;
    line-height: 1.55;
}

.gate-standard-note strong {
    display: block;
    color: #13233b;
}

.gate-tool-finder-link {
    width: fit-content;
    color: #165bb7;
    font-weight: 850;
    text-decoration: none;
}

.skip-link:focus {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* One visual account shell across the specialised tool workbenches. */
:is(.tool-header, .feed-header, .rental-header, .app-header) {
    border-bottom: 1px solid #e1e8f2 !important;
    color: #07152f !important;
    background: rgb(255 255 255 / 96%) !important;
    box-shadow: 0 1px 0 rgb(7 21 47 / 2%);
    backdrop-filter: blur(16px);
}

:is(.tool-header, .feed-header, .rental-header, .app-header) :is(.brand, .tool-brand, .feed-brand, .rental-brand, .app-brand) {
    color: #07152f !important;
    font-weight: 900;
    letter-spacing: -.025em;
}

:is(.tool-header, .feed-header, .rental-header, .app-header) :is(.brand, .tool-brand, .feed-brand, .rental-brand, .app-brand) > span {
    color: #fff !important;
    background: linear-gradient(145deg, #1769ff, #654bf0) !important;
    border-radius: 11px !important;
    box-shadow: 0 8px 22px rgb(23 105 255 / 24%);
}

:is(.tool-header, .feed-header, .rental-header, .app-header) :is(.brand, .tool-brand, .feed-brand, .rental-brand, .app-brand):not(.app-brand-dots) > span {
    font-size: 0 !important;
    background:
        radial-gradient(circle at 38% 38%, #fff 0 2.5px, transparent 3px),
        radial-gradient(circle at 62% 38%, #fff 0 2.5px, transparent 3px),
        radial-gradient(circle at 38% 62%, #fff 0 2.5px, transparent 3px),
        radial-gradient(circle at 62% 62%, #fff 0 2.5px, transparent 3px),
        linear-gradient(145deg, #1769ff, #654bf0) !important;
}

:is(.tool-header, .feed-header, .rental-header, .app-header) nav a,
:is(.tool-header, .feed-header, .rental-header, .app-header) .app-header-meta a,
.app-header > a:last-child {
    color: #40516a !important;
    font-weight: 800;
}

:is(.tool-header, .feed-header, .rental-header, .app-header) nav a:hover,
:is(.tool-header, .feed-header, .rental-header, .app-header) .app-header-meta a:hover,
.app-header > a:last-child:hover {
    color: #0d55db !important;
}

.app-brand-dots > span {
    display: grid !important;
    grid-template-columns: repeat(2, 5px);
    grid-template-rows: repeat(2, 5px);
    gap: 3px;
    width: 34px;
    height: 34px;
    place-content: center;
}

.app-brand-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

#gateState {
    border-color: #d8e2ef !important;
    box-shadow: 0 22px 64px rgb(7 21 47 / 10%) !important;
}

#gateState > .eyebrow:first-child,
#gateState .gate-copy > .eyebrow:first-child {
    color: #1769ff !important;
}

#gateState h1 {
    letter-spacing: -.04em;
    text-wrap: balance;
}

#gateState :is(.button.primary, .primary) {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2e7bff, #0d55db 72%) !important;
    box-shadow: 0 10px 24px rgb(23 105 255 / 20%);
}

#gateState .gate-standard-note {
    border-color: #d9e4f2;
    background: linear-gradient(145deg, #f5f8fd, #edf3fc);
}

#gateState .gate-tool-finder-link {
    color: #0d55db;
}

/* The PDF accessibility app intentionally uses the neutral shared shell. */
body:has(.tool-brand) {
    margin: 0;
    color: #13233b;
    background: #f3f6fa;
    font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.tool-brand) *,
body:has(.tool-brand) *::before,
body:has(.tool-brand) *::after {
    box-sizing: border-box;
}

.tool-header:has(.tool-brand) {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(18px, calc((100vw - 1180px) / 2));
    color: #07152f;
    background: #fff;
}

.tool-brand {
    gap: 10px;
    color: inherit;
    font-weight: 900;
    text-decoration: none;
}

.tool-brand > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #1766d8, #6d4deb);
}

.tool-header:has(.tool-brand) nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .84rem;
}

.tool-header:has(.tool-brand) nav a {
    color: #40516a;
    font-weight: 800;
    text-decoration: none;
}

.tool-header:has(.tool-brand) nav strong {
    padding: 7px 10px;
    border-radius: 999px;
    color: #d8f5e9;
    background: #17345f;
    font-size: .76rem;
}

.gate-state {
    width: min(720px, calc(100% - 28px));
    margin: 9vh auto;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid #d4dfeb;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 65px rgb(7 21 47 / 11%);
}

.gate-state h1 {
    margin: 8px 0 14px;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.gate-state > p:not(.eyebrow) {
    max-width: 620px;
    color: #5b6b80;
    line-height: 1.65;
}

.gate-state .button {
    margin-top: 12px;
}

@media (max-width: 620px) {
    .tool-header:has(.tool-brand) {
        padding-inline: 14px;
    }

    .tool-header:has(.tool-brand) nav span,
    .tool-header:has(.tool-brand) nav strong {
        display: none;
    }

    .gate-state {
        margin-block: 28px;
    }

    :is(.tool-header, .feed-header, .rental-header, .app-header) nav :is(span, b):not(.credit-pill),
    :is(.tool-header, .feed-header, .rental-header, .app-header) .app-header-meta > span:first-child {
        display: none;
    }

    :is(.tool-header, .feed-header, .rental-header, .app-header) nav {
        gap: 8px !important;
    }

    #gateState h1 {
        overflow-wrap: anywhere;
        text-wrap: pretty;
    }

    .gate-card#gateState {
        max-width: 100%;
        align-items: stretch;
        flex-direction: column;
        padding: clamp(22px, 7vw, 30px);
    }

    .gate-card#gateState > *,
    .gate-card#gateState > div,
    #gateState .gate-tool-finder-link {
        min-width: 0;
        max-width: 100%;
    }

    #gateState .gate-tool-finder-link {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 360px) {
    body[data-tool="e_invoice_validator"] .tool-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
    }

    body[data-tool="e_invoice_validator"] .tool-header nav {
        justify-self: end;
    }

    body[data-tool="e_invoice_validator"] .tool-header .app-tool-search-link {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        border-top: 1px solid #e4eaf2;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
