.editor-public__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
    overflow-wrap: anywhere;
}

.editor-public__hero-copy,
.editor-public__hero-workspace,
.editor-public__hero-tool-column,
.editor-public__hero-example,
.editor-public__examples,
.editor-public__example,
.editor-public__example-stages,
.editor-public__example-stage {
    min-width: 0;
}

.editor-public__hero-example {
    margin: 0;
}

.editor-public__hero-copy > .public-lead {
    max-width: 60rem;
    margin: 0;
}

.editor-public__hero-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: clamp(1.25rem, 2.5vw, 1.75rem);
    row-gap: 0.75rem;
    align-items: stretch;
}

.editor-public__hero-tool-column {
    display: flex;
}

.editor-public__hero-tool-column > .public-actions {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
}

.editor-public__hero-tool-column .editor-hero-tool__upload-zone small {
    text-wrap: pretty;
}

.editor-public__hero-note {
    grid-column: 1 / -1;
    margin: 0;
    line-height: 1.6;
}

.editor-public__hero-example {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(0.85rem, 2vw, 1.15rem);
    border: 1px solid rgb(37 170 160 / 20%);
    border-radius: 1rem;
    background: var(--color-panel);
    box-shadow: 0 8px 22px rgb(37 170 160 / 6%);
}

.editor-public__hero-example .editor-public__comparison-frame {
    aspect-ratio: 3 / 5;
    border-color: rgb(37 170 160 / 18%);
}

.editor-public__hero-example .editor-public__comparison-image {
    object-fit: cover;
    object-position: center;
}

.editor-public__hero h1 {
    font-size: clamp(1.6rem, 4.3vw, 3rem);
    word-break: keep-all;
    overflow-wrap: normal;
}

.editor-public__example-stage {
    margin: 0;
}

.editor-public__comparison,
.editor-public__comparison-stage,
.editor-public__case-comparison {
    margin: 0;
}

.editor-public__case-comparison {
    margin-bottom: 1rem;
}

.editor-public__comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.65rem, 2vw, 1rem);
    min-width: 0;
}

.editor-public__comparison-stage {
    min-width: 0;
}

.editor-public__comparison-frame {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: var(--border-soft);
    border-radius: 0.8rem;
    background: var(--color-muted);
}

.editor-public__comparison-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.editor-public__comparison-label {
    display: block;
    margin-top: 0.45rem;
    color: var(--color-ink);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.editor-public__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: var(--border-soft);
    border-radius: 0.8rem;
    background: var(--color-muted);
}

