html:has(body.landing-page) {
    scroll-behavior: smooth;
    overflow-x: clip;
}

.landing-page {
    --landing-orange: #f26522;
    --landing-orange-soft: #e89a3a;
    --landing-blue: #4da3ff;
    --landing-charcoal: #2c2c2c;
    --landing-muted: #8a8a8a;
    --landing-border: #e6e6e6;
    margin: 0;
    background: #fff;
    color: #111;
}

.landing-page main.landing-main {
    background: transparent;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.landing-page footer.landing-footer {
    background: transparent;
    color: #888;
    position: relative;
    bottom: auto;
    width: auto;
    margin-top: 0;
}

.landing-menubar {
    position: relative;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 56px;
    padding: 16px 36px;
    background: transparent;
}

.landing-menubar:has(#auth-signed-in:not([hidden])) {
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.landing-menubar .auth-bar {
    display: flex;
    align-items: center;
    margin: 0;
    text-align: left;
}

.landing-menubar #auth-signed-in:not([hidden]) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.landing-menubar .auth-email {
    margin: 0;
    font-weight: 500;
    font-size: 0.92rem;
    color: #666;
}

.landing-menubar .signout-button {
    background: none;
    border: none;
    border-radius: 0;
    padding: 4px 2px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    color: #111;
}

.landing-menubar .signout-button:hover,
.landing-menubar .signout-button:focus-visible {
    color: #fbae42;
}

.landing-menubar a {
    color: #111;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 4px 2px;
    transition: color 0.15s ease;
}

.landing-menubar a:hover,
.landing-menubar a:focus-visible {
    color: #fbae42;
}

.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px 4px;
    box-sizing: border-box;
}

.landing-logo {
    width: min(210px, 48vw);
    height: auto;
    margin-bottom: 10px;
    will-change: transform, opacity;
    animation: landing-enter 0.85s ease both;
}

.landing-tagline,
.landing-title {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    will-change: transform, opacity;
}

.landing-tagline {
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 600;
    color: var(--landing-orange-soft);
    margin-bottom: 2px;
    animation: landing-enter 0.85s ease 0.12s both;
}

.landing-title {
    font-size: clamp(2rem, 5.2vw, 3rem);
    font-weight: 800;
    color: var(--landing-orange);
    letter-spacing: -0.02em;
    line-height: 1.15;
    animation: landing-enter 0.85s ease 0.24s both;
}

.landing-scroll-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    width: 36px;
    height: 36px;
    color: var(--landing-orange);
    text-decoration: none;
    animation:
        landing-enter 0.7s ease 0.38s backwards,
        landing-arrow-float 1.8s ease-in-out 1.2s infinite;
}

.landing-scroll-arrow svg {
    display: block;
}

@keyframes landing-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landing-arrow-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.landing-preview {
    position: relative;
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 24px 0;
    scroll-margin-top: 24px;
}

.landing-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 16px;
    min-height: 520px;
}

.landing-preview-status {
    text-align: center;
    color: var(--landing-muted);
    margin: 0 0 20px;
}

.landing-preview-status:empty,
.landing-preview-status[hidden] {
    display: none;
}

