/* SEO landing + public template catalog pages */

.seo-page {
    width: min(1180px, calc(100% - 2 * var(--landing-pad, 24px)));
    margin: 0 auto;
    padding: clamp(24px, 4vw, 52px) 0 clamp(56px, 8vw, 96px);
    color: var(--landing-ink, #141820);
}

.seo-page-hero {
    /* 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;
    margin-bottom: clamp(36px, 6vw, 76px);
    padding: clamp(28px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid rgba(20, 24, 32, 0.1);
    border-radius: clamp(22px, 3vw, 32px);
    background: radial-gradient(circle at 100% 0%, rgba(196, 165, 116, 0.28), transparent 36%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 241, 251, 0.88));
    box-shadow: 0 20px 60px rgba(37, 56, 88, 0.11);
}

    .seo-page-hero::before {
    }

.seo-page-hero--with-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
    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-page-hero-copy {
    max-width: 660px;
}

.seo-page-hero-media {
    position: relative;
    margin: 0;
}

    .seo-page-hero-media img {
        display: block;
        width: 100%;
        height: auto;
        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;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--landing-slate, #2a3140);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .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 {
    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.055em;
    color: var(--landing-ink, #141820);
}

.seo-page-intro {
    max-width: 62ch;
    margin: 0 0 28px;
    color: var(--landing-slate, #2a3140);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

.seo-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .seo-page-actions .landing-cta {
        min-height: 46px;
    }

.seo-page-hero .landing-cta--ghost {
    background: rgba(255, 255, 255, 0.74);
    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 {
        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.035em;
        color: var(--landing-ink, #141820);
    }

    .seo-page-section > p {
        max-width: 72ch;
        margin: 0 0 16px;
        color: var(--landing-slate, #2a3140);
        line-height: 1.75;
    }

.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(--landing-slate, #2a3140);
        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.78rem;
            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(--landing-ink, #141820);
    font-size: 1.08rem;
    line-height: 1.3;
}

.seo-card p,
.seo-template-meta p {
    margin: 0;
    color: var(--landing-slate, #2a3140);
    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(--landing-ink, #141820);
    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(--landing-slate, #2a3140);
    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(--landing-slate, #2a3140);
        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(--landing-ink, #141820);
    cursor: pointer;
    font-weight: 800;
    line-height: 1.45;
}

.seo-faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--landing-slate, #2a3140);
    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: radial-gradient(circle at 85% 10%, rgba(196, 165, 116, 0.3), transparent 30%), linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(255, 255, 255, 0.78));
}

    .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: radial-gradient(circle at 100% 0%, rgba(196, 165, 116, 0.16), transparent 36%), linear-gradient(135deg, rgba(29, 39, 56, 0.96), rgba(17, 25, 37, 0.94));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

    .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-page-hero h1,
.dark .seo-page-section > h2,
.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, 28, 38, 0.84);
}

.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.13)), rgba(23, 28, 38, 0.9);
}

    .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, 28, 38, 0.92);
    color: var(--main-100, #f5f5f5);
}

.seo-page-actions button.landing-cta {
    cursor: pointer;
}

/* SEO filter mini-app (Warhol, Polaroid, ï¿½) */
.seo-page-hero--filter-demo {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.15fr);
    align-items: stretch;
}

.filter-landing-app {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.filter-landing-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(260px, 36vw, 420px);
    overflow: hidden;
    border-radius: clamp(16px, 2vw, 24px);
    box-shadow: 0 18px 42px rgba(25, 42, 69, 0.2);
    transition: outline-color 160ms ease, box-shadow 160ms ease;
}

    .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-placeholder,
.filter-landing-canvas {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #111827;
}

.filter-landing-placeholder[hidden],
.filter-landing-canvas[hidden] {
    display: none !important;
}

.filter-landing-paint-overlay {
    position: absolute;
    z-index: 4;
    display: block;
    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-painting .filter-landing-canvas--original,
.filter-landing-app.is-painting .filter-landing-compare-divider,
.filter-landing-app.is-painting .filter-landing-compare-input {
    visibility: hidden;
    pointer-events: none;
}

.filter-landing-paint-hint {
    margin: 0;
    color: var(--landing-slate, #2a3140);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.dark .filter-landing-paint-hint {
    color: var(--main-200, #d1d5db);
}

.filter-landing-app[data-engine="remove-background"] .filter-landing-canvas,
.filter-landing-app[data-engine="uncrop"] .filter-landing-canvas {
    background-color: #d7dde8;
    background-image:
        linear-gradient(45deg, #b8c0cf 25%, transparent 25%),
        linear-gradient(-45deg, #b8c0cf 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #b8c0cf 75%),
        linear-gradient(-45deg, transparent 75%, #b8c0cf 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.filter-landing-compare {
    --filter-compare-position: 50%;
    position: relative;
    width: 100%;
    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%;
    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%);
    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%);
}

    .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-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(--landing-slate, #2a3140);
        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: 10px;
}

.filter-landing-controls-label {
    margin: 0;
    color: var(--landing-slate, #2a3140);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-landing-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.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(--landing-ink, #141820);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

    .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-preset--randomize {
    border-color: transparent;
    background: #16a34a;
    color: #fff;
}

    .filter-landing-preset--randomize:hover,
    .filter-landing-preset--randomize:focus-visible {
        border-color: transparent;
        background: #15803d;
        color: #fff;
    }

.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-start {
    min-width: 7.5rem;
}

.filter-landing-start:disabled,
.filter-landing-clear:disabled,
.filter-landing-reset:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.filter-landing-clear,
.filter-landing-reset {
    min-width: 7.5rem;
}

body.filter-landing-modal-open {
    overflow: hidden;
}

.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(2px);
}

.filter-landing-modal-overlay[hidden] {
    display: none !important;
}

.filter-landing-modal {
    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.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.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%);
    }
}

.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-label {
    color: var(--main-200, #d1d5db);
}

.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-preset--randomize {
        border-color: transparent;
        background: #16a34a;
        color: #fff;
    }

    .dark .filter-landing-preset--randomize:hover,
    .dark .filter-landing-preset--randomize:focus-visible {
        border-color: transparent;
        background: #22c55e;
        color: #fff;
    }

@media (max-width: 800px) {
    .seo-page-hero--with-media,
    .seo-template-preview-block {
        grid-template-columns: 1fr;
    }

    .seo-page-hero--filter-demo {
        grid-template-columns: 1fr;
    }

    .seo-template-hero-image {
        min-height: auto;
    }

    .seo-template-facts {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .seo-page {
        width: min(100% - 28px, 1180px);
        padding-top: 14px;
    }

    .seo-page-hero {
        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-page-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .seo-page-actions .landing-cta {
            justify-content: center;
        }

    .seo-card-grid,
    .seo-template-grid {
        grid-template-columns: 1fr;
    }
}
