/* Music Notebook landing — colors from app promotional screenshots */

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

:root {
    --mn-accent: #5b61e5;
    --mn-accent-dark: #4a50d4;
    --mn-hero: #26243e;
    --mn-hero-mid: #323057;
    --mn-bg: #f5f6fa;
    --mn-text: #1f2937;
    --mn-muted: #4b5563;
    --mn-soft: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--mn-text);
    background: var(--mn-bg);
    -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(38, 36, 62, 0.22);
    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: #eef0ff;
    color: var(--mn-accent-dark);
}

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

/* --- Hero --- */
.app-landing-hero {
    background:
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(91, 97, 229, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(212, 196, 160, 0.12), transparent 50%),
        linear-gradient(145deg, var(--mn-hero) 0%, var(--mn-hero-mid) 55%, #2a2850 100%);
    color: #fff;
    padding: 56px 0 56px;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.app-landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 18px,
            rgba(212, 196, 160, 0.06) 18px,
            rgba(212, 196, 160, 0.06) 19px
        );
    opacity: 0.5;
    pointer-events: none;
    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.35);
    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: 30rem;
}

.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.25));
    transition: transform 0.2s ease;
}

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

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

.app-landing-about-content {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8eaf2;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 18px rgba(38, 36, 62, 0.05);
}

.app-landing-about-content h3 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: var(--mn-accent-dark);
}

.app-landing-about-content p {
    margin-bottom: 16px;
    color: var(--mn-muted);
}

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

.app-landing-features li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: var(--mn-muted);
}

.app-landing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mn-accent);
    font-weight: 700;
}

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

.app-landing-screenshots h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--mn-text);
}

.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: var(--mn-accent) #e8eaf2;
}

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

.app-landing-carousel::-webkit-scrollbar-thumb {
    background: var(--mn-accent);
    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(38, 36, 62, 0.14);
}

.app-landing-carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--mn-accent);
    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: var(--mn-accent-dark);
    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: var(--mn-accent);
    transform: scale(1.25);
}

/* --- Footer --- */
.app-landing-footer {
    background: var(--mn-hero);
    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: #a5abff;
    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-about-content {
        padding: 22px 18px 18px;
    }

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

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

.app-landing-faq {
    max-width: 720px;
}

.faq-section {
    margin-top: 0;
    margin-bottom: 48px;
}

.faq-list dt {
    font-weight: 600;
    color: var(--mn-text);
    margin-top: 16px;
}

.faq-list dt:first-child {
    margin-top: 0;
}

.faq-list dd {
    margin: 8px 0 0 0;
    color: var(--mn-muted);
    line-height: 1.6;
}
