/* SEO landing + public template catalog pages */

.seo-page {
    width: calc(100% - 2 * var(--landing-pad, 24px));
    margin: 0 auto;
    padding: clamp(24px, 4vw, 52px) 0 clamp(56px, 8vw, 96px);
    color: var(--main-100);
}

.seo-page-hero,
.seo-page-hero-full-screen {
    /* Reset site chrome `header { display: flex; ... }` so title/intro/CTAs stack */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    isolation: isolate;
    z-index: auto;
    margin-bottom: clamp(36px, 6vw, 76px);
    padding: clamp(12px, 3vw, 24px);
    overflow: hidden;
}

.seo-page-hero {
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: clamp(22px, 3vw, 32px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 237, 246, 0.9));
    box-shadow: 0 20px 60px rgba(37, 56, 88, 0.1);
}

    .seo-page-hero-full-screen,
    .seo-page-hero.seo-page-hero-full-screen {
        border: none;
        border-radius: 0;
        background: var(--footer-surface);
        box-shadow: none;
    }

.seo-page-hero--with-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.seo-page-hero--category {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
    padding-block: clamp(28px, 4vw, 48px);
}

.seo-page-hero--template-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(18px, 2.5vw, 30px);
}

    .seo-page-hero--template-detail h1,
    .seo-page-hero--template-detail .seo-page-intro {
        margin: 0;
    }

.seo-page-hero--category .seo-page-eyebrow {
    min-height: 36px;
    margin: 22px 0 0;
    padding: 6px 12px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
}

.seo-page-hero--category h1 {
    max-width: 20ch;
    font-size: clamp(2.0rem, 3vw, 4.0rem);
    text-wrap: balance;
}

.seo-page-hero--category .seo-page-intro {
    max-width: 56ch;
    margin-bottom: 0;
}

.seo-page-hero-category-copy {
    min-width: 0;
}

.seo-template-search {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 36rem;
    margin: 22px 0 0;
}

.seo-page-hero--directory .seo-template-search {
    margin-top: 0;
    margin-bottom: 20px;
}

.seo-template-search-input {
    flex: 1 1 12rem;
    min-width: 12rem;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid rgba(16, 24, 40, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--main-100);
    font: inherit;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
}

    .seo-template-search-input::placeholder {
        color: rgba(42, 49, 64, 0.55);
    }

    .seo-template-search-input:focus-visible {
        outline: none;
        border-color: rgba(37, 99, 235, 0.55);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

.seo-template-search-submit.landing-cta {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 8px 18px;
    white-space: nowrap;
}

.seo-template-empty {
    margin: 0;
    color: var(--main-200);
    font-size: 1.0rem;
    line-height: 1.7;
}

    .seo-template-empty a {
        color: var(--landing-accent, #2563eb);
        font-weight: 800;
        text-decoration: none;
        text-underline-offset: 3px;
    }

        .seo-template-empty a:hover,
        .seo-template-empty a:focus-visible {
            text-decoration: underline;
        }

.seo-page-hero-copy {
    max-width: 660px;
}

.seo-page-hero-media {
    position: relative;
    max-width: min(100%, 520px);
    margin: 0 auto;
}

    .seo-page-hero-media img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: min(42vh, 280px);
        object-fit: contain;
        border: 8px solid rgba(255, 255, 255, 0.68);
        border-radius: clamp(16px, 2vw, 24px);
        background: #dfe7f2;
        box-shadow: 0 18px 42px rgba(25, 42, 69, 0.2);
    }

.seo-page-eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    max-width: 100%;
    margin: 0 0 16px;
    color: var(--main-200);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.seo-page-eyebrow-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.seo-page-eyebrow a {
    color: var(--landing-accent, #2563eb);
    text-decoration: none;
}

    .seo-page-eyebrow a:hover,
    .seo-page-eyebrow a:focus-visible {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.seo-page-hero h1,
.seo-page-hero-copy h1 {
    max-width: 14ch;
    margin: 0 0 18px;
    font-family: var(--landing-display, Mulish, sans-serif);
    font-size: clamp(2.0rem, 3vw, 4.0rem);
    line-height: 0.99;
    letter-spacing: -0.04em;
    color: var(--main-100);
}

.seo-page-intro {
    max-width: 62ch;
    margin: 0 0 28px;
    color: var(--main-200);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

.seo-page-more {
    max-width: 62ch;
    margin: -12px 0 28px;
}

    .seo-page-more a {
        color: inherit;
        font-weight: 800;
        text-underline-offset: 0.18em;
    }

.seo-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .seo-page-actions .landing-cta {
        min-height: 46px;
    }

        .seo-page-actions .landing-cta:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

.seo-page-hero .landing-cta--ghost {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(29, 78, 216, 0.35);
    color: var(--landing-accent-deep, #1d4ed8);
}

    .seo-page-hero .landing-cta--ghost:hover {
        border-color: var(--landing-accent, #2563eb);
        background: rgba(37, 99, 235, 0.1);
    }

.seo-page-section {
    margin: 0 0 clamp(40px, 6vw, 72px);
}

    .seo-page-section > h2,
    .seo-page-section--content > h3 {
        max-width: 24ch;
        margin: 0 0 16px;
        font-family: var(--landing-display, Mulish, sans-serif);
        font-size: clamp(1.5rem, 2.5vw, 3rem);
        line-height: 1.08;
        letter-spacing: -0.03em;
        color: var(--main-100);
    }

    .seo-page-section > p {
        max-width: 72ch;
        margin: 0 0 16px;
        color: var(--main-200);
        line-height: 1.75;
    }

.seo-page-section-media {
    max-width: min(100%, 36rem);
    margin: 4px 0 0;
}

    .seo-page-section-media img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
        background: #0b1220;
    }

.seo-page-section-compare .landing-feature-compare {
    border-radius: 14px;
}

.seo-page-section-compare .landing-feature-compare-image {
    height: 100%;
    border-radius: 0;
    background: transparent;
}

.seo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: seo-step;
}

    .seo-steps li {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 12px;
        align-items: start;
        min-width: 0;
        padding: 20px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.68);
        color: var(--main-200);
        line-height: 1.6;
        counter-increment: seo-step;
    }

        .seo-steps li::before {
            display: grid;
            width: 28px;
            height: 28px;
            place-items: center;
            border-radius: 50%;
            background: var(--landing-accent, #2563eb);
            color: #fff;
            font-size: 0.9rem;
            font-weight: 800;
            content: counter(seo-step);
        }

.seo-card-grid,
.seo-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.seo-card,
.seo-template-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(31, 49, 77, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.seo-card {
    flex-direction: column;
    padding: 20px;
}

    .seo-card:hover,
    .seo-template-card:hover {
        border-color: rgba(37, 99, 235, 0.32);
        box-shadow: 0 18px 36px rgba(31, 49, 77, 0.13);
        transform: translateY(-4px);
    }

    .seo-card:focus-visible,
    .seo-template-card:focus-visible,
    .seo-chip:focus-visible {
        outline: 3px solid rgba(37, 99, 235, 0.45);
        outline-offset: 3px;
    }

.seo-card-thumb {
    display: block;
    width: calc(100% + 40px);
    max-width: none;
    aspect-ratio: 16 / 9;
    margin: -20px -20px 18px;
    object-fit: cover;
    background: #dfe7f2;
}

.seo-card h2,
.seo-card h3,
.seo-template-meta h2,
.seo-template-meta h3 {
    margin: 0 0 8px;
    color: var(--main-100);
    font-size: 1.08rem;
    line-height: 1.3;
}

.seo-card p,
.seo-template-meta p {
    margin: 0;
    color: var(--main-200);
    font-size: 0.91rem;
    line-height: 1.55;
}

.seo-template-card {
    flex-direction: column;
}

.seo-template-preview {
    position: relative;
    overflow: hidden;
    background: #fff;
}

    /* Bundled logo / pictogram SVGs: center the mark, no white fill behind it. */
    .seo-template-preview:has(img[src*="/svg/logos/"]),
    .seo-template-preview:has(img[src*="/svg/misc/"]),
    .seo-template-preview:has(img[src*="/svg/unicode/"]) {
        display: grid;
        place-items: center;
        aspect-ratio: 4 / 3;
        padding: clamp(20px, 10%, 56px);
        background: transparent;
    }

        .seo-template-preview:has(img[src*="/svg/logos/"]) img,
        .seo-template-preview:has(img[src*="/svg/misc/"]) img,
        .seo-template-preview:has(img[src*="/svg/unicode/"]) img {
            width: auto;
            max-width: 100%;
            height: auto;
            max-height: 100%;
            min-height: 0;
            margin: 0;
            object-fit: contain;
            object-position: center;
            background: transparent;
        }

.seo-template-preview--hero:has(img[src*="/svg/logos/"]),
.seo-template-preview--hero:has(img[src*="/svg/misc/"]),
.seo-template-preview--hero:has(img[src*="/svg/unicode/"]) {
    min-height: min(42vw, 360px);
}

    .seo-template-preview--hero:has(img[src*="/svg/logos/"]) .seo-template-hero-image,
    .seo-template-preview--hero:has(img[src*="/svg/misc/"]) .seo-template-hero-image,
    .seo-template-preview--hero:has(img[src*="/svg/unicode/"]) .seo-template-hero-image {
        width: auto;
        max-width: min(100%, 520px);
        height: auto;
        max-height: min(36vw, 260px);
        min-height: 0;
        background: transparent;
    }

.seo-template-card-badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--main-100);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(20, 24, 32, 0.1);
}

.seo-template-card img,
.seo-template-preview-image,
.seo-template-placeholder {
    display: block;
    width: 100%;
    object-fit: contain;
    transition: transform 220ms ease;
}

.seo-template-card:hover .seo-template-preview-image {
    transform: scale(1.035);
}

/* Match editor/homepage tile framing for pictorx JSON & .picx documents */
.seo-template-card--document .seo-template-preview-image,
.seo-template-preview--hero.seo-template-card--document .seo-template-preview-image {
    object-fit: contain;
    background: #fff;
}

.seo-template-preview-image.is-document-preview-ready {
    background: #fff;
}

.seo-template-preview-image.is-document-preview-pending:not(.is-document-preview-ready) {
    visibility: hidden;
}

.seo-template-placeholder {
    display: grid;
    place-items: center;
    color: rgba(20, 24, 32, 0.45);
    font-family: var(--landing-display, Mulish, sans-serif);
    font-size: 2rem;
    font-weight: 800;
}

.seo-template-placeholder--large {
    min-height: 280px;
    padding: 24px;
    border-radius: 20px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    text-align: center;
}

.seo-template-meta {
    display: grid;
    gap: 4px;
    padding: 16px 18px 18px;
}

.seo-category-chips {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: thin;
}

.seo-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--main-200);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

    .seo-chip.is-current,
    .seo-chip:hover {
        background: var(--landing-accent, #2563eb);
        color: #fff;
    }

.seo-template-preview-block {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
}

.seo-template-preview--hero {
    border: 1px solid rgba(20, 24, 32, 0.1);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(31, 49, 77, 0.1);
}

.seo-template-hero-image {
    width: 100%;
    height: 100%;
    min-height: min(62vw, 530px);
    object-fit: contain;
    background: #fff;
}

.seo-template-facts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(20, 24, 32, 0.1);
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(37, 99, 235, 0.08), rgba(196, 165, 116, 0.13)), rgba(255, 255, 255, 0.78);
}

    .seo-template-facts p {
        margin: 0;
        padding: 14px 0;
        border-bottom: 1px solid rgba(20, 24, 32, 0.1);
        color: var(--main-200);
        line-height: 1.6;
    }

        .seo-template-facts p:last-child {
            border-bottom: 0;
        }

.seo-page-faq {
    max-width: 820px;
}

    .seo-page-faq .seo-faq-item {
        margin-bottom: 10px;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(20, 24, 32, 0.11);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.72);
    }

