/* The local Manrope subsets also cover legacy pages without the marketing CSS. */
@font-face {
  font-family: Manrope;
  src: url('/onboard/assets/fonts/manrope-0.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Manrope;
  src: url('/onboard/assets/fonts/manrope-1.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url('/onboard/assets/fonts/manrope-2.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: Manrope;
  src: url('/onboard/assets/fonts/manrope-3.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Manrope;
  src: url('/onboard/assets/fonts/manrope-4.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  src: url('/onboard/assets/fonts/manrope-5.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: TitanThai;
  src: url('/onboard/assets/fonts/thai-0.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}

/* Use script-appropriate system fallbacks for glyphs outside the local faces. */
:root {
  --font-brand: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-tracking: -.012em;
  --bs-font-sans-serif: var(--font-brand);
  --bs-body-font-family: var(--font-brand);
}

html:lang(th) {
  --font-brand: Manrope, TitanThai, "Noto Sans Thai", Thonburi, "Leelawadee UI", system-ui, sans-serif;
}

html:lang(zh) {
  --font-brand: Manrope, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

html:lang(ja) {
  --font-brand: Manrope, "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

html:is(:lang(th), :lang(zh), :lang(ja)) {
  --heading-tracking: normal;
}

/* Match legacy body rules and localized form-control rules without restyling icons. */
html:root body,
html[lang] :is(button, input, select, textarea),
.tooltip,
.popover {
  font-family: var(--font-brand);
}

/* Keep page-specific heading sizes and use one treatment at each level. */
html[lang] body :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-brand);
  font-weight: 550;
  letter-spacing: normal;
  text-transform: none;
}

html[lang] body :is(h1, h2) {
  letter-spacing: var(--heading-tracking);
}

html[lang] body .eyebrow {
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
}

.home-opening h1 {
  line-height: 1.15;
}

.home-opening h1 > span {
  margin-top: .1em;
}

.home-intro .lead {
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.65;
}

.home-intro .reassurance {
  font-size: 12px;
  line-height: 1.55;
}

.demo-fallback .text-link {
  display: inline;
}

/* Marketing actions keep their rhythm even when labels wrap. */
main .actions {
  gap: 10px 20px;
}

:is(main, .site-header) .button,
a.btn.btn-primary[href^="/onboard/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: center;
  white-space: normal;
}

:is(main, .site-header) .button.primary,
a.btn.btn-primary[href^="/onboard/"] {
  background: #006e65;
  color: #fff;
}

:is(main, .site-header) .button.primary:hover:not(:disabled),
a.btn.btn-primary[href^="/onboard/"]:hover {
  background: #00564f;
  color: #fff;
}

:is(main, .site-header) .button.secondary {
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #657a76;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

:is(main, .site-header) .button.secondary:hover {
  color: #006e65;
  text-decoration-color: currentColor;
}

:is(main, .site-header) .button:focus-visible,
a.btn.btn-primary[href^="/onboard/"]:focus-visible {
  outline: 2px solid #006e65;
  outline-offset: 3px;
}

.site-header .header-actions .button,
.navbar a.btn.btn-primary[href^="/onboard/"] {
  padding-inline: 14px;
  font-size: 13px;
}

@media (max-width: 850px) {
  .home-opening h1 {
    font-size: clamp(29px, calc(19px + 3.6vw), 48px);
  }
}

@media screen and (max-width: 600px) {
  main#main :is(.detail-hero, .article-hero, .guides-hero, .about-hero) {
    padding-block: 24px 30px;
  }

  main#main :is(.detail-hero, .article-hero, .guides-hero, .about-hero, .pricing-copy) h1 {
    font-size: clamp(29px, calc(19px + 3.6vw), 42px);
    line-height: 1.15;
  }

  main#main :is(.home-opening, .detail-hero, .article-hero, .guides-hero, .about-hero, .pricing-copy) .eyebrow {
    margin-block-end: 12px;
  }

  main#main .breadcrumb {
    margin-block-end: 16px;
  }

  main#main :is(.detail-hero, .article-hero, .guides-hero, .about-hero, .pricing-copy) .lead {
    font-size: 16px;
    line-height: 1.65;
    margin-block: 16px;
  }

  .home-intro .lead {
    margin-block-end: 16px;
  }

  main#main :is(.home-intro, .detail-hero, .about-hero, .final-actions) .actions {
    gap: 8px 18px;
  }

  main#main .reassurance {
    font-size: 12px;
    line-height: 1.55;
  }

  main#main :is(.product-hero-grid, .product-article-hero-grid) {
    row-gap: 20px;
  }

  :is(.product-image, .product-teaser) > a {
    border-radius: 6px;
  }

  :is(.product-image, .product-teaser) figcaption.product-capture-meta {
    margin-block-start: 8px;
    font-size: 12px;
    font-weight: 450;
    line-height: 1.5;
  }

  .product-image figcaption.product-capture-meta > a {
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: .18em;
  }

  .demo-field :is(input, textarea) {
    font-size: 16px;
  }

  .price-controls,
  .billing-toggle {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .billing-toggle button,
  .price-controls select {
    min-width: 44px;
    min-height: 44px;
  }

  .price-controls select {
    font-size: 16px;
  }

  .header-actions select,
  .faq-list summary,
  .article-toc-mobile summary {
    min-height: 44px;
  }

  .past-opening:not(.menu-open) .agency-mobile-cta {
    display: none;
  }

  .faq-list details {
    padding-block: 8px;
  }

  html[data-page="privacy-policy"] .hero-section {
    padding-block: 24px 36px;
    background: #fff;
  }

  html[data-page="privacy-policy"] .hero-section > .container {
    padding-inline: clamp(18px, 5.65vw, 22px);
  }
}

@media (max-width: 480px) {
  :is(main, .site-header) .button.primary,
  a.btn.btn-primary[href^="/onboard/"] {
    padding-inline: 14px;
  }

  .site-header .header-actions {
    flex-shrink: 1;
    min-width: 0;
  }

  .site-header .header-actions select {
    flex-shrink: 0;
  }

  .site-header .header-actions .button,
  .navbar a.btn.btn-primary[href^="/onboard/"] {
    padding-inline: 12px;
  }

  .site-header .header-actions .button {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .site-header .header-actions .button {
    padding-inline: 9px;
    font-size: 12px;
  }
}
