/* Approved homepage visual layer. Animations stay in index.html. */
.site-header {
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(0, 41, 51, .09);
    box-shadow: none;
}
@media (min-width: 781px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 40;
        background: rgba(255, 255, 255, .88);
        backdrop-filter: blur(14px);
        box-shadow: none;
    }
}
.brand img { width: auto; height: 34px; }
.nav-links a {
    padding: 8px 12px;
    border-radius: 999px;
}
.nav-links a:hover { background: #f3fbf9; color: #002933; }
.nav-btn.login { background: #fff; border: 1px solid rgba(0, 41, 51, .16); }
.nav-btn.register,
a.button.primary,
.step-path a.button.primary,
.button.primary {
    background: #002933;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 14px 28px -18px rgba(0, 41, 51, .8);
}
.nav-btn.register:hover,
a.button.primary:hover,
.button.primary:hover {
    background: #0d3a44;
    color: #fff;
}
a.button.secondary,
.button.secondary {
    background: #fff;
    color: #002933;
    border: 1px solid rgba(0, 41, 51, .16);
    border-radius: 999px;
}
a.button.secondary:hover,
.button.secondary:hover { background: #f3fbf9; color: #002933; }

.hero {
    background:
        radial-gradient(circle at 88% 30%, rgba(131, 215, 202, .28), transparent 34%),
        radial-gradient(circle at 70% 92%, rgba(253, 120, 153, .12), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f3fbf9 100%);
}
.hero-copy { padding-top: 64px; padding-bottom: 36px; }
.hero-copy h1 {
    font-size: clamp(2.15rem, 4.4vw, 3.45rem);
    line-height: 1.16;
    letter-spacing: 0;
    max-width: 11em;
}
h1 em.hero-mark {
    font-style: normal;
    background: linear-gradient(180deg, transparent 62%, rgba(131, 215, 202, .55) 62%);
}
.trust-bar {
    width: min(1240px, calc(100% - 48px));
    margin: -8px auto 8px;
}
.trust-bar p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid rgba(0, 41, 51, .1);
    border-radius: 16px;
    background: #fff;
    color: #002933;
    font-family: var(--sans, "Noto Sans HK", sans-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}
.trust-bar span[aria-hidden="true"] {
    margin: 0 12px;
    color: #83D7CA;
    font-weight: 500;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(0, 41, 51, .09);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 41, 51, .05);
    color: #002933;
    font-size: 13.5px;
    font-weight: 700;
}
.hero-art { isolation: isolate; min-height: 420px; }
.hero-art::before {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #e8f8f5 60%, rgba(232, 248, 245, 0) 72%);
    z-index: 0;
}
.hero-panda-wrap {
    z-index: 1;
    width: min(280px, 64%);
    margin: 0 auto;
    pointer-events: auto;
}
.hero-panda { width: 100%; pointer-events: auto; }
.art-note-float {
    z-index: 3;
    right: 0;
    bottom: 8%;
    border: 1px solid rgba(0, 41, 51, .14);
    background: linear-gradient(180deg, #fffdf9, #e8f8f5);
    box-shadow: 0 18px 36px -24px rgba(0, 41, 51, .5);
    pointer-events: none;
}
.art-note-float::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #83D7CA, #5ac5b0 48%, #FD7899);
}

.teacher-profile-card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 41, 51, .09);
    box-shadow: 0 1px 2px rgba(0, 41, 51, .05);
}
.review-card {
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 41, 51, .09);
    box-shadow: 0 1px 2px rgba(0, 41, 51, .05);
}
.review-card:nth-child(3n+1) { background: #e8f8f5; border-color: #cdeee8; }
.review-card:nth-child(3n+2) { background: #fff8f4; border-color: #f0d8cd; }
.review-card:nth-child(3n+3) { background: #fff0f4; border-color: #ffd3de; }
.match-section { background: #f3fbf9; }
.match-form {
    border-radius: 22px;
    border: 1px solid rgba(0, 41, 51, .09);
    box-shadow: 0 10px 30px -14px rgba(0, 41, 51, .22);
}
.match-option.selected { background: #e8f8f5; }

section.feature-band { background: linear-gradient(180deg, #fff7f9 0%, #fff 100%) !important; }
section.feature-band h2, .feature h3 { color: #002933 !important; }
.feature-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.feature {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 28px 24px 26px;
    border: 1px solid rgba(0, 41, 51, .12) !important;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf9 0%, #e8f8f5 100%) !important;
    box-shadow: 0 18px 36px -30px rgba(0, 41, 51, .5);
    overflow: hidden;
}
.feature + .feature { border-top: 1px solid rgba(0, 41, 51, .12); }
.feature::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #83D7CA, #5ac5b0 48%, #FD7899);
}
.feature:nth-child(3) { background: linear-gradient(180deg, #fff 0%, #fff1f5 100%) !important; }
.feature .nihao-mascot { width: 76px; max-width: 76px; max-height: 92px; }
.feature h3 { margin-top: 8px; font-size: 1.25rem; }

.pricing-band { background: #fff; }
.pricing-card {
    position: relative;
    padding: 36px 0 32px;
    border: 0;
    box-shadow: 0 0 0 1px rgba(0, 41, 51, .12);
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdf9 0%, #e8f8f5 100%);
    overflow: hidden;
}
.pricing-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #83D7CA, #5ac5b0 48%, #FD7899);
}
.pricing-card h2 { margin-bottom: 8px; }
.pricing-lines {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}
.pricing-lines li {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(0, 41, 51, .08);
    border-radius: 14px;
    background: #fff;
    color: #002933;
    font-family: var(--sans, "Noto Sans HK", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
}
.pricing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.steps { background: #f3fbf9; }
.step-path {
    padding: 40px 28px 24px;
    border-radius: 24px;
    border: 1px solid rgba(0, 41, 51, .09);
    box-shadow: 0 10px 30px -14px rgba(0, 41, 51, .22);
}
.step-path-station span {
    width: 56px;
    height: 56px;
    border: 2px solid #83D7CA;
    background: #fff;
    font-family: var(--display);
    font-size: 1.15rem;
}
.step-path-line { top: 52px; }
.step-path-panda { top: 18px; width: 48px; max-width: 48px; }
.step-path .button { width: max-content; margin: 28px auto 0; display: flex; }

#about-us.about-band {
    background: #fff !important;
    padding: 72px 0 !important;
    border-top: 0 !important;
}
#about-us .about-with-mascot { display: block; }
#about-us .about-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-width: 0;
}
#about-us .about-head > div { min-width: 0; flex: 1 1 auto; }
#about-us .about-card {
    padding: 36px 40px 32px !important;
    border: 0 !important;
    box-shadow: 0 0 0 1px rgba(0, 41, 51, .14) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 94% 78%, rgba(253, 120, 153, .14), transparent 26%),
        linear-gradient(180deg, #fffdf9 0%, #e8f8f5 100%) !important;
    overflow: hidden;
}
#about-us .about-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12px;
    background:
        linear-gradient(90deg, #83D7CA, #5ac5b0 48%, #FD7899) bottom / 100% 3px no-repeat,
        linear-gradient(90deg, #5ebfb2 0%, #83D7CA 38%, #d7f4ee 68%, #ffc4d4 100%);
}
#about-us .about-panda {
    width: 112px !important;
    max-width: 112px !important;
    height: auto !important;
    max-height: 136px !important;
    margin: 0 !important;
    flex: 0 0 auto;
}
#about-us .about-copy {
    max-width: 68ch;
    margin: 18px 0 0;
    font-size: 1rem;
    line-height: 1.8;
}
.faq-section { background: #f7fbfa; }
.faq-item { border-radius: 14px; background: #fff; }

.teacher-marquee { width: 100%; }
.teacher-marquee-window {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.review-marquee { width: calc(100% - 176px); }
.site-footer footer { padding-right: 168px; padding-bottom: 36px; }
@media (max-width: 780px) {
    .hero-copy { padding: 28px 0 12px; }
    .hero-copy h1 { font-size: clamp(2rem, 8.4vw, 2.45rem); max-width: none; }
    .trust-bar { width: min(100% - 28px, 620px); margin: 52px auto 4px; }
    .trust-bar p { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; }
    .trust-bar span[aria-hidden="true"] { display: none; }
    .pricing-card {
        padding: 22px 16px 20px !important;
        overflow: hidden;
    }
    .pricing-card h2 {
        font-size: clamp(1.55rem, 7.2vw, 1.9rem);
        line-height: 1.28;
        overflow-wrap: anywhere;
    }
    .pricing-lines {
        gap: 10px;
        margin: 14px 0 16px;
        min-width: 0;
    }
    .pricing-lines li {
        min-width: 0;
        padding: 12px 14px;
        font-size: .92rem;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }
    .pricing-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .pricing-actions .button {
        width: 100%;
        min-height: 46px;
        flex: none;
        white-space: normal;
        text-align: center;
    }
    #pricing { scroll-margin-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
    h1 { font-size: clamp(2.4rem, 11vw, 2.75rem); }
    .hero-art { min-height: 0; margin-top: 4px; }
    .hero-art::before { width: 240px; height: 240px; }
    .hero-panda-wrap { width: min(118px, 34%); }
    .art-note-float { right: 0; bottom: 8px; width: min(200px, 70%); pointer-events: none; }
    .hero-actions .button { flex: 1 1 auto; }
    .feature-stack { grid-template-columns: 1fr; }
    .feature + .feature { border-top: 1px solid rgba(0, 41, 51, .12); }
    .step-path-stations { grid-template-columns: 1fr; gap: 16px; text-align: left; }
    .step-path-station { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
    .step-path-station span { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
    .step-path-line, .step-path-panda { display: none; }
    #about-us .about-card { padding: 28px 20px 22px !important; }
    #about-us .about-head { gap: 12px; }
    #about-us .about-panda { width: 84px !important; max-width: 84px !important; max-height: 104px !important; }
    #about-us .about-copy { max-width: none; font-size: .95rem; }
    .hero-trust span { min-height: 32px; font-size: 12.5px; padding: 0 11px; }
    .teacher-marquee,
    .review-marquee { width: 100%; }
    .teacher-marquee-window {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    }
    .site-footer footer { padding-right: 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
    .hero-trust span:nth-child(n+3) { flex: 1 1 100%; }
}