.seo-faq-item summary {
    padding: 18px 48px 18px 20px;
    color: var(--main-100);
    cursor: pointer;
    font-weight: 800;
    line-height: 1.45;
}

.seo-faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--main-200);
    line-height: 1.7;
}

.seo-page-cta-band {
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: clamp(22px, 3vw, 30px);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(248, 250, 252, 0.86));
}

    .seo-page-cta-band > h2 {
        margin-bottom: 12px;
    }

    .seo-page-cta-band .landing-cta {
        margin-top: 8px;
    }

.dark .seo-page-hero {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(23, 29, 41, 0.97), rgba(12, 17, 26, 0.95));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

    .dark .seo-page-hero-full-screen,
    .dark .seo-page-hero.seo-page-hero-full-screen {
        border: none;
        border-radius: 0;
        background: var(--footer-surface);
        box-shadow: none;
    }

    .dark .seo-page-hero .landing-cta--ghost {
        border-color: rgba(255, 255, 255, 0.45);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

        .dark .seo-page-hero .landing-cta--ghost:hover {
            border-color: rgba(255, 255, 255, 0.7);
            background: rgba(255, 255, 255, 0.16);
        }

.dark .seo-page-hero--category .seo-page-eyebrow {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.dark .seo-template-search-input {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    -webkit-text-fill-color: #f5f5f5;
    caret-color: #f5f5f5;
}

    .dark .seo-template-search-input::placeholder {
        color: rgba(245, 245, 245, 0.55);
        -webkit-text-fill-color: rgba(245, 245, 245, 0.55);
    }

    .dark .seo-template-search-input:focus-visible {
        border-color: rgba(96, 165, 250, 0.7);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
    }

.dark .seo-template-empty {
    color: rgba(245, 245, 245, 0.82);
}

    .dark .seo-template-empty a {
        color: #93c5fd;
    }

.dark .seo-page-hero h1,
.dark .seo-page-hero-copy h1,
.dark .seo-page-section > h2,
.dark .seo-page-section--content > h3,
.dark .seo-card h2,
.dark .seo-card h3,
.dark .seo-template-meta h2,
.dark .seo-template-meta h3,
.dark .seo-faq-item summary {
    color: var(--main-100, #f5f5f5);
}

.dark .seo-page-intro,
.dark .seo-page-section > p,
.dark .seo-card p,
.dark .seo-template-meta p,
.dark .seo-faq-item p,
.dark .seo-template-facts p,
.dark .seo-page-eyebrow,
.dark .seo-steps li {
    color: var(--main-300, #d4d4d4);
}

.dark .seo-card,
.dark .seo-template-card,
.dark .seo-page-faq .seo-faq-item,
.dark .seo-template-facts,
.dark .seo-chip,
.dark .seo-steps li {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(23, 29, 41, 0.86);
}

.dark .seo-chip {
    color: var(--main-100, #f5f5f5);
}

.dark .seo-template-facts,
.dark .seo-page-cta-band {
    background: linear-gradient(155deg, rgba(37, 99, 235, 0.18), rgba(196, 165, 116, 0.12)), rgba(23, 29, 41, 0.92);
}

    .dark .seo-template-facts p {
        border-color: rgba(255, 255, 255, 0.1);
    }

.dark .seo-template-card-badge {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 29, 41, 0.94);
    color: var(--main-100, #f5f5f5);
}

.seo-page-actions button.landing-cta {
    cursor: pointer;
}

/* SEO filter mini-app (Warhol, Polaroid, …) */
.seo-page-hero--filter-demo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(20px, 3vw, 32px);
    overflow: visible;
}

    .seo-page-hero--filter-demo .seo-page-hero-copy {
        max-width: none;
    }

    .seo-page-hero--filter-demo h1 {
        max-width: none;
    }

    .seo-page-hero--filter-demo .seo-page-intro {
        max-width: none;
        margin-bottom: 0;
    }

    .seo-page-hero--filter-demo .seo-page-more {
        max-width: none;
        margin: 10px 0 0;
    }

.filter-landing-app {
    --filter-view-zoom: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 22rem);
    gap: 16px 24px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

    .filter-landing-app > .filter-landing-stage {
        grid-column: 1;
        grid-row: 1;
    }

    .filter-landing-app > .filter-landing-empty {
        grid-column: 1;
        grid-row: 2;
    }

    .filter-landing-app > .filter-landing-controls {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: stretch;
    }

.filter-landing-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: clamp(200px, 26vw, 360px);
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 18px 42px rgba(25, 42, 69, 0.2);
    transition: outline-color 160ms ease, box-shadow 160ms ease;
    container-type: inline-size;
}

    .filter-landing-stage.is-dragover {
        outline: 3px solid var(--landing-accent, #2563eb);
        outline-offset: -3px;
        box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
    }

.filter-landing-frame {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    min-width: 0;
    margin-inline: auto;
}

.filter-landing-viewport {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, max-content);
    max-width: 100%;
    min-width: 0;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
}

.filter-landing-app.is-zoomed .filter-landing-stage {
    touch-action: none;
}

.filter-landing-stage:focus {
    outline: none;
}

.filter-landing-stage:focus-visible {
    outline: 3px solid var(--landing-accent, #2563eb);
    outline-offset: -3px;
}

.filter-landing-app.can-pan .filter-landing-viewport {
    cursor: grab;
}

.filter-landing-app.can-pan.is-meshing .filter-landing-paint-overlay:not(.is-over-handle):not(.is-dragging),
.filter-landing-app.can-pan.is-copying .filter-landing-paint-overlay:not(.is-over-handle):not(.is-dragging),
.filter-landing-app.can-pan.is-cropping .filter-landing-paint-overlay:not(.is-over-handle):not(.is-dragging) {
    cursor: grab;
}

.filter-landing-app.is-panning .filter-landing-viewport,
.filter-landing-app.is-panning .filter-landing-paint-overlay {
    cursor: grabbing;
}

.filter-landing-pan {
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
}

.filter-landing-pan-btn {
    appearance: none;
    pointer-events: auto;
    position: absolute;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.4);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
    touch-action: manipulation;
}

.filter-landing-pan-btn--left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.filter-landing-pan-btn--right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.filter-landing-pan-btn--up {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.filter-landing-pan-btn--down {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.filter-landing-pan-btn:hover:not(:disabled),
.filter-landing-pan-btn:focus-visible {
    background: rgba(15, 23, 42, 0.8);
    outline: none;
}

.filter-landing-pan-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.55);
}

.filter-landing-pan-btn:disabled {
    opacity: 0.38;
    cursor: default;
    box-shadow: none;
}

.filter-landing-pan-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.filter-landing-premium {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 8;
    pointer-events: none;
}

    .filter-landing-premium[hidden] {
        display: none !important;
    }

    .filter-landing-premium .premium-crown {
        display: inline-flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    }

        .filter-landing-premium .premium-crown svg {
            display: block;
            width: 24px;
            height: 24px;
        }

.filter-landing-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-landing-zoom-btn {
    appearance: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
    touch-action: manipulation;
}

    .filter-landing-zoom-btn:hover:not(:disabled),
    .filter-landing-zoom-btn:focus-visible {
        background: rgba(15, 23, 42, 0.8);
        outline: none;
    }

    .filter-landing-zoom-btn:focus-visible {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.55);
    }

    .filter-landing-zoom-btn:disabled {
        opacity: 0.38;
        cursor: default;
        box-shadow: none;
    }

    .filter-landing-zoom-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.filter-landing-placeholder,
.filter-landing-canvas {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(65vh, 480px);
    object-fit: contain;
}

.filter-landing-placeholder {
    background: #111827;
}

.filter-landing-canvas {
    background-color: var(--component-checker-bg);
    background-image: repeating-conic-gradient(var(--component-checker-square) 0deg 90deg, var(--component-checker-bg) 90deg 180deg);
    background-size: var(--component-square-size) var(--component-square-size);
}

    .filter-landing-placeholder[hidden],
    .filter-landing-canvas[hidden] {
        display: none !important;
    }

.filter-landing-paint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    z-index: 4;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    touch-action: none;
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
}

    .filter-landing-paint-overlay[hidden] {
        display: none !important;
    }

.filter-landing-app.is-painting .filter-landing-stage {
    cursor: crosshair;
}

.filter-landing-app.is-meshing .filter-landing-paint-overlay {
    cursor: default;
}

    .filter-landing-app.is-meshing .filter-landing-paint-overlay.is-over-handle,
    .filter-landing-app.is-cropping .filter-landing-paint-overlay.is-over-handle {
        cursor: move;
    }

    .filter-landing-app.is-meshing .filter-landing-paint-overlay.is-dragging,
    .filter-landing-app.is-cropping .filter-landing-paint-overlay.is-dragging {
        cursor: grabbing;
    }

.filter-landing-app.is-cropping .filter-landing-paint-overlay {
    cursor: default;
}

.filter-landing-app.is-copying .filter-landing-paint-overlay {
    cursor: crosshair;
}

    .filter-landing-app.is-copying .filter-landing-paint-overlay.is-over-handle {
        cursor: move;
    }

    .filter-landing-app.is-copying .filter-landing-paint-overlay.is-dragging {
        cursor: grabbing;
    }

.filter-landing-app.is-panning .filter-landing-stage,
.filter-landing-app.is-panning .filter-landing-paint-overlay {
    cursor: grabbing;
}

.filter-landing-app.is-painting .filter-landing-canvas--original,
.filter-landing-app.is-painting .filter-landing-compare-divider,
.filter-landing-app.is-painting .filter-landing-compare-input,
.filter-landing-app.is-cropping .filter-landing-canvas--original,
.filter-landing-app.is-cropping .filter-landing-compare-divider,
.filter-landing-app.is-cropping .filter-landing-compare-input {
    visibility: hidden;
    pointer-events: none;
}

.filter-landing-paint-hint {
    margin: 0;
    color: var(--main-200);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.filter-landing-crop-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
}

    .filter-landing-crop-meta[hidden] {
        display: none !important;
    }

.filter-landing-crop-size {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.6rem;
    margin: 0;
    color: var(--main-200);
    font-size: 0.9rem;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.filter-landing-size-k {
    font-weight: 600;
}

.filter-landing-crop-size[hidden],
.filter-landing-crop-square[hidden] {
    display: none !important;
}

.filter-landing-crop-square {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--main-200);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

    .filter-landing-crop-square input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: #16a34a;
        cursor: pointer;
    }

.dark .filter-landing-paint-hint,
.dark .filter-landing-crop-size,
.dark .filter-landing-crop-square {
    color: var(--main-200, #d1d5db);
}

.filter-landing-app[data-engine="photo-fold-collage"] .filter-landing-frame {
    max-width: 100%;
}

.filter-landing-app[data-engine="photo-fold-collage"] .filter-landing-placeholder,
.filter-landing-app[data-engine="photo-fold-collage"] .filter-landing-canvas {
    width: 100%;
    max-width: 100%;
}

.filter-landing-app[data-engine="collage"] .filter-landing-placeholder,
.filter-landing-app[data-engine$="-collage"] .filter-landing-placeholder {
    display: none !important;
}

.filter-landing-app[data-engine="remove-background"] .filter-landing-canvas,
.filter-landing-app[data-engine="sticker-maker"] .filter-landing-canvas,
.filter-landing-app[data-engine="out-of-bounds"] .filter-landing-canvas,
.filter-landing-app[data-engine="uncrop"] .filter-landing-canvas,
.filter-landing-app[data-engine="draw-tools"] .filter-landing-canvas,
.filter-landing-app[data-engine="transform-tools"] .filter-landing-canvas,
.filter-landing-app[data-engine="copy-object"] .filter-landing-canvas,
.filter-landing-app[data-engine="sticker-collage"] .filter-landing-canvas,
.filter-landing-app[data-engine$="-collage"] .filter-landing-canvas,
.filter-landing-app[data-engine="photo-fold-collage"] .filter-landing-canvas,
.filter-landing-app[data-engine="polaroid-collage"] .filter-landing-canvas,
.filter-landing-app[data-engine="polaroid"] .filter-landing-canvas,
.filter-landing-app[data-engine="collage"] .filter-landing-canvas,
.filter-landing-app[data-engine="comic"] .filter-landing-canvas {
    background-color: var(--component-checker-bg);
    background-image: repeating-conic-gradient(var(--component-checker-square) 0deg 90deg, var(--component-checker-bg) 90deg 180deg);
    background-size: var(--component-square-size) var(--component-square-size);
}

.filter-landing-compare {
    --filter-compare-position: 50%;
    position: relative;
    width: min(100%, max-content);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    user-select: none;
}

    .filter-landing-compare[hidden] {
        display: none;
    }

.filter-landing-canvas--result {
    position: relative;
}

.filter-landing-canvas--original {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    clip-path: inset(0 calc(100% - var(--filter-compare-position)) 0 0);
    object-fit: fill;
    pointer-events: none;
}

.filter-landing-compare-divider {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var(--filter-compare-position);
    width: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35), 0 0 14px rgba(15, 23, 42, 0.45);
    transform: translateX(-50%) scaleX(calc(1 / var(--filter-view-zoom, 1)));
    transform-origin: center;
    pointer-events: none;
}

.filter-landing-compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: #1f1f1f;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
    transform: translate(-50%, -50%) scaleY(calc(1 / var(--filter-view-zoom, 1)));
    transform-origin: center;
}

    .filter-landing-compare-handle svg {
        width: 18px;
        height: 22px;
        flex: 0 0 18px;
        fill: currentColor;
    }