.landing-preview-card.is-skeleton {
    min-height: 240px;
    background: linear-gradient(90deg, #f3f3f3 25%, #ececec 37%, #f3f3f3 63%);
    background-size: 400% 100%;
    animation: landing-skeleton 1.2s ease-in-out infinite;
    border: none;
    pointer-events: none;
}

@keyframes landing-skeleton {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.landing-preview-card {
    display: block;
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.landing-fade-pending {
    opacity: 0;
    transform: translateY(18px);
}

.landing-fade-in {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.7s ease var(--reveal-delay, 0ms),
        transform 0.7s ease var(--reveal-delay, 0ms);
}

.landing-preview-card.landing-fade-in:hover {
    transform: translateY(-2px);
    transition:
        opacity 0.7s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.landing-preview-card-image {
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    overflow: hidden;
}

.landing-preview-card-image img,
.landing-preview-card-image .listing-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-preview-card-body {
    padding: 10px 12px 12px;
}

.landing-preview-price {
    margin: 0 0 2px;
    font-weight: 700;
    color: var(--landing-blue);
    font-size: 0.95rem;
}

.landing-preview-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-preview-category {
    margin: 0;
    font-size: 0.78rem;
    color: var(--landing-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-preview-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 18%,
        rgba(255, 255, 255, 0.88) 62%,
        #fff 100%
    );
    pointer-events: none;
}

.landing-cta {
    position: relative;
    z-index: 3;
    margin-top: -120px;
    padding: 0 24px 56px;
}

.landing-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.landing-cta h2 {
    margin: 0 0 22px;
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: var(--landing-orange);
    white-space: nowrap;
}

.landing-login-button,
.landing-app-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(340px, 100%);
    min-height: 54px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.landing-login-button {
    background: var(--landing-orange, #f26522);
    color: #fff;
}

.landing-login-button:hover {
    background: #de5418;
}

.site-top .auth-bar:not(:has(#auth-signed-in:not([hidden]))) {
    display: none;
}

.landing-app-store-button {
    margin-top: 14px;
    gap: 10px;
    background: var(--landing-charcoal);
    color: #fff;
}

.landing-app-store-button:hover {
    background: #1a1a1a;
}

.landing-app-store-icon {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.landing-auth-hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--landing-muted);
}

.landing-auth-signed-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.landing-auth-signed-in[hidden],
.landing-auth-signed-out[hidden] {
    display: none !important;
}

.landing-auth-welcome {
    margin: 0;
    color: #444;
    font-size: 0.95rem;
}

.landing-signout-link {
    background: none;
    border: none;
    color: var(--landing-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.landing-footer {
    text-align: center;
    padding: 8px 24px 28px;
    font-size: 0.85rem;
    color: #888;
}

.landing-footer a {
    color: #777;
}

.landing-auth-error {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 30;
    max-width: min(420px, calc(100% - 32px));
    margin: 0;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 980px) {
    .landing-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-preview-fade {
        height: 36%;
    }
}

@media (max-width: 640px) {
    .landing-menubar {
        gap: 8px 28px;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .landing-menubar:has(#auth-signed-in:not([hidden])) {
        gap: 8px 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .landing-hero {
        padding: 40px 16px 0;
    }

    .landing-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-cta {
        margin-top: -56px;
    }

    .landing-cta h2 {
        font-size: clamp(0.92rem, 4.2vw, 1.2rem);
    }
}

body.landing-page:not(.landing-dashboard) .listings-toolbar,
body.landing-page:not(.landing-dashboard) .listings-actions,
body.landing-page:not(.landing-dashboard) #listings-status {
    display: none !important;
}

body.landing-dashboard .landing-hero,
body.landing-dashboard .landing-cta,
body.landing-dashboard .landing-preview-fade,
body.landing-dashboard .landing-scroll-arrow {
    display: none !important;
}

body.landing-dashboard .landing-preview {
    max-width: none;
    margin: 0;
    padding: 0;
    scroll-margin-top: 0;
}

body.landing-dashboard #landing-preview-heading {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

body.landing-dashboard main.landing-main {
    max-width: 1100px;
    margin: 12px auto 0;
    padding: 20px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

body.landing-dashboard .landing-footer {
    background: transparent;
    color: #888;
}

body.landing-dashboard .listings-actions {
    text-align: center;
    margin: 24px 0 8px;
}

@media (max-width: 800px) {
    body.landing-dashboard main.landing-main {
        margin: 12px auto;
        width: calc(100% - 24px);
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-logo,
    .landing-tagline,
    .landing-title,
    .landing-scroll-arrow {
        animation: none;
    }

    .landing-fade-pending,
    .landing-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    [data-parallax] {
        transform: none !important;
        opacity: 1 !important;
    }
}
