/* Compact layouts preserve the PSD's visual language while reflowing its content. */
.menu-toggle,
.hero-mobile-art {
  display: none;
}

@media (min-width: 1200px) and (max-width: 1600px) {
  .testimonial-arrow { width: 44px; }
}

@media (max-width: 1199px) {
  :root { --page-gutter: 28px; --section-gap: 80px; }

  .container, .pricing-grid {
    width: min(100% - var(--page-gutter) * 2, 900px);
    max-width: none;
  }
  .section { height: auto; }
  .section h2 { font-size: 36px; line-height: 1.45; text-wrap: balance; }
  .section-description { max-width: 620px; margin-top: 20px; font-size: 17px; line-height: 1.8; }
  .button { min-height: 48px; }

  /* Navigation opens inside a bounded panel; every item remains reachable. */
  .site-header {
    width: calc(100% - var(--page-gutter) * 2);
    max-width: none;
    height: 80px;
    justify-content: flex-start;
    gap: 18px;
    z-index: 10;
  }
  .brand { width: 116px; margin-right: auto; }
  .language { gap: 5px; font-size: 14px; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff4a;
    border-radius: 12px;
  }
  .menu-toggle span { width: 20px; height: 2px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #e9eaff;
    border-radius: 18px;
    color: #242944;
    background: #fff;
    box-shadow: 0 16px 45px #24397530;
  }
  .site-header nav.is-open { display: grid; }
  .site-header nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 16px; font-size: 15px; border-radius: 10px; }
  .site-header nav a:hover { background: #f0f3ff; opacity: 1; color: var(--blue); }

  .hero { background-size: 100% 610px; }
  .hero-copy { height: 530px; padding: 60px 24px 35px; }
  .hero-eyebrow { font-size: 64px; line-height: 1.15; letter-spacing: -1px; }
  .hero h1 { margin-top: 12px; font-size: 42px; line-height: 1.5; letter-spacing: -.5px; }
  .hero-description { margin: 18px auto 0; font-size: 17px; line-height: 1.8; }
  .hero-copy .button { margin-top: 30px; }
  .hero-art { margin: 0; }
  .demo-link { min-height: 44px; }

  .overview { padding: var(--section-gap) 0; }
  .overview .section-description { margin-top: 22px; font-size: 16px; line-height: 1.9; }
  .partner-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
  .partner-grid img { width: 100%; height: auto; border-radius: 20%; object-fit: contain; }

  .product { padding-bottom: var(--section-gap); }
  .product-layout { grid-template-columns: minmax(240px, .85fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
  .management-list { padding: 0; }
  .management-item { gap: 14px; margin-bottom: 20px; min-height: 44px; }
  .management-item:first-child { margin-bottom: 24px; }
  .management-item:last-child { margin-bottom: 0; }
  .management-item img { width: 44px; height: 44px; }
  .management-item h3 { margin: 0; font-size: 18px; line-height: 1.5; }
  .management-item p { margin-top: 9px; font-size: 15px; line-height: 1.8; }
  .course-art { width: 100%; height: auto; border-radius: 36px; }
  .simple { padding: 0 0 var(--section-gap); }
  .simple-art { width: 100%; max-width: 760px; margin: 36px auto 0; }

  .features { padding: var(--section-gap) 0; }
  .features .section-description { margin-top: 18px; }
  .feature-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; height: auto; margin-top: 40px; }
  .feature-card { position: static; width: auto; height: auto; min-width: 0; border-radius: 28px; padding: 0 0 26px; }
  .feature-art { width: 100%; height: 170px; object-fit: contain; }
  .feature-copy { padding: 12px 24px 0; }
  .feature-card h3, .feature-card p { position: static; margin: 0; }
  .feature-card h3 { font-size: 20px; line-height: 1.55; font-weight: 700; }
  .feature-card p { font-size: 15px; line-height: 1.8; margin-top: 10px; letter-spacing: 0; }
  .feature-card-feature-01 { background: #fff; }
  .feature-card-feature-01 .feature-art { background: #fff url("assets/booking-background.webp") center top/100% auto no-repeat; }

  .industries { padding: var(--section-gap) 0; }
  .industry-grid { margin-top: 36px; gap: 14px; }
  .industry-grid li { min-width: 0; height: 72px; gap: 16px; font-size: 16px; border-radius: 14px; border-color: #dde0e8; }
  .industry-grid img { width: 30px; max-height: 32px; }

  .solutions { padding: 0 0 var(--section-gap); }
  .region-tabs { margin-top: 28px; }
  .solution-layout { margin-top: 32px; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
  .solution-visual { width: 100%; height: auto; aspect-ratio: 549/684; border-radius: 32px; }
  .solution-copy { height: auto; padding: 36px 30px; border-radius: 32px; display: flex; flex-direction: column; }
  .solution-copy h3 { font-size: 32px; line-height: 1.4; letter-spacing: 0; }
  .solution-subtitle { margin-top: 8px; font-size: 18px; line-height: 1.6; }
  .solution-copy h4 { font-size: 17px; line-height: 1.75; margin-top: 32px; white-space: normal; }
  .solution-description { margin-top: 16px; font-size: 15px; line-height: 1.85; }
  .app-downloads { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
  .store-button { width: 100%; height: 56px; padding: 6px 10px; border-radius: 12px; }
  .mainland-contact { margin-top: 28px; }
  .slider-dots { margin-top: 28px; }

  .pricing { padding: 0 0 var(--section-gap); }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
  .price-card { height: auto; min-height: 0; padding: 30px 22px; border-radius: 24px; }
  .plan-heading { height: auto; align-items: flex-start; gap: 12px; padding-bottom: 24px; }
  .plan-heading img { width: 42px; height: 44px; }
  .plan-heading h3 { font-size: 23px; line-height: 1.5; }
  .plan-heading p { font-size: 14px; line-height: 1.75; white-space: normal; margin-top: 6px; }
  .plan-heading>div { min-width: 0; }
  .price-card h4 { font-size: 17px; line-height: 1.6; margin-top: 24px; white-space: normal; }
  .price-card ul { font-size: 15px; line-height: 1.8; }
  .price-card li { font-size: 15px; line-height: 1.8; padding-left: 23px; margin-top: 9px; }
  .price-card li::before { top: 8px; width: 11px; height: 6px; }
  .plan-badge { padding: 6px 17px; font-size: 15px; line-height: 24px; }
  .pricing-note { width: calc(100% - var(--page-gutter) * 2); margin: 28px auto 0; font-size: 15px; line-height: 1.8; }
  .pricing>.button { margin-top: 20px; }

  .testimonials { padding: 0 0 var(--section-gap); }
  .testimonial-grid { display: block; }
  .side-testimonial { display: none; }
  .active-testimonial { height: auto; padding: 0 16px 16px; border-radius: 28px; }
  .active-testimonial header { height: auto; min-height: 150px; padding: 22px 18px 0; align-items: flex-end; }
  .active-testimonial header>div { max-width: 60%; padding: 0 0 24px; }
  .active-testimonial header p { font-size: 14px; line-height: 1.6; }
  .customer-portrait { width: 40%; height: auto; right: 12px; object-fit: contain; }
  .quote-panel { height: auto; min-height: 222px; padding: 26px 24px; position: relative; }
  .quote-panel .studio { padding: 0 80px 0 0; min-height: 65px; }
  .quote-panel .studio img { top: 0; width: 62px; height: 62px; }
  .quote-panel blockquote { margin-top: 24px; font-size: 15px; line-height: 1.85; }
  .questions { padding-bottom: var(--section-gap); }
  .question-panel { height: auto; padding: 42px; border-radius: 32px; }
  .question-panel .section-description { margin-top: 10px; }
  .question-description { font-size: 16px; line-height: 1.9; margin-top: 28px; }
  .question-panel .button { margin-top: 30px; }
  .support { padding: 64px 0; }
  .support h2 { font-size: 30px; }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
  .support-grid article { height: auto; min-height: 160px; padding: 24px; border-radius: 22px; }
  .support-grid h3 { font-size: 20px; line-height: 1.5; padding-right: 30px; }
  .support-icon { top: 24px; right: 24px; width: 28px; height: 30px; }
  .weekend { position: static; display: inline-block; vertical-align: 2px; font-size: 12px; margin-left: 8px; }
  .support-grid p { font-size: 15px; line-height: 1.8; margin-top: 24px; }
  .support-note { margin-top: 28px; font-size: 14px; line-height: 1.8; }

  .contact { padding: 56px 0; }
  .contact h2 { font-size: 32px; }
  .contact .section-description { margin-top: 18px; font-size: 17px; }
  .contact-benefits { margin-top: 28px; gap: 26px; font-size: 14px; }
  .contact .button { margin-top: 28px; }
  .site-footer { height: auto; }
  .footer-main { height: auto; padding: 36px 0; flex-direction: column; gap: 32px; }
  .footer-brands { gap: 32px; }
  .social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 590px; }
  .social-icon,.social-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .social-icon img,.social-button img { width: 40px; height: 40px; }
  .wechat-popover { display: none; }
  .security-grid { height: auto; padding: 26px 0; gap: 18px; }
  .security-grid p { margin-top: 12px; font-size: 12px; line-height: 1.6; }
  .copyright { font-size: 12px; line-height: 1.8; padding: 22px 8px 28px; overflow-wrap: anywhere; }
  .dialog-close { width: 44px; height: 44px; right: 5px; top: 5px; }
  .contact-dialog { max-height: calc(100dvh - 32px); overflow: auto; }
}

@media (max-width: 900px) {
  .testimonial-stage { margin: 38px auto 0; padding: 0 0 62px; max-width: 560px; }
  .testimonial-arrow { width: 44px; height: 44px; top: auto; bottom: 0; }
  .testimonial-arrow.previous { left: calc(50% - 54px); }
  .testimonial-arrow.next { right: calc(50% - 54px); }
}

@media (max-width: 760px) {
  :root { --page-gutter: 20px; --section-gap: 64px; }
  .section h2 { font-size: 28px; line-height: 1.5; }
  .section-description { font-size: 15px; line-height: 1.85; margin-top: 16px; }
  .site-header { height: 72px; gap: 12px; }
  .brand { width: 110px; }
  .hero { background: linear-gradient(150deg,#4b74f2 7%,#7d7be7 53%,#df9dde 100%); }
  .hero-copy { height: auto; padding: 34px 20px 28px; }
  .hero-eyebrow { font-size: clamp(40px,10.5vw,52px); line-height: 1.2; letter-spacing: -.8px; }
  .hero h1 { font-size: clamp(25px,7.1vw,34px); line-height: 1.55; margin-top: 14px; letter-spacing: -.5px; }
  .hero h1 span { display: block; }
  .hero-description { max-width: 330px; font-size: 15px; line-height: 1.8; margin-top: 16px; text-wrap: balance; }
  .hero-copy .button { width: 220px; height: 52px; font-size: 17px; margin-top: 26px; }
  .demo-link { font-size: 16px; line-height: 44px; margin-top: 4px; min-height: 44px; }
  .hero-art { display: none; }
  .hero-mobile-art { display: block; position: relative; width: min(100% - 16px,480px); aspect-ratio: 900/920; margin: 0 auto; }
  .hero-mobile-art img { position: absolute; height: auto; filter: drop-shadow(0 12px 14px #4a429c20); }
  .mobile-hero-phone { left: 26%; top: 11%; width: 47%; }
  .mobile-hero-members { right: 1%; top: 0; width: 33%; }
  .mobile-hero-classes { left: 0; top: 31%; width: 34%; border-radius: 18px; border: 4px solid #ffffff66; }
  .mobile-hero-revenue { right: 0; top: 53%; width: 29%; }

  .overview .section-description { text-align: left; font-size: 15px; line-height: 1.9; margin-top: 20px; }
  .partner-grid { max-width: 420px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; margin-top: 32px; }
  .partner-grid img { width: min(100%,78px); justify-self: center; object-fit: contain;}
  .product-layout { display: flex; flex-direction: column-reverse; gap: 26px; }
  .course-art { max-width: 520px; border-radius: 28px; }
  .management-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; width: 100%; }
  .management-item { margin: 0; gap: 10px; align-items: center; }
  .management-item:first-child { grid-column: 1/-1; margin: 0 0 8px; align-items: flex-start; }
  .management-item h3 { font-size: 16px; line-height: 1.7; }
  .management-item:first-child h3 { font-size: 20px; line-height: 1.5; }
  .management-item p { font-size: 15px; line-height: 1.8; }
  .management-item img { width: 40px; height: 42px; }
  .simple-art { max-width: 530px; margin-top: 24px; }

  /* All mobile feature cards stack their illustration above the copy. */
  .feature-board { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .feature-card { display: block; padding: 0 0 24px; border-radius: 22px; }
  .feature-art { width: 100%; height: 190px; object-fit: contain; object-position: center; }
  .feature-copy { min-width: 0; padding: 18px 22px 0; }
  .feature-card h3 { font-size: 18px; line-height: 1.55; }
  .feature-card p { font-size: 15px; line-height: 1.8; margin-top: 8px; }
  .industry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
  .industry-grid li { gap: 12px; height: 64px; font-size: 15px; }
  .industry-grid img { width: 28px; height: 28px; }

  /* Explain the selected plan before its screen preview. Heights follow content. */
  .region-tabs { width: 100%; max-width: 360px; height: 54px; margin-top: 26px; padding: 5px; }
  .region-tabs button { min-height: 44px; font-size: 15px; }
  .solution-layout { display: flex; flex-direction: column-reverse; gap: 0; margin-top: 24px; border-radius: 26px; overflow: hidden; background: #f7f7f7; }
  .solution-copy { padding: 28px 24px; border-radius: 0; }
  .solution-copy h3 { font-size: 28px; }
  .solution-subtitle { font-size: 17px; }
  .solution-copy h4 { font-size: 17px; line-height: 1.65; margin-top: 26px; }
  .solution-description { font-size: 15px; line-height: 1.85; margin-top: 14px; }
  .solution-visual { align-self: center; width: 100%; max-width: 330px; max-height: 390px; height: auto; aspect-ratio: 549/684; border-radius: 0; }
  .solution-phone { top: calc(7.89474% + 22px); }
  .app-downloads { margin-top: 26px; gap: 12px; }
  .store-button { height: 56px; padding: 7px; }
  .slider-dots { margin-top: 20px; }

  .pricing-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 38px; }
  .price-card { padding: 28px 24px; }
  .plan-heading { align-items: center; gap: 14px; }
  .plan-heading img { width: 50px; height: 53px; }
  .plan-heading h3 { font-size: 26px; }
  .plan-heading p { font-size: 14px; margin-top: 2px; }
  .price-card h4 { font-size: 18px; margin-top: 22px; }
  .price-card ul { margin-top: 14px; }
  .price-card li { margin-top: 7px; font-size: 15px; line-height: 1.8; }
  .pricing-note { font-size: 14px; }

  .testimonial-stage { margin-top: 28px; }
  .active-testimonial { padding: 0 12px 12px; border-radius: 24px; }
  .active-testimonial header { padding: 24px 12px 0; min-height: 150px; }
  .active-testimonial header>div { max-width: 58%; padding-bottom: 24px; }
  .testimonial h3 { font-size: 20px; }
  .active-testimonial header p { font-size: 13px; }
  .customer-portrait { right: 0; width: 40%; }
  .quote-panel { min-height: 0; padding: 24px 18px; }
  .quote-panel .studio { min-height: 64px; padding-right: 66px; }
  .quote-panel .studio img { width: 54px; height: 54px; border-radius: 10px; }
  .studio h4 { font-size: 18px; line-height: 1.6; }
  .quote-panel blockquote { font-size: 15px; line-height: 1.85; margin-top: 18px; }

  .question-panel { padding: 32px 24px; border-radius: 26px; }
  .question-panel .section-description { font-size: 15px; line-height: 1.8; }
  .question-description { font-size: 15px; line-height: 1.85; margin-top: 24px; }
  .question-panel .button { margin-top: 24px; }
  .support { padding: 52px 0; }
  .support h2 { font-size: 26px; }
  .support-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .support-grid article { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 8px 14px; padding: 22px; min-height: 0; }
  .support-grid h3 { grid-column: 2; grid-row: 1; font-size: 18px; padding-right: 0; }
  .support-grid article:first-child h3 { padding-right: 60px; }
  .support-icon { position: static; grid-column: 1; grid-row: 1 / span 2; width: 30px; height: 32px; }
  .weekend { position: absolute; right: 22px; top: 24px; left: auto; margin: 0; width: fit-content; font-size: 12px; }
  .support-grid p,.support-grid article:first-child p { grid-column: 2; margin-top: 0; font-size: 15px; line-height: 1.8; text-wrap: pretty; }
  .support-note { font-size: 14px; }
  .contact { padding: 48px 0; }
  /* .contact h2 { font-size: 27px; max-width: 340px; margin: auto; text-wrap: auto; } */
  .contact h2 { font-size: 27px; margin: auto; text-wrap: auto; }
  .contact .section-description { font-size: 15px; line-height: 1.8; }
  .contact-benefits { display: grid; justify-content: center; gap: 12px; margin-top: 24px; font-size: 15px; text-align: left; }
  .contact .button { min-height: 52px; font-size: 17px; }
  .footer-brands { gap: 26px; }
  .footer-brands img:first-child { width: 112px; height: auto; }
  .footer-brands img:last-child { width: 132px; height: auto; }
  .social-grid { max-width: 350px; gap: 12px; }
  .security-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 16px; }
  .security-grid img { height: 34px; max-width: 100px; }
  .security-grid p { font-size: 13px; }
  .copyright { font-size: 12px; line-height: 1.85; }
  .copyright-icp { display: block; white-space: nowrap; }
  .contact-dialog { width: min(360px,100% - 32px); padding: 42px 22px 28px; }
  .contact-dialog p { font-size: 14px; line-height: 1.7; }
  .contact-dialog>img { width: min(224px,100%); height: auto; aspect-ratio: 1; }
}

@media (max-width: 359px) {
  :root { --page-gutter: 16px; }
  .section h2 { font-size: 25px; }
  .hero h1 { font-size: 25px; }
  .hero-copy { padding-left: 16px; padding-right: 16px; }
  .feature-card { padding: 0 0 22px; }
  .feature-art { height: 160px; }
  .feature-copy { padding: 16px 18px 0; }
  .feature-card h3 { font-size: 17px; }
  .solution-copy { padding: 26px 20px; }
  .plan-heading h3 { font-size: 24px; }
  .price-card { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
