/* STAYGO | Public website typography, PL + EN | 2026-11-23
   The only new typography layer. Loaded LAST on marketing/news pages.
   No changes to login, customer panel, authentication or app layouts. */

/* Comfortable leading and legible tracking. Older CSS rules were conflicting. */
body main :is(h1,h2,h3) {
  text-wrap: balance;
  line-height: 1.14 !important;
  letter-spacing: -0.022em !important;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none !important;
  font-kerning: normal;
}
body main h3 { line-height: 1.2 !important; letter-spacing: -0.018em !important; }
body main h2 > span {
  display: block;
  margin-top: 0 !important;
  line-height: 1.2;
}
body .section-label { line-height: 1.4; margin-bottom: 16px; }

/* Hero: consistent gap between two deliberate lines, no overlapping glyphs. */
body .stg-hero .stg-hero-copy h1 {
  font-size: clamp(48px, 5.7vw, 82px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.022em !important;
  max-width: 1080px !important;
  margin: 0 auto 29px !important;
  text-wrap: balance;
}
body .stg-hero .stg-hero-copy h1 em {
  display: block;
  font-style: normal;
  line-height: 1.15 !important;
  letter-spacing: inherit !important;
  margin-top: 0 !important;
  white-space: normal;
}

/* Larger editorial headings scale to available column width. */
body .stg-benefits-heading h2,
body .workflow-heading h2,
body .stg-news-heading h2,
body .deep-heading h2,
body .pricing-heading h2,
body .audience-heading h2,
body .product-intro h2,
body .demo-heading h2,
body .contact-copy h2 {
  line-height: 1.14 !important;
  letter-spacing: -.024em !important;
}
body .workflow-heading { max-width: 1060px; }
body .workflow-heading h2 { font-size: clamp(34px, 3.55vw, 54px); }
body .stg-news-heading h2 { max-width: 780px; font-size: clamp(35px, 3.8vw, 56px); }
body .stg-benefits-heading h2 { font-size: clamp(35px, 3.65vw, 56px); }
body .stg-benefits-heading h2 > span { margin-top: 0 !important; }
body .deep-grid .deep-copy h2,
body .channels-grid .deep-copy h2,
body .availability-section .deep-copy h2,
body .compset-copy h2,
body .faq-left h2,
body .contact-copy h2 {
  font-size: clamp(34px, 3.05vw, 46px) !important;
  line-height: 1.14 !important;
  letter-spacing: -.021em !important;
}
body .stg-interlude h2 { line-height: 1.14 !important; letter-spacing: -.023em !important; }

/* Pricing comparison: explicit absence labels instead of a line dash. */
body .stg-compare-table .stg-no span {
  color: #8190a7;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .005em;
  white-space: nowrap;
}
body .stg-compare-table .stg-yes span { line-height: 1; }

/* Slightly tighter gaps BETWEEN sections, not between glyphs. */
body main .section { padding-top: 89px; padding-bottom: 89px; }
body .pricing-section { padding-bottom: 66px !important; }
body .stg-compare-section { margin-top: 52px; }
body .stg-news-preview { padding: 85px 0 !important; }
body .stg-news-heading { margin-bottom: 26px; }
body .stg-article-main { line-height: 1.78; }
body .stg-article-main h2 { line-height: 1.25 !important; letter-spacing: -.022em !important; margin-top: 57px; margin-bottom: 20px; }
body .stg-article-main h3 { line-height: 1.28 !important; }
body .stg-news-hero h1,
body .stg-article-hero h1 { line-height: 1.14 !important; letter-spacing: -.025em !important; }
body .stg-news-feature-copy h3,
body .stg-founder-story-content h3 { line-height: 1.26 !important; letter-spacing: -.021em !important; }

@media(max-width:980px) {
  body .stg-hero .stg-hero-copy h1 { font-size: clamp(43px, 6.8vw, 67px) !important; }
  body .workflow-heading h2 { font-size: clamp(34px, 4.55vw, 48px); }
  body main .section { padding-block: 72px; }
  body .stg-news-preview { padding: 72px 0 !important; }
}
@media(max-width:640px) {
  body main :is(h1,h2,h3) { letter-spacing: -.015em !important; line-height: 1.14 !important; }
  body main h2 > span { margin-top: 0 !important; }
  body .stg-hero .stg-hero-copy h1 {
    font-size: clamp(35px, 9.2vw, 50px) !important;
    line-height: 1.15 !important;
    letter-spacing: -.018em !important;
    margin-bottom: 23px !important;
  }
  body .stg-hero .stg-hero-copy h1 em { margin-top: 0 !important; line-height: 1.15 !important; }
  body .stg-benefits-heading h2,
  body .workflow-heading h2,
  body .stg-news-heading h2 { font-size: clamp(30px, 8vw, 40px) !important; }
  body .deep-grid .deep-copy h2,
  body .channels-grid .deep-copy h2,
  body .availability-section .deep-copy h2,
  body .compset-copy h2,
  body .faq-left h2,
  body .contact-copy h2 { font-size: clamp(29px, 7.8vw, 36px) !important; }
  body main .section { padding-top: 60px; padding-bottom: 60px; }
  body .pricing-section { padding-bottom: 53px !important; }
  body .stg-compare-section { margin-top: 37px; }
  body .stg-news-preview { padding: 63px 0 !important; }
  body .stg-article-main h2 { margin-top: 40px; }
}


/* Global heading rhythm v3. Zero extra vertical space between color lines.
   Important: earlier stylesheets add positive margin to h2 > span. */
body main :is(h1,h2) {
  line-height: 1.14 !important;
  text-wrap: balance;
  font-kerning: normal;
}
body main h3 { line-height: 1.2 !important; text-wrap: balance; }
body main h2 > span,
body main .stg-benefits-heading h2 > span,
body main .stg-interlude h2 > span,
body main .stg-news-heading h2 > span {
  display: block;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  padding-block: 0 !important;
  line-height: inherit !important;
}
body main .stg-hero .stg-hero-copy h1 { line-height: 1.15 !important; }
body main .stg-hero .stg-hero-copy h1 em {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}
body main .stg-news-hero h1,
body main .stg-article-hero h1 { line-height: 1.15 !important; }

/* Plan selection assistance: a standalone panel, aligned with the comparison table. */
body .stg-compare-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px 28px;
  width: 100%;
  margin: 28px 0 0;
  padding: 23px 28px;
  border: 1px solid #d9e5fa;
  border-radius: 17px;
  background: #f2f6fd;
}
body .stg-compare-cta-copy { flex: 1 1 290px; min-width: 0; }
body .stg-compare-cta-copy strong {
  display: block;
  margin: 0 0 5px;
  color: #142e6c;
  font-size: clamp(16px,1.65vw,19px);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 770;
}
body .stg-compare-cta-copy p {
  margin: 0;
  color: #627693;
  font-size: 13px;
  line-height: 1.5;
}
body .stg-compare-cta .stg-compare-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #205de4;
  border-radius: 10px;
  background: #205de4;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease;
}
body .stg-compare-cta .stg-compare-link:hover {
  color: #fff;
  background: #153d99;
  border-color: #153d99;
}
body .stg-compare-cta .stg-compare-link:focus-visible {
  outline: 3px solid #8ccaff;
  outline-offset: 3px;
}
@media (max-width:640px) {
  body main :is(h1,h2) { line-height: 1.15 !important; }
  body main .stg-hero .stg-hero-copy h1 { line-height: 1.17 !important; }
  body .stg-compare-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 14px;
  }
  body .stg-compare-cta-copy { flex: 0 1 auto; }
  body .stg-compare-cta .stg-compare-link { width: 100%; }
}
@media (prefers-reduced-motion:reduce) {
  body .stg-compare-cta .stg-compare-link { transition: none; }
}