.filter-landing-compare input.filter-landing-compare-input[type="range"] {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    cursor: ew-resize;
    touch-action: none;
}

.filter-landing-app:not(.has-comparison) .filter-landing-canvas--original,
.filter-landing-app:not(.has-comparison) .filter-landing-compare-divider,
.filter-landing-app:not(.has-comparison) .filter-landing-compare-input {
    visibility: hidden;
    pointer-events: none;
}

.filter-landing-app.is-peek-original .filter-landing-canvas--original {
    clip-path: inset(0);
}

.filter-landing-app.is-peek-original .filter-landing-compare-divider,
.filter-landing-app.is-peek-original .filter-landing-compare-input,
.filter-landing-app.is-peek-original .filter-landing-paint-overlay {
    visibility: hidden;
    pointer-events: none;
}

.filter-landing-compare:has(.filter-landing-compare-input:focus-visible) .filter-landing-compare-handle {
    outline: 3px solid var(--landing-accent, #2563eb);
    outline-offset: 3px;
}

.filter-landing-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

    .filter-landing-empty p {
        max-width: 36ch;
        margin: 0;
        color: var(--main-200);
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.45;
    }

.filter-landing-app.has-image .filter-landing-empty,
.filter-landing-app.has-image .filter-landing-placeholder {
    display: none;
}

.dark .filter-landing-empty p {
    color: var(--main-200, #d1d5db);
}

.filter-landing-status {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    transform: translateX(-50%);
    pointer-events: none;
}

.filter-landing-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 3;
    border-inline-start: 1px solid rgba(16, 24, 40, 0.1);
    padding-inline-start: 20px;
}

.filter-landing-actions-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
}

