/* Opt-in hero-only composition. The site's navigation, catalogue and footer retain their styles. */
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) {
  padding-block: 26px 16px;
  background: var(--stage-bg);
  color: var(--stage-ink);
  transition: background-color 440ms ease, color 440ms ease;
}
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-intro {
  grid-template-columns: 1.45fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 14px;
}
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-kicker { color: var(--stage-muted); margin-bottom: 14px; }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) h1 { font-size: clamp(43px, 4.7vw, 70px); line-height: 1.02; letter-spacing: -.035em; }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) h1 em { color: var(--stage-ink); }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-note p { color: var(--stage-muted); font-size: 12px; line-height: 1.5; margin-bottom: 6px; max-width: 56ch; }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-note p:first-child { color: var(--stage-ink); font-size: 14px; }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-link { font-size: 12px; color: var(--stage-ink); }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-worlds-label { color: var(--stage-muted); margin-bottom: 0; font-size: 10px; }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-bottom { padding-top: 8px; margin-top: 8px; border-color: color-mix(in srgb, var(--stage-ink) 18%, transparent); color: var(--stage-muted); font-size: 10px; }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-bottom a { color: var(--stage-ink); }
body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-bottom span { color: inherit; }
body[data-product-stage-demo] #hub-hero .product-stage__category,
body[data-product-stage-demo] #hub-hero .product-stage__description { color: var(--stage-muted); }
body[data-product-stage-demo] #hub-hero .product-stage__browse { color: var(--stage-bg); }
body[data-product-stage-demo] #hub-hero .product-stage__name { font-size: clamp(31px, 3.1vw, 47px); line-height: 1.12; }
body[data-product-stage-demo] #hub-hero .product-stage__viewport { height: clamp(280px, 30vw, 350px); }
body[data-product-stage-demo] #hub-hero .product-stage__details { margin-top: 14px; }
body[data-product-stage-demo] #hub-hero .product-stage__footer { margin-top: 16px; padding-top: 10px; }
body[data-product-stage-demo] #hub-hero .product-stage__choices { grid-column: 2; grid-row: 1; justify-self: center; }
body[data-product-stage-demo] #hub-hero .product-stage__count { grid-column: 1; grid-row: 1; }
body[data-product-stage-demo] #hub-hero .product-stage__autoplay { grid-column: 3; grid-row: 1; }
@media (max-width: 900px) {
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-intro { gap: 28px; }
}
@media (max-width: 650px) {
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) { padding-block: 28px 18px; }
  body[data-product-stage-demo] #hub-hero .yz-home-shell { width: calc(100% - 40px); }
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) h1 { font-size: clamp(36px, 9.7vw, 51px); }
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-kicker { font-size: 9px; margin-bottom: 13px; }
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-note { display: grid; grid-template-columns: 1fr 104px; gap: 10px; align-items: end; }
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-note p:first-child { font-size: 12px; margin: 0; }
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-note p:nth-child(2) { display: none; }
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-note .hub-link { max-width: 104px !important; font-size: 11px !important; line-height: 1.4; gap: 6px; }
  body[data-product-stage-demo] #hub-hero .product-stage__name { font-size: 34px; }
  body[data-product-stage-demo] #hub-hero .product-stage__viewport { height: 290px; }
  body[data-product-stage-demo] #hub-hero .product-stage__choices { grid-column: 1; justify-self: start; }
  body[data-product-stage-demo] #hub-hero .product-stage__autoplay { grid-column: 2; }
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) .hub-hero-bottom { gap: 14px; font-size: 9px; }
}
@media (max-width: 360px) {
  /* The site's global h2 size is !important; constrain this override to narrow stage titles. */
  body[data-product-stage-demo] #hub-hero .product-stage__name { font-size: 30px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-product-stage-demo] #hub-hero:is([data-product-stage-pending], [data-product-stage-ready="true"]) { transition: none; }
}


/* PRODUCT_HEADER_VISIBILITY_PATCH_BEGIN */
/* Keep product-page links visible on desktop when a single header row cannot fit.
   The existing language measurement selects the compact class; mobile retains its menu. */
@media (min-width: 1024px) and (max-width: 1199px) {
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header .nav-row.nav-row {
    display: grid !important; grid-template-columns: auto minmax(0, 1fr) !important; gap: 4px 16px !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header .brand.brand {
    grid-column: 1 !important; grid-row: 1 !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header .header-actions {
    grid-column: 2 !important; grid-row: 1 !important; justify-self: end !important; margin-inline: 0 !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header .desktop-nav.desktop-nav {
    display: flex !important; grid-column: 1 / -1 !important; grid-row: 2 !important; flex-wrap: wrap !important; justify-content: center !important; gap: 4px 24px !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; padding-block: 4px !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header .menu-button.menu-button {
    display: none !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header .desktop-nav.desktop-nav > a {
    display: inline-flex !important; align-items: center !important; min-height: 36px !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header .desktop-nav.desktop-nav .nav-product-group {
    min-height: 36px !important;
  }
}
@media (min-width: 1024px) {
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header.yz-language-compact-nav .nav-row.nav-row {
    display: grid !important; grid-template-columns: auto minmax(0, 1fr) !important; gap: 4px 16px !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header.yz-language-compact-nav .brand.brand {
    grid-column: 1 !important; grid-row: 1 !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header.yz-language-compact-nav .header-actions {
    grid-column: 2 !important; grid-row: 1 !important; justify-self: end !important; margin-inline: 0 !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header.yz-language-compact-nav .desktop-nav.desktop-nav {
    display: flex !important; grid-column: 1 / -1 !important; grid-row: 2 !important; flex-wrap: wrap !important; justify-content: center !important; gap: 4px 24px !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; padding-block: 4px !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header.yz-language-compact-nav .menu-button.menu-button {
    display: none !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header.yz-language-compact-nav .desktop-nav.desktop-nav > a {
    display: inline-flex !important; align-items: center !important; min-height: 36px !important;
  }
  html body[data-product-stage-demo] #yuanze-site-header#yuanze-site-header.site-header.yz-language-compact-nav .desktop-nav.desktop-nav .nav-product-group {
    min-height: 36px !important;
  }
}
/* PRODUCT_HEADER_VISIBILITY_PATCH_END */
