/* Match the queue landing page's type scale and desktop reading width. */
:root {
  --lp-hero-size: 60px;
  --lp-title-size: 44px;
  --lp-demo-size: 40px;
  --lp-subtitle-size: 22px;
  --lp-body-size: 15px;
  --lp-detail-size: 15px;
  --lp-content-width: 960px;
}
@media (max-width: 1023px) {
  :root {
    --lp-hero-size: 44px;
    --lp-title-size: 34px;
    --lp-demo-size: 30px;
    --lp-subtitle-size: 21px;
  }
}
@media (max-width: 760px) {
  :root {
    --lp-hero-size: 34px;
    --lp-title-size: 28px;
    --lp-demo-size: 26px;
    --lp-subtitle-size: 20px;
    --lp-detail-size: 14px;
  }
}

#top .intro h1, .general-body .intro h1 { font-size: var(--lp-hero-size) !important; }
#top .intro .lead, .general-body .intro p.lead { font-size: var(--lp-body-size) !important; }

:is(#top, #main, .general-body) :is(#services .section-head h2, #industries .section-head h2,
  #news h2, #salon-scenes-title, #concept .concept-story h2, #experience .moment-copy > h3,
  #why-line-title, #support-title, #closing-title, #faq-title) {
  font-size: var(--lp-title-size) !important;
}
:is(#top, .general-body) :is(#demo-showcase-title, #plans .section-head h2) {
  font-size: var(--lp-demo-size) !important;
}
:is(#top, #main) :is(.service-grid h3, .industry-grid h3, .salon-review-scenes-grid h3) {
  font-size: var(--lp-subtitle-size) !important;
}
:is(#top, #main, .general-body) :is(.section-head > p, .service-grid article > p,
  .industry p, .news-list p, .concept-body > p, .salon-review-scenes-grid p, .moment-copy > p,
  .booking-compatibility-inner p, .demo-showcase-copy > p) {
  font-size: var(--lp-body-size) !important;
}
:is(#top, .general-body) :is(.launch-faq-item > p, .qs-support-topics li > p, .qs-aftercare-detail p) {
  font-size: var(--lp-detail-size) !important;
}

@media (min-width: 1024px) {
  :is(#top, #main) :is(.hero-showcase, .service-hero-visual) { max-width: 1240px !important; }
  :is(#top, #main, .general-body) :is(.hero-offer, .service-grid, .industry-grid, #news,
    #concept.wrap, #experience .moment.wrap, #beauty-features, #line-comparison, #why-line,
    .booking-compatibility-inner, .closing-cta-inner, .demo-showcase-layout) {
    max-width: var(--lp-content-width) !important;
    margin-inline: auto;
  }
  #faq .launch-faq-list { max-width: 920px; }
  #plans .plan-pricing-figure { max-width: 1040px; }
}

/* Allow longer industry-specific copy to wrap at the shared type sizes. */
#top #services > .section-head h2,
#main #experience .moment-copy > h3 span {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  #top .intro h1, .general-body .intro h1 {
    white-space: normal !important;
    text-wrap: balance;
  }
  #top #industries .industry > div { min-width: 0; }
}
