html.static-landing-active,
body.static-landing-active {
    overflow: auto;
}

body.static-landing-active #app[hidden] {
    display: none;
}

.empty-state[hidden],
.landing-ad-popup[hidden] {
    display: none;
}

.empty-state {
    width: min(1180px, calc(100vw - 32px));
    height: 100%;
    min-height: 100%;
    flex: 0 1 auto;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: #d7e8ff;
    padding: 34px 24px 28px;
    gap: 16px;
}

.landing-brand-bar {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 4px;
}

.landing-brand-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    grid-column: 2;
}

.landing-brand-logo {
    display: block;
    justify-self: start;
    width: 68px;
    height: 68px;
    color: #d7e8ff;
    background-color: currentColor;
    -webkit-mask-image: url("../logo_bw.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("../logo_bw.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.landing-brand-links {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
}

.landing-downloads-stripe {
    width: 100%;
    max-width: 900px;
    margin-top: 18px;
    margin-bottom: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(77, 134, 213, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(41, 62, 96, 0.16) 0%, rgba(27, 43, 70, 0.08) 100%);
    box-shadow: 0 10px 18px rgba(14, 24, 40, 0.04);
}

.landing-downloads-stripe-inner {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(210px, 0.85fr) minmax(0, 2.15fr);
    align-items: center;
    gap: 18px;
}

.landing-downloads-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

.landing-downloads-label,
.landing-downloads-heading p {
    margin: 0;
}

.landing-downloads-label {
    color: #bfd7f2;
    font-size: 0.98rem;
    line-height: 1.2;
    font-weight: 650;
}

.landing-downloads-heading p {
    max-width: 34ch;
    color: #9dc0e6;
    font-size: 0.82rem;
    line-height: 1.35;
}

.landing-product-link {
    min-width: 0;
    min-height: 66px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    flex: 1 1 0;
    padding: 10px 11px;
    border: 1px solid rgba(77, 134, 213, 0.24);
    border-radius: 8px;
    background: rgba(40, 63, 98, 0.08);
    color: #c8dbf1;
    text-decoration: none;
    text-align: left;
    transition: border-color 0.16s ease, transform 0.16s ease, color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.landing-product-link:hover {
    color: #eef6ff;
    border-color: rgba(111, 155, 221, 0.42);
    background: rgba(56, 86, 129, 0.14);
    box-shadow: 0 8px 14px rgba(14, 24, 40, 0.05);
    transform: translateY(-1px);
}

.landing-product-icon {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(102, 167, 255, 0.1);
    color: #d5e7fb;
    flex: 0 0 auto;
}

.landing-product-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.landing-product-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landing-product-copy strong {
    color: #f5f9ff;
    font-size: 0.88rem;
    line-height: 1.2;
    font-weight: 650;
    white-space: nowrap;
}

.landing-product-copy span {
    color: #b9cde5;
    font-size: 0.76rem;
    line-height: 1.25;
}

.empty-state h1 {
    display: block;
    margin: 0;
    padding: 0;
    font-size: clamp(2.1rem, 2.55vw, 3.15rem);
    line-height: 1;
    font-weight: 650;
    color: #f5f9ff;
    text-shadow: 0 2px 6px rgba(26, 62, 108, 0.24);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.landing-brand-subtitle {
    font-size: clamp(1.12rem, 1.05vw, 1.45rem);
    line-height: 1.15;
    font-weight: 600;
    color: #b9d4f3;
}

.empty-upload-zone {
    position: relative;
    margin-top: 22px;
    width: min(700px, calc(100vw - 48px));
    min-height: 224px;
    border: 2px dashed rgba(75, 133, 216, 0.98);
    border-radius: 22px;
    background:
        radial-gradient(circle at top center, rgba(104, 162, 244, 0.18), transparent 48%),
        linear-gradient(180deg, rgba(58, 92, 144, 0.28) 0%, rgba(41, 67, 106, 0.22) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    animation: upload-zone-breathe 4.4s ease-in-out infinite;
    box-shadow: 0 24px 54px rgba(17, 31, 54, 0.14), 0 0 0 1px rgba(102, 167, 255, 0.08);
}

.empty-upload-zone:hover,
.empty-upload-zone.drag-active {
    border-color: #f0a830;
    background:
        radial-gradient(circle at top center, rgba(104, 162, 244, 0.22), transparent 52%),
        linear-gradient(180deg, rgba(70, 106, 159, 0.32) 0%, rgba(46, 75, 118, 0.24) 100%);
    box-shadow: 0 28px 60px rgba(17, 31, 54, 0.18), 0 0 0 1px rgba(240, 168, 48, 0.12);
    animation-play-state: paused;
}

.empty-upload-zone .upload-copy {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 0 24px;
    max-width: 860px;
}

.empty-upload-zone .upload-icon {
    width: clamp(3.1rem, 3.2vw, 3.6rem) !important;
    height: clamp(3.1rem, 3.2vw, 3.6rem) !important;
    color: #66a7ff;
    animation: upload-icon-float 3.1s ease-in-out infinite;
}

.empty-upload-zone .upload-title {
    font-size: clamp(1.95rem, 2.5vw, 2.35rem);
    line-height: 1.12;
    color: #f4f8ff;
}

.empty-upload-zone .upload-subtitle {
    font-size: clamp(0.94rem, 0.9vw, 1.02rem);
    line-height: 1.4;
    color: #c9dcf3;
}

.empty-upload-zone .upload-status {
    min-height: 1.35em;
    color: #ffd27a;
    font-size: 0.95rem;
    font-weight: 700;
}

.empty-upload-zone .upload-file-extension {
    display: inline-block;
    margin: 0 0.08rem;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    background: rgba(102, 167, 255, 0.16);
    color: #f5f9ff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.empty-upload-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

@keyframes upload-zone-breathe {
    0%,
    100% {
        box-shadow: 0 18px 38px rgba(17, 31, 54, 0.08);
    }

    50% {
        box-shadow: 0 20px 42px rgba(17, 31, 54, 0.12), 0 0 0 4px rgba(102, 167, 255, 0.05);
    }
}

@keyframes upload-icon-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.empty-state small {
    display: block;
    margin-top: 10px;
    font-size: clamp(1rem, 0.45vw + 0.8rem, 1.14rem);
    line-height: 1.48;
    color: #9dc0e6;
    max-width: 980px;
    text-align: center;
}

.empty-state > small:first-of-type {
    margin-top: 0;
}

.empty-state small a {
    color: #E19C03;
    font-weight: 600;
    text-decoration: underline;
}

.empty-state small a:hover {
    color: #ffd27a;
}

.landing-features {
    margin-top: 24px;
    margin-bottom: 16px;
    width: min(900px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 14px;
    text-align: left;
}

.empty-state > div:last-of-type {
    margin-top: 8px;
}

.landing-legal-footer {
    margin-top: auto;
    align-self: stretch;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #9dc0e6;
    padding-top: 10px;
    padding-bottom: 22px;
}

.landing-legal-footer a {
    color: #E19C03;
    text-decoration: none;
}

.landing-legal-footer a:hover {
    color: #ffd27a;
    text-decoration: underline;
}

.landing-legal-footer .legal-divider {
    display: inline-block;
    width: 1.2rem;
}

.landing-feature-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    border: 1px solid rgba(75, 133, 216, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(240, 168, 48, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(41, 62, 96, 0.18) 0%, rgba(27, 43, 70, 0.14) 100%);
    padding: 14px 16px 13px;
    box-shadow: 0 10px 18px rgba(14, 24, 40, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-feature-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(240, 168, 48, 0.92) 0%, rgba(111, 155, 221, 0.42) 100%);
}

.landing-feature-card:hover {
    transform: translateY(-1px);
    border-color: rgba(111, 155, 221, 0.32);
    box-shadow: 0 12px 20px rgba(14, 24, 40, 0.07);
}

.landing-feature-kicker {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    background: rgba(102, 167, 255, 0.08);
    color: #a8c6ea;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-feature-card h2 {
    margin: 0 0 7px;
    font-size: clamp(1rem, 0.9vw, 1.12rem);
    line-height: 1.2;
    font-weight: 620;
    color: #f0be63;
}

.landing-feature-card p {
    margin: 0;
    max-width: 28ch;
    font-size: clamp(0.84rem, 0.7vw, 0.94rem);
    line-height: 1.46;
    color: #cadcf1;
}

.landing-ad-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 720px;
}

.landing-ad-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd27a;
}

.landing-ad-copy strong {
    font-size: clamp(1.05rem, 1vw + 0.7rem, 1.45rem);
    line-height: 1.25;
    color: #f5f9ff;
}

.landing-ad-copy span:last-child {
    font-size: 0.98rem;
    line-height: 1.5;
    color: #c9dcf3;
}

.landing-ad-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(240, 168, 48, 0.96) 0%, rgba(225, 134, 3, 0.96) 100%);
    color: #16243a;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(225, 156, 3, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.landing-ad-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(225, 156, 3, 0.3);
    filter: brightness(1.04);
}

.landing-ad-popup {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: min(360px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(240, 168, 48, 0.46);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(225, 156, 3, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(42, 66, 101, 0.92) 0%, rgba(30, 48, 78, 0.94) 100%);
    box-shadow: 0 22px 40px rgba(8, 14, 24, 0.3);
    text-align: left;
}

.landing-ad-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #eef6ff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.landing-ad-popup-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffd27a;
}

html.theme-light .empty-state {
    color: #24384f;
}

html.theme-light .empty-state h1 {
    color: #1f334b;
    text-shadow: 0 2px 6px rgba(85, 120, 160, 0.14);
}

html.theme-light .landing-brand-subtitle {
    color: #4d6786;
}

html.theme-light .landing-downloads-stripe {
    border-color: rgba(77, 127, 196, 0.18);
    background:
        linear-gradient(90deg, rgba(233, 241, 252, 0.74) 0%, rgba(220, 230, 246, 0.46) 100%);
    box-shadow: 0 8px 16px rgba(70, 98, 134, 0.04);
}

html.theme-light .landing-downloads-label {
    color: #263c57;
}

html.theme-light .landing-brand-logo {
    color: #1f334b;
}

html.theme-light .landing-downloads-heading p {
    color: #4d6786;
}

html.theme-light .landing-product-link {
    color: #3e5877;
    border-color: rgba(77, 127, 196, 0.22);
    background: rgba(218, 229, 245, 0.42);
}

html.theme-light .landing-product-link:hover {
    color: #24415f;
    border-color: rgba(77, 127, 196, 0.36);
    background: rgba(224, 235, 248, 0.78);
    box-shadow: 0 8px 14px rgba(70, 98, 134, 0.06);
}

html.theme-light .landing-product-icon {
    background: rgba(47, 111, 200, 0.08);
    color: #315d91;
}

html.theme-light .landing-product-copy strong {
    color: #263c57;
}

html.theme-light .landing-product-copy span {
    color: #415a79;
}

html.theme-light .empty-state small {
    color: #4d6786;
}

html.theme-light .empty-state small a {
    color: #b87500;
}

html.theme-light .empty-state small a:hover {
    color: #8f5b00;
}

html.theme-light .empty-upload-zone {
    border-color: rgba(47, 111, 200, 0.92);
    background:
        radial-gradient(circle at top center, rgba(47, 111, 200, 0.14), transparent 48%),
        linear-gradient(180deg, rgba(221, 234, 252, 0.96) 0%, rgba(205, 223, 248, 0.86) 100%);
    box-shadow: 0 22px 44px rgba(70, 98, 134, 0.14), 0 0 0 1px rgba(47, 111, 200, 0.08);
}

html.theme-light .empty-upload-zone:hover,
html.theme-light .empty-upload-zone.drag-active {
    border-color: #2f6fc8;
    background:
        radial-gradient(circle at top center, rgba(47, 111, 200, 0.18), transparent 52%),
        linear-gradient(180deg, rgba(214, 229, 250, 0.98) 0%, rgba(195, 216, 244, 0.9) 100%);
    box-shadow: 0 26px 48px rgba(70, 98, 134, 0.16), 0 0 0 1px rgba(47, 111, 200, 0.1);
}

html.theme-light .empty-upload-zone .upload-icon {
    color: #2f6fc8;
}

html.theme-light .empty-upload-zone .upload-title {
    color: #22364f;
}

html.theme-light .empty-upload-zone .upload-subtitle {
    color: #4d6786;
}

html.theme-light .empty-upload-zone .upload-status {
    color: #9a6400;
}

html.theme-light .empty-upload-zone .upload-file-extension {
    background: rgba(47, 111, 200, 0.12);
    color: #214f97;
}

@media (prefers-reduced-motion: reduce) {
    .empty-upload-zone,
    .empty-upload-zone .upload-icon {
        animation: none;
    }
}

html.theme-light .landing-feature-card {
    border-color: rgba(77, 127, 196, 0.2);
    background:
        radial-gradient(circle at top left, rgba(232, 180, 74, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(233, 241, 252, 0.76) 0%, rgba(220, 230, 246, 0.64) 100%);
    box-shadow: 0 8px 16px rgba(70, 98, 134, 0.05);
}

html.theme-light .landing-feature-card:hover {
    border-color: rgba(77, 127, 196, 0.3);
    box-shadow: 0 10px 18px rgba(70, 98, 134, 0.07);
}

html.theme-light .landing-feature-kicker {
    background: rgba(47, 111, 200, 0.06);
    color: #577496;
}

html.theme-light .landing-feature-card h2 {
    color: #b57a15;
}

html.theme-light .landing-feature-card p {
    color: #415a79;
}

html.theme-light .landing-ad-kicker {
    color: #9a6400;
}

html.theme-light .landing-ad-copy strong {
    color: #263c57;
}

html.theme-light .landing-ad-copy span:last-child {
    color: #4e6888;
}

html.theme-light .landing-ad-cta {
    color: #fffdf8;
    background: linear-gradient(180deg, rgba(191, 123, 0, 0.96) 0%, rgba(160, 98, 0, 0.96) 100%);
    box-shadow: 0 12px 22px rgba(184, 117, 0, 0.22);
}

html.theme-light .landing-ad-cta:hover {
    box-shadow: 0 14px 26px rgba(184, 117, 0, 0.3);
}

html.theme-light .landing-ad-popup {
    border-color: rgba(184, 117, 0, 0.3);
    background:
        radial-gradient(circle at top right, rgba(232, 180, 74, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(255, 246, 222, 0.97) 0%, rgba(245, 232, 198, 0.97) 100%);
    box-shadow: 0 22px 36px rgba(115, 132, 156, 0.18);
}

html.theme-light .landing-ad-popup-close {
    background: rgba(38, 60, 87, 0.08);
    color: #263c57;
}

html.theme-light .landing-ad-popup-close:hover {
    background: rgba(184, 117, 0, 0.14);
    color: #8f5b00;
}

html.theme-light .landing-legal-footer {
    color: #4d6786;
}

html.theme-light .landing-legal-footer a {
    color: #b87500;
}

html.theme-light .landing-legal-footer a:hover {
    color: #8f5b00;
}

@media (max-width: 900px) {
    .empty-state {
        padding: 24px 16px 28px;
    }

    .landing-downloads-stripe {
        margin-top: 18px;
        width: min(620px, 95vw);
        padding: 13px 14px;
    }

    .landing-downloads-stripe-inner {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .landing-brand-bar {
        width: 95vw;
        max-width: 620px;
        grid-template-columns: 1fr auto 1fr;
    }

    .landing-brand-logo {
        width: 58px;
        height: 58px;
    }

    .landing-brand-links {
        flex-direction: column;
    }

    .landing-downloads-label {
        font-size: 0.98rem;
    }

    .landing-downloads-heading p {
        max-width: 520px;
        font-size: 0.84rem;
    }

    .landing-product-link {
        flex: 0 0 auto;
        min-height: 0;
        padding: 11px 12px;
    }

    .landing-product-copy span {
        font-size: 0.8rem;
    }

    .empty-state h1 {
        font-size: clamp(1.8rem, 6.4vw, 2.3rem);
    }

    .empty-state small {
        font-size: 1rem;
        margin-top: 0;
        line-height: 1.4;
    }

    .empty-upload-zone {
        margin-top: 12px;
        width: min(720px, 95vw);
        min-height: 204px;
    }

    .empty-upload-zone .upload-icon {
        font-size: 2.5rem;
    }

    .empty-upload-zone .upload-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .empty-upload-zone .upload-subtitle {
        font-size: 0.86rem;
    }

    .landing-features {
        grid-template-columns: 1fr;
        width: min(620px, 95vw);
        gap: 12px;
        margin-top: 18px;
    }

    .landing-feature-card {
        min-height: 0;
        padding: 16px 16px 15px;
    }

    .landing-feature-card h2 {
        font-size: 1.08rem;
        margin-bottom: 7px;
    }

    .landing-feature-card p {
        max-width: none;
        font-size: 0.92rem;
    }

    .landing-ad-copy {
        max-width: none;
    }

    .landing-ad-popup {
        right: 16px;
        left: 16px;
        bottom: 16px;
        width: auto;
        padding: 16px 16px 18px;
    }

    .landing-ad-cta {
        min-width: 0;
        width: 100%;
    }

    .landing-legal-footer {
        text-align: center;
        font-size: 0.84rem;
    }

    .landing-legal-footer .legal-divider {
        width: 0.5rem;
    }
}

@media (max-width: 560px) {
    .landing-brand-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .landing-brand-heading {
        align-items: center;
        text-align: center;
    }

    .landing-brand-logo {
        width: 52px;
        height: 52px;
    }

    .landing-downloads-stripe-inner {
        width: 100%;
        align-items: stretch;
    }

    .landing-brand-links {
        flex-direction: column;
    }

    .landing-downloads-heading {
        align-items: flex-start;
        text-align: left;
    }

    .landing-product-link {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .landing-product-icon {
        width: 30px;
        height: 30px;
    }

    .landing-product-icon svg {
        width: 16px;
        height: 16px;
    }
}