.filter-landing-actions-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.filter-landing-actions-3 .landing-cta {
    width: 100%;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 999px;
}

.filter-landing-controls-label {
    margin: 0;
    color: var(--main-200);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-landing-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-landing-presets-break {
    flex-basis: 100%;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.filter-landing-text {
    display: inline-flex;
    align-items: center;
    flex: 1 1 220px;
    min-width: 160px;
    max-width: 360px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.filter-landing-controls .filter-landing-text {
    flex: 1 1 100%;
    max-width: none;
}

.filter-landing-text-input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--main-100);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

    .filter-landing-text-input:focus {
        outline: none;
    }

.filter-landing-text:focus-within {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-landing-text-input:disabled {
    opacity: 0.7;
}

.filter-landing-text-input::placeholder {
    color: var(--main-200);
    opacity: 0.55;
    font-weight: 600;
}

.filter-landing-color {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 12px 4px 4px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-100);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

    .filter-landing-color input[type="color"] {
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid rgba(20, 24, 32, 0.16);
        border-radius: 50%;
        background: none;
        overflow: hidden;
        cursor: pointer;
    }

        .filter-landing-color input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        .filter-landing-color input[type="color"]::-webkit-color-swatch {
            border: none;
            border-radius: 50%;
        }


.filter-landing-effect-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.filter-landing-effect-selected-only {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 2px;
    color: var(--main-200);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

    .filter-landing-effect-selected-only input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: #16a34a;
        cursor: pointer;
    }

.dark .filter-landing-effect-selected-only {
    color: var(--main-200, #d1d5db);
}

.filter-landing-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.9rem;
}

.filter-landing-select-label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.filter-landing-select--stacked {
    flex-wrap: wrap;
    row-gap: 6px;
}

.filter-landing-select--stacked > .filter-landing-select-label {
    flex: 1 0 100%;
}

.filter-landing-select--stacked > script {
    display: none;
}

.filter-landing-select select {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: inherit;
    font: inherit;
    line-height: 1.2;
    min-width: 12em;
    max-width: 18em;
    text-overflow: ellipsis;
    cursor: pointer;
    max-width: 160px;
}

    .filter-landing-select select:focus {
        outline: none;
        border-color: rgba(37, 99, 235, 0.45);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

.filter-landing-select-dice {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
}

.filter-landing-select-dice[hidden] {
    display: none !important;
}

.filter-landing-comic-bubble {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    max-width: 100%;
}

    .filter-landing-comic-bubble .filter-landing-text {
        flex: 1 1 160px;
        min-width: 140px;
        max-width: 240px;
    }

.filter-landing-comic-bubble-copy {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .filter-landing-comic-bubble-copy[hidden] {
        display: none !important;
    }

.filter-landing-comic-bubble-font {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.filter-landing-comic-bubble-font-input {
    margin: 0;
    accent-color: var(--landing-accent, #2563eb);
    cursor: pointer;
}

.filter-landing-comic-bubble-font-value {
    min-width: 2.5ch;
    font-variant-numeric: tabular-nums;
}

.filter-landing-preset {
    appearance: none;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-100);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.filter-landing-preset--layout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 14px;
}

.filter-landing-layout-icon {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    opacity: 0.8;
}

    .filter-landing-layout-icon rect {
        fill: currentColor;
    }

.filter-landing-preset.is-active .filter-landing-layout-icon {
    opacity: 0.88;
}

.filter-landing-preset:hover,
.filter-landing-preset:focus-visible {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
    outline: none;
}

.filter-landing-preset.is-active {
    border-color: transparent;
    background: var(--landing-accent, #2563eb);
    color: #fff;
}

.filter-landing-preset:disabled {
    cursor: wait;
    opacity: 0.7;
}

.filter-landing-brush-size {
    position: relative;
    display: inline-flex;
}

    .filter-landing-brush-size[hidden] {
        display: none !important;
    }

.filter-landing-brush-size-popover {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 188px;
    padding: 10px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

    .filter-landing-brush-size-popover[hidden] {
        display: none !important;
    }

.filter-landing-brush-size-input {
    flex: 1 1 auto;
    width: 132px;
    margin: 0;
    accent-color: var(--landing-accent, #2563eb);
    cursor: pointer;
    touch-action: none;
}

.filter-landing-brush-size-value {
    min-width: 2ch;
    color: var(--main-200);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.filter-landing-preset--icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-color: transparent;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    touch-action: manipulation;
}

    .filter-landing-preset--icon:hover,
    .filter-landing-preset--icon:focus-visible {
        border-color: transparent;
        background: #15803d;
        color: #fff;
    }

    .filter-landing-preset--icon.is-active {
        border-color: transparent;
        background: #15803d;
        color: #fff;
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
    }

    .filter-landing-preset--icon svg {
        display: block;
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

.filter-landing-preset--randomize,
.filter-landing-preset--crop,
.filter-landing-preset--props,
.filter-landing-preset--background,
.filter-landing-preset--add-bubble {
    border-color: transparent;
    background: #16a34a;
    color: #fff;
}

.filter-landing-preset--props,
.filter-landing-preset--background {
    border-radius: 12px;
}

.filter-landing-app.is-cropping .filter-landing-presets > :not([data-filter-crop]),
.filter-landing-app.is-cropping .filter-landing-ai-actions:not([data-filter-crop-actions]),
.filter-landing-app.is-cropping .filter-landing-comic-bubble,
.filter-landing-app.is-cropping .filter-landing-text,
.filter-landing-app.is-cropping .filter-landing-color,
.filter-landing-app.is-cropping .filter-landing-effect-block,
.filter-landing-app.is-cropping .filter-landing-select,
.filter-landing-app.is-cropping .filter-landing-paint-hint,
.filter-landing-app.is-cropping .filter-landing-samples {
    pointer-events: none;
    opacity: 0.55;
}

.filter-landing-preset--brush-size,
.filter-landing-preset--brush-size.is-active,
.filter-landing-preset--threshold,
.filter-landing-preset--threshold.is-active {
    border-color: transparent;
    background: #16a34a;
    color: #fff;
}

    .filter-landing-preset--brush-size:hover,
    .filter-landing-preset--brush-size:focus-visible,
    .filter-landing-preset--brush-size.is-active:hover,
    .filter-landing-preset--brush-size.is-active:focus-visible,
    .filter-landing-preset--threshold:hover,
    .filter-landing-preset--threshold:focus-visible,
    .filter-landing-preset--threshold.is-active:hover,
    .filter-landing-preset--threshold.is-active:focus-visible {
        border-color: transparent;
        background: #15803d;
        color: #fff;
    }

[data-filter-brush-size] .filter-landing-brush-size-input,
[data-filter-threshold] .filter-landing-brush-size-input {
    accent-color: #16a34a;
}

.filter-landing-app.is-busy .filter-landing-canvas {
    opacity: 0.72;
}

.filter-landing-ai-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

    .filter-landing-ai-actions[hidden] {
        display: none !important;
    }

    .filter-landing-ai-actions .landing-cta {
        min-height: 36px;
        padding: 8px;
        font-size: 0.9rem;
        border-radius: 999px;
    }

.filter-landing-open-background,
.filter-landing-apply {
    min-width: 6rem;
}

    .filter-landing-start:disabled,
    .filter-landing-open-background:disabled,
    .filter-landing-apply:disabled,
    .filter-landing-clear:disabled,
    .filter-landing-reset:disabled,
    .filter-landing-shuffle:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.filter-landing-start,
.filter-landing-clear,
.filter-landing-reset,
.filter-landing-shuffle {
    min-width: 6rem;
}

body.filter-landing-modal-open {
    overflow: hidden;
}

/* Editor wait dialog must sit on <body>; the hero header clips position:fixed. */
body.landing-page > .modal-overlay.active {
    display: flex !important;
    z-index: calc(var(--z-modal, 9000) + 20);
}

.filter-landing-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 9000);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 16, 24, 0.48);
    backdrop-filter: blur(1px);
}

    .filter-landing-modal-overlay[hidden] {
        display: none !important;
    }

.filter-landing-modal {
    position: relative;
    width: min(100%, 360px);
    padding: 20px 22px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #171c26;
    color: #f5f5f5;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.filter-landing-modal-header {
    margin: 0 0 10px;
    font-size: 1.0rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.filter-landing-modal-close {
    appearance: none;
    position: absolute;
    top: 10px;
    right: 12px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: rgba(245, 245, 245, 0.72);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

    .filter-landing-modal-close:hover,
    .filter-landing-modal-close:focus-visible {
        color: #fff;
        outline: none;
    }

.filter-landing-login-actions,
.filter-landing-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-landing-modal-actions {
    margin-top: 14px;
}

.filter-landing-modal-actions .landing-cta {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 999px;
}

.filter-landing-props-body .filter-landing-comic-bubble-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.filter-landing-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-landing-modal-hint {
    margin: 0;
    color: rgba(245, 245, 245, 0.78);
    font-size: 0.92rem;
    line-height: 1.45;
}

.filter-landing-modal-thumbs {
    display: flex;
    justify-content: center;
}

.filter-landing-modal-thumb {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.filter-landing-modal-progress {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.filter-landing-modal-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    animation: filter-landing-progress 1.1s ease-in-out infinite;
}

@keyframes filter-landing-progress {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

.filter-landing-modal.filter-landing-props {
    display: flex;
    flex-direction: column;
    width: min(100%, 420px);
    max-height: min(80vh, 640px);
    padding: 20px 18px 16px;
}

.filter-landing-props .filter-landing-modal-header {
    padding-right: 36px;
}

.filter-landing-props-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    min-height: 0;
    margin: 0 -4px;
    padding: 2px 4px 4px;
    -webkit-overflow-scrolling: touch;
}

.filter-landing-props-empty {
    margin: 0;
    color: rgba(245, 245, 245, 0.78);
    font-size: 0.92rem;
    line-height: 1.45;
}

.filter-landing-prop {
    display: grid;
    gap: 6px;
    margin: 0 0 6px 0;
}

.filter-landing-prop-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: rgba(245, 245, 245, 0.88);
    font-size: 0.9rem;
    line-height: 1.2;
    margin: 0 0 6px 0;
}

.filter-landing-prop-value {
    min-width: 3ch;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.filter-landing-prop-range {
    width: 100%;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

.filter-landing-prop-color,
.filter-landing-prop-select,
.filter-landing-prop-text {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
}

.filter-landing-prop-text {
    background: #fff;
    color: #111;
    -webkit-text-fill-color: #111;
    caret-color: #111;
    color-scheme: light;
    appearance: none;
    -webkit-appearance: none;
}

.filter-landing-prop-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-landing-prop-swatch {
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
}

.filter-landing-prop-select,
.filter-landing-prop-text {
    padding: 8px 10px;
}

    .filter-landing-prop-select option {
        color: #111;
        background: #fff;
    }

.filter-landing-prop-text {
    min-height: 2.4rem;
    resize: vertical;
}

textarea.filter-landing-prop-text {
    min-height: 4.8rem;
    line-height: 1.35;
}

.filter-landing-prop--boolean {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-landing-prop--boolean .filter-landing-prop-label {
        justify-content: flex-start;
    }

.filter-landing-prop-check {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

.filter-landing-photo-picker-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.filter-landing-modal.filter-landing-photo-picker {
    display: flex;
    flex-direction: column;
    width: min(100%, 520px);
    max-height: min(72vh, 640px);
    padding: 18px 18px 16px;
    transform: translateZ(0);
}

.filter-landing-photo-picker .filter-landing-modal-header {
    padding-right: 36px;
}

.filter-landing-photo-picker-search {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 12px;
}

.filter-landing-photo-picker-input {
    flex: 1 1 10rem;
    min-width: 10rem;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    -webkit-text-fill-color: #f5f5f5;
    caret-color: #f5f5f5;
    font: inherit;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
}

    .filter-landing-photo-picker-input::placeholder {
        color: rgba(245, 245, 245, 0.55);
    }

    .filter-landing-photo-picker-input:focus-visible {
        outline: none;
        border-color: rgba(96, 165, 250, 0.7);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
    }

.filter-landing-photo-picker-submit.landing-cta {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-height: 42px;
    padding: 8px 16px;
    white-space: nowrap;
}

.filter-landing-photo-picker-status {
    margin: 0 0 10px;
    color: rgba(245, 245, 245, 0.78);
    font-size: 0.9rem;
}

    .filter-landing-photo-picker-status[hidden] {
        display: none !important;
    }

.filter-landing-photo-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-content: start;
    align-items: start;
    gap: 8px;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 180px;
    padding: 2px;
    margin: 0 -2px 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.filter-landing-photo-picker-tile {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

    .filter-landing-photo-picker-tile:hover,
    .filter-landing-photo-picker-tile:focus-visible {
        border-color: rgba(96, 165, 250, 0.7);
        outline: none;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
    }

.filter-landing-photo-picker-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    vertical-align: top;
    background: rgba(255, 255, 255, 0.04);
}

.filter-landing-photo-picker-credit {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 6px 5px;
    background: linear-gradient(transparent, rgba(12, 16, 24, 0.78));
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: left;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-landing-photo-picker-more {
    align-self: center;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
}

    .filter-landing-photo-picker-more:hover,
    .filter-landing-photo-picker-more:focus-visible {
        border-color: rgba(96, 165, 250, 0.7);
        background: rgba(37, 99, 235, 0.28);
        color: #fff;
    }

    .filter-landing-photo-picker-more[hidden] {
        display: none !important;
    }

@media (max-width: 520px) {
    .filter-landing-photo-picker-overlay {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .filter-landing-modal.filter-landing-photo-picker {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
        padding: 14px 14px 12px;
    }

    .filter-landing-photo-picker-submit.landing-cta {
        width: auto;
        padding: 8px 12px;
    }

    .filter-landing-photo-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 1 1 auto;
        min-height: 0;
    }
}

.dark .filter-landing-stage {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 214, 102, 0.18), transparent 42%), linear-gradient(320deg, rgba(255, 64, 129, 0.16), transparent 48%), #1a2230;
}

.dark .filter-landing-controls {
    border-inline-start-color: rgba(255, 255, 255, 0.12);
}

.dark .filter-landing-controls-label {
    color: var(--main-200, #d1d5db);
}

.dark .filter-landing-text {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 28, 38, 0.88);
}

.dark .filter-landing-text-input {
    color: var(--main-100, #f5f5f5);
}

    .dark .filter-landing-text-input::placeholder {
        color: var(--main-200, #d1d5db);
    }

.dark .filter-landing-text:focus-within {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.dark .filter-landing-color {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 28, 38, 0.88);
    color: var(--main-100, #f5f5f5);
}

    .dark .filter-landing-color input[type="color"] {
        border-color: rgba(255, 255, 255, 0.2);
    }

.dark .filter-landing-select {
    color: var(--main-100, #f5f5f5);
}

    .dark .filter-landing-select select {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(23, 28, 38, 0.88);
        color: var(--main-100, #f5f5f5);
    }

        .dark .filter-landing-select select:focus {
            border-color: rgba(96, 165, 250, 0.55);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
        }

.dark .filter-landing-preset {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 28, 38, 0.88);
    color: var(--main-100, #f5f5f5);
}

    .dark .filter-landing-preset:hover,
    .dark .filter-landing-preset:focus-visible {
        border-color: rgba(96, 165, 250, 0.55);
        background: rgba(37, 99, 235, 0.22);
    }

    .dark .filter-landing-preset.is-active {
        background: var(--landing-accent, #2563eb);
        color: #fff;
    }

.dark .filter-landing-brush-size-popover {
    border-color: rgba(255, 255, 255, 0.12);
    background: #171c26;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.dark .filter-landing-brush-size-value,
.dark .filter-landing-comic-bubble-font-value {
    color: var(--main-200, #d1d5db);
}

.dark .filter-landing-preset--icon,
.dark .filter-landing-preset--randomize,
.dark .filter-landing-preset--crop,
.dark .filter-landing-preset--props,
.dark .filter-landing-preset--background,
.dark .filter-landing-preset--add-bubble {
    border-color: transparent;
    background: #16a34a;
    color: #fff;
    border-radius: 12px;
}

    .dark .filter-landing-preset--icon:hover,
    .dark .filter-landing-preset--icon:focus-visible,
    .dark .filter-landing-preset--icon.is-active,
    .dark .filter-landing-preset--randomize:hover,
    .dark .filter-landing-preset--randomize:focus-visible,
    .dark .filter-landing-preset--crop:hover,
    .dark .filter-landing-preset--crop:focus-visible,
    .dark .filter-landing-preset--props:hover,
    .dark .filter-landing-preset--props:focus-visible,
    .dark .filter-landing-preset--background:hover,
    .dark .filter-landing-preset--background:focus-visible,
    .dark .filter-landing-preset--add-bubble:hover,
    .dark .filter-landing-preset--add-bubble:focus-visible {
        border-color: transparent;
        background: #22c55e;
        color: #fff;
    }

.dark .filter-landing-preset--brush-size,
.dark .filter-landing-preset--brush-size.is-active,
.dark .filter-landing-preset--threshold,
.dark .filter-landing-preset--threshold.is-active {
    border-color: transparent;
    background: #16a34a;
    color: #fff;
}

    .dark .filter-landing-preset--brush-size:hover,
    .dark .filter-landing-preset--brush-size:focus-visible,
    .dark .filter-landing-preset--brush-size.is-active:hover,
    .dark .filter-landing-preset--brush-size.is-active:focus-visible,
    .dark .filter-landing-preset--threshold:hover,
    .dark .filter-landing-preset--threshold:focus-visible,
    .dark .filter-landing-preset--threshold.is-active:hover,
    .dark .filter-landing-preset--threshold.is-active:focus-visible {
        border-color: transparent;
        background: #22c55e;
        color: #fff;
    }

@media (max-width: 960px) {
    .seo-page-hero--with-media,
    .seo-template-preview-block {
        grid-template-columns: 1fr;
    }

    .filter-landing-app {
        grid-template-columns: minmax(0, 1fr);
    }

        .filter-landing-app > .filter-landing-stage,
        .filter-landing-app > .filter-landing-empty,
        .filter-landing-app > .filter-landing-controls {
            grid-column: 1;
            grid-row: auto;
        }

    .filter-landing-stage {
        min-height: 0;
    }

    .filter-landing-viewport,
    .filter-landing-compare {
        width: 100%;
        max-width: 100%;
    }

    .filter-landing-placeholder,
    .filter-landing-canvas:not(.filter-landing-canvas--original) {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 100vw;
    }

    .filter-landing-controls {
        border-inline-start: 0;
        padding-inline-start: 0;
        border-block-start: 1px solid rgba(16, 24, 40, 0.1);
        padding-block-start: 16px;
    }

    .dark .filter-landing-controls {
        border-block-start-color: rgba(255, 255, 255, 0.12);
    }

    .seo-template-hero-image {
        min-height: auto;
    }

    .seo-template-facts {
        min-height: auto;
    }
}

.fractal-landing-app {
    align-items: start;
}

    .fractal-landing-app .fractal-landing-frame {
        max-width: none;
        width: 100%;
        height: auto;
    }

.fractal-landing-stage {
    background: #07090f;
    box-shadow: none;
    place-items: stretch;
    min-height: 0;
    height: auto;
}

.fractal-landing-viewport {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    cursor: crosshair;
    background: #07090f;
}

.fractal-landing-app .fractal-landing-canvas,
.fractal-landing-app .fractal-landing-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: fill;
}

.fractal-landing-overlay {
    position: absolute;
    inset: 0;
    touch-action: none;
}

.fractal-landing-more,
.filter-landing-more {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8em;
}

.filter-landing-more {
    margin: 14px 0 0;

}

.filter-landing-samples {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    flex-shrink: 0;
}

.filter-landing-sample {
    appearance: none;
    display: block;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(16, 24, 40, 0.06);
    cursor: pointer;
}

    .filter-landing-sample img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .filter-landing-sample:hover,
    .filter-landing-sample:focus-visible {
        border-color: var(--landing-accent, #2563eb);
    }

    .filter-landing-sample.is-active {
        border-color: var(--landing-accent, #2563eb);
    }

    .filter-landing-sample:disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }

.dark .filter-landing-sample {
    background: rgba(255, 255, 255, 0.08);
}

    .dark .filter-landing-sample:hover,
    .dark .filter-landing-sample:focus-visible,
    .dark .filter-landing-sample.is-active {
        border-color: #93c5fd;
    }

.fractal-landing-more a,
.filter-landing-more a {
    color: var(--landing-accent, #2563eb);
    font-size: 1.0rem;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.dark .fractal-landing-more a,
.dark .filter-landing-more a {
    color: #93c5fd;
}

.fractal-landing-coords {
    margin: 14px 0 0;
    color: var(--main-200);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    line-height: 1.4;
    word-break: break-word;
}

.dark .fractal-landing-coords {
    color: rgba(255, 255, 255, 0.72);
}

.fractal-landing-app .fractal-landing-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .fractal-landing-app .fractal-landing-types .landing-cta {
        width: auto;
        flex: 1 1 calc(33.33% - 8px);
        min-width: 6.4rem;
    }

.fractal-landing-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .fractal-landing-field[hidden] {
        display: none;
    }

.fractal-landing-select {
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-200);
    font: inherit;
    font-size: 0.9rem;
}

    .fractal-landing-select option {
        color: #111;
        background: #fff;
    }


.fractal-landing-gradient-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

    .fractal-landing-gradient-row .fractal-landing-gradient {
        flex: 1 1 auto;
    }

.fractal-landing-dice {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 24, 32, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main-200);
    cursor: pointer;
}

    .fractal-landing-dice svg {
        width: 22px;
        height: 22px;
    }

.dark .fractal-landing-dice {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.fractal-landing-gradient {
    width: 100%;
    height: 40px;
    margin: 0;
    border-radius: 8px;
    box-sizing: border-box;
}

.dark .fractal-landing-gradient {
    border-color: rgba(255, 255, 255, 0.14);
}

.dark .fractal-landing-select {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.fractal-landing-app.is-busy .fractal-landing-overlay {
    cursor: wait;
}

.filter-landing-zoom-btn .filter-fs-exit {
    display: none;
}

.filter-landing-zoom-btn[aria-pressed="true"] .filter-fs-enter {
    display: none;
}

.filter-landing-zoom-btn[aria-pressed="true"] .filter-fs-exit {
    display: block;
}

.filter-landing-zoom-btn[aria-pressed="true"] {
    background: rgba(37, 99, 235, 0.92);
}

.filter-landing-zoom-btn[data-filter-hide-frames] {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body.filter-app-mode {
    --seo-chrome-height: 4.75rem;
}

    body.filter-app-mode .layout-container > header,
    body.filter-app-mode .seo-category-nav {
        flex: 0 0 auto;
    }

    body.filter-app-mode .seo-category-panel {
        max-height: min(calc(100dvh - 8.5rem), 520px);
    }

    body.filter-app-mode .seo-page--filter-demo {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 clamp(56px, 8vw, 96px);
    }

        body.filter-app-mode .seo-page--filter-demo > .seo-page-hero-copy,
        body.filter-app-mode .seo-page--filter-demo > .seo-page-section {
            width: calc(100% - 2 * var(--landing-pad, 24px));
            margin-left: auto;
            margin-right: auto;
        }

        body.filter-app-mode .seo-page--filter-demo > .seo-page-hero-copy {
            max-width: none;
            margin-top: clamp(36px, 6vw, 76px);
            margin-bottom: clamp(40px, 6vw, 72px);
        }

            body.filter-app-mode .seo-page--filter-demo > .seo-page-hero-copy h1,
            body.filter-app-mode .seo-page--filter-demo > .seo-page-hero-copy .seo-page-intro {
                max-width: none;
            }

            body.filter-app-mode .seo-page--filter-demo > .seo-page-hero-copy .seo-page-intro {
                margin-bottom: 0;
            }

    body.filter-app-mode .seo-page-hero,
    body.filter-app-mode .seo-page-hero-full-screen,
    body.filter-app-mode .seo-page-hero-full-screen.seo-page-hero--with-media,
    body.filter-app-mode .seo-page-hero-full-screen.seo-page-hero--filter-demo {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: calc(100dvh - var(--seo-chrome-height));
        min-height: 24rem;
        margin: 0;
        padding: 8px;
        overflow: hidden;
        border: none;
        border-radius: 0;
        background: var(--footer-surface);
        box-shadow: none;
    }

    body.filter-app-mode .filter-landing-app {
        display: grid;
        flex: 1 1 auto;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 22rem);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
        min-height: 0;
        height: 100%;
    }

        body.filter-app-mode .filter-landing-app > .filter-landing-empty {
            display: none;
        }

        body.filter-app-mode .filter-landing-app > .filter-landing-controls {
            grid-column: 2;
            grid-row: 1;
            align-self: stretch;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
        }

    body.filter-app-mode .filter-landing-stage {
        place-items: stretch;
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    body.filter-app-mode .filter-landing-frame {
        display: flex;
        flex-direction: column;
        max-width: none;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    body.filter-app-mode .filter-landing-viewport {
        flex: 1 1 0;
        display: grid;
        place-items: center;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    body.filter-app-mode .filter-landing-placeholder,
    body.filter-app-mode .filter-landing-canvas:not(.filter-landing-canvas--original),
    body.filter-app-mode .filter-landing-compare {
        max-width: 100%;
        max-height: 100%;
        min-width: 0;
        min-height: 0;
    }

    body.filter-app-mode .filter-landing-placeholder,
    body.filter-app-mode .filter-landing-canvas:not(.filter-landing-canvas--original) {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Definite size so the result canvas's max-height: 100% can shrink a tall/square image. */
    body.filter-app-mode .filter-landing-compare {
        display: grid;
        place-items: center;
        width: 100%;
        height: 100%;
    }

    body.filter-app-mode .filter-landing-canvas--original {
        object-fit: contain;
    }

    body.filter-app-mode .fractal-landing-viewport {
        place-items: stretch;
        aspect-ratio: auto;
    }

    body.filter-app-mode .fractal-landing-app .fractal-landing-canvas,
    body.filter-app-mode .fractal-landing-app .fractal-landing-overlay {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
    }

@media (max-width: 960px) {
    body.filter-app-mode .seo-page-hero,
    body.filter-app-mode .seo-page-hero-full-screen,
    body.filter-app-mode .seo-page-hero-full-screen.seo-page-hero--with-media,
    body.filter-app-mode .seo-page-hero-full-screen.seo-page-hero--filter-demo {
        padding: 4px;
    }

    body.filter-app-mode .filter-landing-app {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 8px;
    }

        body.filter-app-mode .filter-landing-app > .filter-landing-stage {
            grid-column: 1;
            grid-row: 1;
        }

        body.filter-app-mode .filter-landing-app > .filter-landing-controls {
            grid-column: 1;
            grid-row: 2;
            max-height: min(26vh, 200px);
            gap: 8px;
            padding-block-start: 8px;
        }

        /* Square canvas hugs the screen width so leftover height goes to controls. */
        body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) {
            grid-template-rows: auto minmax(0, 1fr);
        }

            body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) > .filter-landing-stage {
                height: auto;
                min-height: 0;
                place-items: center;
            }

            body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) .filter-landing-frame {
                height: auto;
                max-width: min(100%, calc(100dvh - 16rem));
            }

            body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) .filter-landing-viewport {
                flex: 0 0 auto;
                width: 100%;
                height: auto;
                aspect-ratio: 1 / 1;
            }

            body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) .filter-landing-placeholder,
            body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) .filter-landing-canvas:not(.filter-landing-canvas--original),
            body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) .filter-landing-compare {
                width: 100%;
                height: 100%;
                max-width: 100%;
                max-height: 100%;
            }

            body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) > .filter-landing-controls {
                max-height: none;
                min-height: 0;
                overflow: auto;
                overscroll-behavior: contain;
                position: relative;
                z-index: 5;
            }

    body.filter-app-mode .filter-landing-preset--icon,
    body.filter-app-mode .filter-landing-preset--add-bubble {
        width: 44px;
        height: 44px;
    }

    body.filter-app-mode .filter-landing-more,
    body.filter-app-mode .fractal-landing-coords,
    body.filter-app-mode .fractal-landing-more {
        display: none;
    }
}

@media (max-width: 600px) {
    body.filter-app-mode .seo-page-hero,
    body.filter-app-mode .seo-page-hero-full-screen,
    body.filter-app-mode .seo-page-hero-full-screen.seo-page-hero--with-media,
    body.filter-app-mode .seo-page-hero-full-screen.seo-page-hero--filter-demo {
        padding: 0;
    }

    body.filter-app-mode .filter-landing-app {
        gap: 0;
    }

        body.filter-app-mode .filter-landing-app > .filter-landing-controls {
            max-height: min(22vh, 168px);
            padding-block-start: 8px;
            padding-inline: 8px;
            padding-bottom: max(8px, env(safe-area-inset-bottom));
        }

        body.filter-app-mode .filter-landing-app:not(.fractal-landing-app):not(.color-wheel-landing-app):not(.gradient-editor-landing-app):not(.color-palette-generator-landing-app):not(.photo-map-landing-app) > .filter-landing-controls {
            max-height: none;
        }

    body.filter-app-mode .filter-landing-preset--icon,
    body.filter-app-mode .filter-landing-preset--add-bubble {
        width: 44px;
        height: 44px;
    }

    body.filter-app-mode .fractal-landing-app {
        grid-template-rows: auto minmax(0, 1fr);
    }

        body.filter-app-mode .fractal-landing-app > .filter-landing-stage,
        body.filter-app-mode .fractal-landing-app .fractal-landing-frame {
            height: auto;
        }

        body.filter-app-mode .fractal-landing-app .fractal-landing-viewport {
            flex: 0 0 auto;
            width: 100%;
            height: min(38vh, 280px);
            max-height: min(38vh, 280px);
            aspect-ratio: auto;
        }

        body.filter-app-mode .fractal-landing-app > .filter-landing-controls {
            max-height: none;
            overflow: auto;
            padding-bottom: max(8px, env(safe-area-inset-bottom));
        }

        body.filter-app-mode .fractal-landing-app .fractal-landing-more {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 0.45em 1.15em;
            margin-top: 2px;
            flex-shrink: 0;
        }

        body.filter-app-mode .fractal-landing-app .fractal-landing-types .landing-cta {
            min-height: 32px;
            padding: 6px 10px;
            font-size: 0.8rem;
            min-width: 0;
            flex: 1 1 calc(33.33% - 8px);
        }

    body.filter-app-mode .fractal-landing-select {
        padding: 7px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 520px) {
    .seo-page:not(.seo-page--filter-demo) {
        width: min(100% - 28px, 1180px);
        padding-top: 14px;
    }

    .seo-page-hero:not(.seo-page-hero-full-screen) {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .seo-page-hero h1 {
        font-size: clamp(2rem, 3vw, 4rem);
    }

    .seo-page-hero--category .seo-page-eyebrow {
        min-height: 34px;
        margin-bottom: 14px;
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    .seo-page-hero--category h1 {
        max-width: none;
        font-size: clamp(2rem, 3vw, 4rem);
    }

    .seo-page-hero--category {
        grid-template-columns: 1fr;
        gap: 18px;
    }

        .seo-page-hero--category .seo-page-intro {
            font-size: 1rem;
            line-height: 1.6;
        }

    .seo-template-search {
        max-width: none;
    }

    .seo-template-search-input {
        min-width: 0;
        flex: 1 1 100%;
        font-size: 16px;
    }

    .seo-template-search-submit.landing-cta {
        flex: 1 1 auto;
        justify-content: center;
    }

    .seo-page-hero-copy .seo-page-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .seo-page-hero-copy .seo-page-actions .landing-cta {
            justify-content: center;
        }

    .seo-card-grid,
    .seo-template-grid {
        grid-template-columns: 1fr;
    }
}

.filter-landing-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 8px 0 4px;
}

    .filter-landing-secondary .landing-cta {
        flex: 1 1 auto;
    }

.filter-landing-secondary-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #0f172a;
}

.filter-landing-strength {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: 4px 0 8px;
}

.filter-landing-strength-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: var(--main-200);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.filter-landing-strength-value {
    min-width: 3ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.filter-landing-strength-input {
    width: 100%;
    margin: 0;
    accent-color: var(--landing-accent, #2563eb);
    cursor: pointer;
    touch-action: none;
}
