/* Additive mobile refinement. Keep current copy, prices, assets and behavior.
   This first rule repairs the existing tablet one-column grid-area conflict. */
@media (max-width: 1100px) {
  body.gy-mobile-20261024 .hero-proof-band {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "proof" "links" "note";
    gap: 0px;
  }
}

@media (max-width: 900px) {
  body.gy-mobile-20261024 #root .section {
    padding-block: 64px;
    scroll-margin-top: 88px;
  }

  body.gy-mobile-20261024 #root .section-head {
    margin-bottom: 28px;
    gap: 16px;
  }

  body.gy-mobile-20261024 #root .section-head h2 {
    font-size: 30px;
    line-height: 1.5;
    letter-spacing: .01em;
  }

  body.gy-mobile-20261024 #root .section-head > p,
  body.gy-mobile-20261024 #root .section-head > div > p {
    font-size: 16px;
    line-height: 1.85;
  }

  body.gy-mobile-20261024 .hero-proof-band {
    padding-block: 56px 24px;
  }

  body.gy-mobile-20261024 .hero-proof-title {
    max-width: 24ch;
    font-size: 30px;
    line-height: 1.55;
    text-wrap: balance;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof {
    width: 100%;
    max-width: 560px;
    column-gap: 32px;
    margin-top: 28px;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof-book > a:first-child {
    max-width: 180px;
    min-height: 0;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof-book img {
    width: 100%;
    height: 214px;
    object-fit: contain;
    object-position: left bottom;
    box-shadow: none;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof-book h2 {
    margin-top: 16px;
    font-size: 20px;
    line-height: 1.55;
    letter-spacing: 0;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof-book p,
  body.gy-mobile-20261024 .hero-cinematic .hero-proof-caption,
  body.gy-mobile-20261024 .hero-cinematic .hero-delivery-note {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0;
    color: #625b50;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof-caption {
    margin-top: 16px;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-secondary {
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 4px 24px;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-delivery-note {
    margin-top: 8px;
  }

  body.gy-mobile-20261024 #root .text-link,
  body.gy-mobile-20261024 .home-book-details summary {
    min-height: 44px;
    align-items: center;
    line-height: 1.7;
  }

  body.gy-mobile-20261024 .home-book-shelf {
    gap: 32px;
  }

  /* Keep the two existing book rows. Clearing the floated cover lets the
     expanded introduction use the full row, without display:contents or DOM edits. */
  body.gy-mobile-20261024 .home-book {
    display: flow-root;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line, #ded6c8);
  }

  body.gy-mobile-20261024 .home-book-cover {
    float: inline-start;
    width: 118px;
    margin: 0 22px 16px 0;
  }

  body.gy-mobile-20261024 .home-book-cover img {
    width: 100%;
    height: auto;
    max-height: 168px;
    object-fit: contain;
    object-position: left top;
  }

  body.gy-mobile-20261024 .home-book-copy h3 {
    padding-top: 4px;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  body.gy-mobile-20261024 .home-book-author {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 10px;
  }

  body.gy-mobile-20261024 .home-book-details {
    clear: both;
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
  }

  body.gy-mobile-20261024 .home-book-details summary {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding-block: 8px;
  }

  body.gy-mobile-20261024 .home-book-details p {
    margin-block: 12px 16px;
    font-size: 16px;
    line-height: 1.9;
    color: #4f483d;
  }

  body.gy-mobile-20261024 .home-book-copy > .text-link {
    display: inline-flex;
    margin: 8px 20px 0 0;
    font-size: 15px;
  }

  body.gy-mobile-20261024 .home-library-note {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.8;
  }

  body.gy-mobile-20261024 .plan-tabs {
    gap: 6px;
    margin-bottom: 24px;
  }

  body.gy-mobile-20261024 .plan-tab {
    min-height: 64px;
    padding: 12px 6px;
    font-size: 14px;
    line-height: 1.6;
  }

  body.gy-mobile-20261024 .plan {
    padding: 28px 24px;
  }

  body.gy-mobile-20261024 .plan-price {
    font-size: 40px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
  }

  body.gy-mobile-20261024 .plan-note,
  body.gy-mobile-20261024 .plan-confirm,
  body.gy-mobile-20261024 .plan dd {
    font-size: 15px;
    line-height: 1.85;
  }

  body.gy-mobile-20261024 .faq-item summary {
    min-height: 64px;
    padding-block: 18px;
    font-size: 18px;
    line-height: 1.6;
  }

  body.gy-mobile-20261024 .faq-item p {
    font-size: 16px;
    line-height: 1.9;
  }
}

@media (max-width: 767px) {
  /* The illustration follows the copy in normal flow, so text never covers
     faces on a narrow or taller-text display. Crop only the empty upper wall. */
  body.gy-mobile-20261024 .hero-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.gy-mobile-20261024 .hero-stage-inner {
    order: 0;
    padding-block: 30px 18px;
  }

  body.gy-mobile-20261024 .hero-art {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: min(82vw, 370px);
  }

  body.gy-mobile-20261024 .hero-art img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center bottom;
  }

  body.gy-mobile-20261024 .hero-cinematic h1 {
    font-size: clamp(27px, 7.6vw, 31px);
    line-height: 1.5;
    margin-bottom: 16px;
    text-wrap: balance;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-subtitle {
    font-size: 16px;
    line-height: 1.85;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-conversion {
    margin-top: 24px;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-actions {
    grid-template-columns: 1.25fr 1fr;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-actions button {
    min-height: 48px;
    letter-spacing: .02em;
  }

  body.gy-mobile-20261024 .hero-cinematic .direct-contact {
    margin-top: 10px;
    gap: 0 10px;
    font-size: 14px;
    line-height: 1.7;
  }

  body.gy-mobile-20261024 .hero-cinematic .direct-contact button,
  body.gy-mobile-20261024 .hero-cinematic .direct-contact a {
    min-height: 44px;
    font-size: 14px;
  }

  body.gy-mobile-20261024 .hero-proof-title {
    font-size: 27px;
    max-width: none;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof {
    column-gap: 20px;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof-book > a:first-child {
    max-width: 122px;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof-book img {
    height: 156px;
  }

  body.gy-mobile-20261024 .hero-cinematic .hero-proof-book h2 {
    font-size: 18px;
  }

  body.gy-mobile-20261024 .home-book-cover {
    width: 104px;
    margin-right: 20px;
  }

  body.gy-mobile-20261024 .home-book-copy h3 {
    font-size: 23px;
  }

  /* Two always-visible primary actions; all phone / WeChat controls remain
     available in the unchanged consultation dialog, hero and page footer. */
  body.gy-mobile-20261024 .mobile-bottom {
    grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
    gap: 10px;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line, #ded6c8);
    background: var(--background, #f8f3ea);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.gy-mobile-20261024 .mobile-bottom > a,
  body.gy-mobile-20261024 .mobile-bottom > button {
    min-height: 48px;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: .02em;
  }

  body.gy-mobile-20261024 .mobile-bottom > .direct-contact {
    display: none;
  }

  body.gy-mobile-20261024 .gy-icp-filing-standalone {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}
