/* Maestro landing - journal-inspired (vanilla port of MaestroLanding) */

body.maestro-body-landing {
    background: #fff8ec;
}

.quiz-shell.quiz-shell--landing {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.maestro-landing {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: #fff8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 4vh, 24px) clamp(12px, 4vw, 20px);
    padding-bottom: max(clamp(12px, 4vh, 24px), env(safe-area-inset-bottom, 0px));
    padding-top: max(clamp(12px, 4vh, 24px), env(safe-area-inset-top, 0px));
    font-family: "Assistant", system-ui, sans-serif;
}

.maestro-landing__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.maestro-landing__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: blur(2px);
    transform: scale(1.05);
}

.maestro-landing__bg-wash {
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 236, 0.75);
}

.maestro-landing__deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.maestro-landing__deco--star {
    top: 22px;
    right: 32px;
    font-size: 1.6rem;
    opacity: 0.7;
    transform: rotate(12deg);
    animation: maestroFloatY 5s ease-in-out infinite;
}

.maestro-landing__deco--heart {
    bottom: 36px;
    left: 32px;
    font-size: 1.9rem;
    opacity: 0.65;
    transform: rotate(-12deg);
    animation: maestroFloatYRev 6s ease-in-out infinite;
}

.maestro-landing__deco--spark {
    top: 26%;
    left: 56px;
    font-size: 1.1rem;
    opacity: 0.58;
    animation: maestroPulse 3.5s ease-in-out infinite;
}

.maestro-landing__floaters {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: #f5c842;
    font-size: 1.25rem;
}

.maestro-landing__floaters span {
    position: absolute;
    animation: maestroTwinkle 3s ease-in-out infinite;
}

.maestro-landing__floaters span:nth-child(1) {
    top: 18%;
    right: 22%;
    font-size: 1.5rem;
    animation-delay: 0s;
}

.maestro-landing__floaters span:nth-child(2) {
    bottom: 24%;
    right: 15%;
    animation: maestroTwinkleScale 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.maestro-landing__floaters span:nth-child(3) {
    top: 30%;
    left: 28%;
    font-size: 1.5rem;
    animation: maestroTwinkleRot 5s ease-in-out infinite;
    animation-delay: 1s;
}

.maestro-landing__card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 22px 60px rgba(91, 63, 30, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 22px 18px 20px;
    text-align: center;
    animation: maestroCardIn 0.7s ease-out forwards;
}

.maestro-landing__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 232, 168, 0.7);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7a5720;
    margin-bottom: 10px;
    animation: maestroFadeUp 0.6s ease-out 0.15s both;
}

.maestro-landing__title {
    margin: 0 0 12px;
    font-size: clamp(1.22rem, 5vw, 1.8rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.005em;
    color: #3f3328;
    animation: maestroFadeUp 0.6s ease-out 0.25s both;
}

.maestro-landing__lead {
    margin: 0 auto 12px;
    max-width: 32ch;
    font-size: clamp(0.94rem, 3.4vw, 1rem);
    line-height: 1.6;
    color: #5f5145;
    animation: maestroFadeUp 0.6s ease-out 0.35s both;
}

.maestro-landing__lead:last-of-type {
    margin-bottom: 16px;
    animation-delay: 0.45s;
}

.maestro-landing__highlight {
    margin: 0 auto 16px;
    max-width: 36ch;
    border-radius: 18px;
    background: #fff4d6;
    padding: 14px 14px 12px;
    box-shadow: inset 0 2px 12px rgba(91, 63, 30, 0.06);
    animation: maestroFadeUp 0.6s ease-out 0.55s both;
}

.maestro-landing__highlight strong {
    display: block;
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.4;
    color: #4b3927;
}

.maestro-landing__highlight-sub {
    margin: 8px 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #6b5a49;
}

.maestro-landing__cta {
    border: none;
    border-radius: 999px;
    background: #f7c948;
    padding: 13px 22px;
    min-height: 46px;
    font-size: clamp(0.95rem, 3.6vw, 1rem);
    font-weight: 800;
    color: #3f3328;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 12px 30px rgba(247, 201, 72, 0.35);
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    animation: maestroFadeUp 0.6s ease-out 0.65s both;
}

.maestro-landing__cta:hover {
    background: #f5bd24;
    transform: scale(1.04) translateY(-2px);
}

.maestro-landing__cta:active {
    transform: scale(0.98);
}

.maestro-landing__footnote {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #7d7064;
    animation: maestroFadeUp 0.6s ease-out 0.72s both;
}

@media (min-width: 900px) {
    .maestro-landing {
        padding: 32px 20px;
    }
    .maestro-landing__card {
        border-radius: 28px;
        padding: 30px 24px 24px;
    }
    .maestro-landing__lead {
        max-width: 34rem;
        font-size: 1.08rem;
        line-height: 1.66;
    }
    .maestro-landing__highlight {
        max-width: 35rem;
    }
}
@media (max-width: 700px) {
    .maestro-landing { padding: 14px 12px; }
    .maestro-landing__card {
        border-radius: 20px;
        padding: 18px 14px 16px;
    }
    .maestro-landing__title {
        margin-bottom: 10px;
        line-height: 1.3;
    }
    .maestro-landing__lead {
        max-width: 30ch;
        margin-bottom: 10px;
        line-height: 1.55;
    }
    .maestro-landing__highlight {
        border-radius: 16px;
        padding: 12px 12px 11px;
        margin-bottom: 14px;
    }
    .maestro-landing__highlight strong {
        font-size: clamp(0.95rem, 3.6vw, 1rem);
        line-height: 1.45;
    }
    .maestro-landing__cta {
        padding: 12px 20px;
        min-height: 46px;
    }
    .maestro-landing__footnote {
        margin-top: 10px;
        font-size: 0.82rem;
    }
}
@media (max-width: 430px) {
    .maestro-landing { padding: 10px 10px; }
    .maestro-landing__card {
        border-radius: 18px;
        padding: 14px 12px 12px;
    }
    .maestro-landing__title {
        margin-bottom: 8px;
        font-size: clamp(1.1rem, 5.4vw, 1.32rem);
        line-height: 1.3;
    }
    .maestro-landing__lead {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 9px;
        max-width: 28ch;
    }
    .maestro-landing__highlight {
        border-radius: 14px;
        padding: 10px 10px 9px;
        margin-bottom: 11px;
    }
    .maestro-landing__highlight strong { font-size: 0.94rem; line-height: 1.4; }
    .maestro-landing__highlight-sub { font-size: 0.84rem; line-height: 1.4; margin-top: 6px; }
    .maestro-landing__cta {
        padding: 11px 18px;
        font-size: 0.94rem;
        min-height: 44px;
    }
    .maestro-landing__footnote { font-size: 0.78rem; margin-top: 9px; }
    .maestro-landing__deco,
    .maestro-landing__floaters { display: none; }
}

@keyframes maestroCardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes maestroFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes maestroFloatY {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(18deg); }
}

@keyframes maestroFloatYRev {
    0%, 100% { transform: translateY(0) rotate(-12deg); }
    50% { transform: translateY(12px) rotate(-18deg); }
}

@keyframes maestroPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes maestroTwinkle {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-8px); }
}

@keyframes maestroTwinkleScale {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes maestroTwinkleRot {
    0%, 100% { opacity: 0.3; transform: rotate(0); }
    50% { opacity: 1; transform: rotate(12deg); }
}
