/* Mood Calendar landing — standalone styles */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f5f3ff;
    -webkit-text-size-adjust: 100%;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Language switcher --- */
.app-landing-lang {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
}

.app-landing-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.app-landing-lang-btn:hover,
.app-landing-lang-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
}

.app-landing-lang-chevron {
    font-size: 0.65rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.app-landing-lang-btn[aria-expanded="true"] .app-landing-lang-chevron {
    transform: rotate(180deg);
}

.app-landing-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    padding: 6px 0;
}

.app-landing-lang-menu[hidden] {
    display: none;
}

.app-landing-lang-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.app-landing-lang-menu button:hover,
.app-landing-lang-menu button.is-active {
    background: #ede9fe;
    color: #5b21b6;
}

.app-landing-lang-menu button.is-active {
    font-weight: 600;
}

/* --- Hero --- */
.app-landing-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    padding: 56px 0 56px;
    position: relative;
    z-index: 0;
}

.app-landing-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.app-landing-hero-text {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1 1 320px;
}

.app-landing-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    object-fit: cover;
}

.app-landing-titles h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #fff;
}

.app-landing-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.app-landing-short-desc {
    font-size: 1rem;
    opacity: 0.92;
    max-width: 28rem;
}

.app-landing-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.app-store-button,
.google-play-button {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.app-store-button img,
.google-play-button img {
    height: 54px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease;
}

.app-store-button:hover img,
.google-play-button:hover img {
    transform: scale(1.04);
}

/* --- About --- */
.app-landing-about {
    padding: 48px 0;
}

.app-landing-about-content {
    max-width: 720px;
    margin: 0 auto;
}

.app-landing-about-content h3 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: #6d28d9;
}

.app-landing-about-content p {
    margin-bottom: 16px;
    color: #374151;
}

.app-landing-features {
    list-style: none;
    margin: 0 0 20px;
}

.app-landing-features li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: #374151;
}

.app-landing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7c3aed;
    font-weight: 700;
}

/* --- Screenshots carousel --- */
.app-landing-screenshots {
    padding: 0 0 48px;
    background: #fff;
}

.app-landing-screenshots h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #1f2937;
}

.app-landing-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.app-landing-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 8px 4px 16px;
    scrollbar-width: thin;
    scrollbar-color: #7c3aed #f3f4f6;
}

.app-landing-carousel::-webkit-scrollbar {
    height: 8px;
}

.app-landing-carousel::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
}

.app-landing-carousel img {
    flex: 0 0 auto;
    height: min(520px, 70vh);
    width: auto;
    border-radius: 16px;
    scroll-snap-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.app-landing-carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.app-landing-carousel-btn:hover {
    background: #6d28d9;
    transform: scale(1.05);
}

.app-landing-carousel-dots {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    min-height: 0;
}

.app-landing-carousel-dots button {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    max-width: 10px;
    max-height: 10px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    flex: 0 0 10px;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.2s ease;
}

.app-landing-carousel-dots button.is-active {
    background: #7c3aed;
    transform: scale(1.25);
}

/* --- Footer --- */
.app-landing-footer {
    background: #1f2937;
    color: #e5e7eb;
    padding: 40px 0;
}

.app-landing-footer h2 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: #fff;
}

.app-landing-legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.app-landing-legal-grid h3 {
    font-size: 0.95rem;
    color: #f9fafb;
    margin-bottom: 10px;
}

.app-landing-legal-grid ul {
    list-style: none;
}

.app-landing-legal-grid li {
    margin-bottom: 8px;
}

.app-landing-legal-grid a {
    color: #c4b5fd;
    text-decoration: none;
}

.app-landing-legal-grid a:hover {
    text-decoration: underline;
    color: #fff;
}

.app-landing-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .app-landing-lang {
        top: 12px;
        right: 12px;
    }

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

    .app-landing-hero-text {
        flex-direction: column;
        text-align: center;
        padding-top: 36px;
    }

    .app-landing-store-buttons {
        width: 100%;
        justify-content: center;
    }

    .app-landing-carousel-btn {
        display: none;
    }

    .app-landing-carousel img {
        height: min(440px, 62vh);
    }
}