.editor-public__image-label {
    display: block;
    margin-top: 0.55rem;
    color: var(--color-ink);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.editor-public__hero-example-caption {
    margin: 0.75rem 0 0;
    color: var(--color-copy);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.editor-public__hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.editor-public__hero-tags span {
    padding: 0.2rem 0.55rem;
    border: var(--border-soft);
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: rgb(233 107 209 / 9%);
    font-size: 0.78rem;
    line-height: 1.4;
}

.editor-public__use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.editor-public__case {
    min-width: 0;
}

.editor-public__case-caption {
    margin: 0.7rem 0 0;
    color: var(--color-copy);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.editor-public__examples {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0 0 1.5rem;
}

.editor-public__example {
    padding: clamp(1rem, 2.2vw, 1.35rem);
    border: var(--border-soft);
    border-radius: 0.9rem;
    background: rgb(255 253 246 / 86%);
}

.editor-public__example-title {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.45;
}

.editor-public__example-description {
    margin: 0.35rem 0 1rem;
    color: var(--color-copy);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.editor-public__example-stages {
    display: grid;
    gap: clamp(0.65rem, 2vw, 1rem);
}

.editor-public__example-stages--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .editor-public__hero {
        grid-template-columns: 1fr;
    }

    .editor-public__hero-workspace {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .editor-public__hero-example {
        order: 1;
    }

    .editor-public__hero-tool-column {
        order: 2;
    }

    .editor-public__hero-note {
        order: 3;
    }

    .editor-public__hero-example .editor-public__comparison-frame {
        aspect-ratio: 4 / 5;
    }

    .editor-public__hero-example .editor-public__comparison-image {
        object-fit: contain;
    }

    .editor-public__use-cases {
        grid-template-columns: 1fr;
    }

    .editor-public__examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .editor-public__use-cases {
        grid-template-columns: 1fr;
    }

    .editor-public__example-stages--three {
        grid-template-columns: 1fr;
        width: min(100%, 11rem);
        margin-inline: auto;
    }
}

.editor-hero-tool {
    --editor-hero-tool-edge: rgb(37 170 160 / 28%);
    --editor-hero-tool-edge-strong: rgb(37 170 160 / 58%);
    --editor-hero-tool-ink: var(--color-ink);
    --editor-hero-tool-copy: var(--color-copy);
    --editor-hero-tool-paper: var(--color-panel);
    --editor-hero-tool-paper-strong: var(--color-paper);
    --editor-hero-tool-focus: var(--color-support);
    display: grid;
    flex: 1 1 100%;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid var(--editor-hero-tool-edge);
    border-radius: 1rem;
    color: var(--editor-hero-tool-ink);
    background: var(--editor-hero-tool-paper);
    box-shadow: 0 8px 22px rgb(37 170 160 / 8%);
}

.editor-hero-tool h2 {
    margin: 0;
    color: var(--editor-hero-tool-ink);
    font-size: 1rem;
    line-height: 1.4;
}

.editor-hero-tool__group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    min-width: 0;
    margin: 0;
    padding: 0.55rem;
    border: 1px solid rgb(37 170 160 / 20%);
    border-radius: 0.8rem;
}

.editor-hero-tool__group > legend {
    grid-column: 1 / -1;
    padding: 0 0.2rem;
    color: var(--editor-hero-tool-ink);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.35;
}

.editor-hero-tool__input-group {
    grid-template-columns: 1fr;
}

.editor-hero-tool__field,
.editor-hero-tool__upload-zone {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.editor-hero-tool__field > span,
.editor-hero-tool__upload-zone > span {
    color: var(--editor-hero-tool-ink);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.35;
}

.editor-hero-tool__upload-zone {
    padding: 0.65rem;
    border: 1px dashed var(--editor-hero-tool-edge-strong);
    border-radius: 0.7rem;
    background: rgb(37 170 160 / 7%);
}

.editor-hero-tool input,
.editor-hero-tool select,
.editor-hero-tool textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid rgb(37 170 160 / 26%);
    border-radius: 0.6rem;
    color: var(--editor-hero-tool-ink);
    background: var(--editor-hero-tool-paper-strong);
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.4;
}

.editor-hero-tool input[type="file"] {
    padding: 0.4rem 0.45rem;
}

.editor-hero-tool input[type="file"]::file-selector-button {
    margin-right: 0.45rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid rgb(37 170 160 / 32%);
    border-radius: 0.45rem;
    color: var(--editor-hero-tool-ink);
    background: rgb(37 170 160 / 10%);
    font: inherit;
    font-size: 0.78rem;
}

.editor-hero-tool input[type="file"]:focus-visible,
.editor-hero-tool select:focus-visible,
.editor-hero-tool textarea:focus-visible,
.editor-hero-tool summary:focus-visible,
.editor-hero-tool .site-button:focus-visible {
    outline: 2px solid var(--editor-hero-tool-focus);
    outline-offset: 2px;
}

.editor-hero-tool textarea,
.editor-hero-tool select {
    padding: 0.45rem 0.55rem;
}

.editor-hero-tool textarea {
    min-height: 4.3rem;
    resize: vertical;
}

.editor-hero-tool__upload-zone small,
.editor-hero-tool__field small,
.editor-hero-tool__note,
.editor-hero-tool__feature-panel p {
    color: var(--editor-hero-tool-copy);
    font-size: 0.72rem;
    line-height: 1.45;
}

.editor-hero-tool .editor-hero-tool__feature-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.editor-hero-tool__feature-choice {
    display: block;
    min-width: 0;
    padding: 0.35rem 0.3rem;
    border: 1px solid rgb(37 170 160 / 24%);
    border-radius: 999px;
    color: var(--editor-hero-tool-copy);
    background: rgb(255 255 255 / 48%);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.editor-hero-tool__feature-input:checked + .editor-hero-tool__feature-choice {
    border-color: var(--editor-hero-tool-edge-strong);
    color: var(--editor-hero-tool-ink);
    background: rgb(37 170 160 / 13%);
}

.editor-hero-tool__feature-input:focus-visible + .editor-hero-tool__feature-choice {
    outline: 2px solid var(--editor-hero-tool-focus);
    outline-offset: 2px;
}

.editor-hero-tool__feature-panel,
.editor-hero-tool__prompt-field,
.editor-hero-tool__reference-details,
.editor-hero-tool__ratio-field {
    grid-column: 1 / -1;
}

.editor-hero-tool__feature-panel {
    display: none;
    min-width: 0;
    padding: 0.05rem 0.1rem 0;
}

.editor-hero-tool__feature-panel p {
    margin: 0;
}

.editor-hero-tool__feature-input[value="background"]:checked ~ .editor-hero-tool__feature-panel[data-feature="background"],
.editor-hero-tool__feature-input[value="clothing"]:checked ~ .editor-hero-tool__feature-panel[data-feature="clothing"],
.editor-hero-tool__feature-input[value="style"]:checked ~ .editor-hero-tool__feature-panel[data-feature="style"],
.editor-hero-tool__feature-input[value="local_edit"]:checked ~ .editor-hero-tool__feature-panel[data-feature="local_edit"],
.editor-hero-tool__feature-input[value="remove_object"]:checked ~ .editor-hero-tool__feature-panel[data-feature="remove_object"],
.editor-hero-tool__feature-input[value="outpaint"]:checked ~ .editor-hero-tool__feature-panel[data-feature="outpaint"],
.editor-hero-tool__feature-input[value="remove_background"]:checked ~ .editor-hero-tool__feature-panel[data-feature="remove_background"],
.editor-hero-tool__feature-input[value="upscale"]:checked ~ .editor-hero-tool__feature-panel[data-feature="upscale"] {
    display: block;
}

.editor-hero-tool__details {
    min-width: 0;
    border-top: 1px solid rgb(37 170 160 / 18%);
}

.editor-hero-tool__details summary {
    padding-top: 0.6rem;
    color: var(--editor-hero-tool-ink);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.4;
    cursor: pointer;
}

.editor-hero-tool__details > .editor-hero-tool__field {
    padding-top: 0.6rem;
}

.editor-hero-tool__ratio-field {
    max-width: 10rem;
}

.editor-hero-tool__feature-input[value="outpaint"]:checked ~ .editor-hero-tool__reference-details,
.editor-hero-tool__feature-input[value="remove_background"]:checked ~ .editor-hero-tool__reference-details,
.editor-hero-tool__feature-input[value="upscale"]:checked ~ .editor-hero-tool__reference-details,
.editor-hero-tool__feature-input[value="remove_background"]:checked ~ .editor-hero-tool__prompt-field,
.editor-hero-tool__feature-input[value="upscale"]:checked ~ .editor-hero-tool__prompt-field,
.editor-hero-tool__feature-input[value="remove_background"]:checked ~ .editor-hero-tool__ratio-field,
.editor-hero-tool__feature-input[value="upscale"]:checked ~ .editor-hero-tool__ratio-field,
.editor-hero-tool__feature-input[value="outpaint"]:checked ~ .editor-hero-tool__prompt-field {
    display: none;
}

.editor-hero-tool__note {
    margin: 0;
}

.editor-hero-tool__login-form {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
    margin: 0;
}

.editor-hero-tool__login-form .site-button {
    width: 100%;
    margin: 0;
}

@media (max-width: 520px) {
    .editor-hero-tool {
        padding: 0.75rem;
    }

    .editor-hero-tool__group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-hero-tool__input-group {
        grid-template-columns: 1fr;
    }

    .editor-hero-tool__ratio-field {
        max-width: none;
    }
}

.editor-public__comparison {
    position: relative;
}

.editor-public__comparison-arrow {
    position: absolute;
    top: calc(50% - 0.65rem);
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(1.15rem, 3vw, 1.5rem);
    height: clamp(1.15rem, 3vw, 1.5rem);
    transform: translate(-50%, -50%);
    border: 1px solid rgb(37 170 160 / 34%);
    border-radius: 50%;
    color: var(--color-primary-dark);
    background: var(--color-panel);
    box-shadow: 0 2px 8px rgb(37 170 160 / 10%);
    font-size: clamp(0.72rem, 1.8vw, 0.85rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

