/* Softmatic v1.0.4 — Native OS typography system.
   Browser chooses the platform's actual UI sans-serif (iOS San Francisco,
   Android system font, Windows Segoe UI where available). Not a copy of
   proprietary Vivo Classic. Colors, layout, content and SEO are unchanged.
   This stylesheet is intentionally enqueued LAST to control old theme rules. */
:root {
  --sm-system-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sm-font: var(--sm-system-font);
  --sm-heading-font: var(--sm-system-font);
  --sm-body-font: var(--sm-system-font);
  --sm-type-font: var(--sm-system-font);
  --sm-header-typeface: var(--sm-system-font);
  --sm-type-body: 16px;
  --sm-type-lead: 17px;
  --sm-type-h1: clamp(36px, 3.8vw, 52px);
  --sm-type-h2: clamp(28px, 2.65vw, 38px);
  --sm-type-h3: clamp(19px, 1.65vw, 22px);
}
/* Existing service templates have locally scoped typography tokens. */
.sm-webdev { --wd-heading: var(--sm-system-font); --wd-body: var(--sm-system-font); }
.sm-workpage { --wp-head: var(--sm-system-font); --wp-body: var(--sm-system-font); }
.sm-services-page { --sp-heading: var(--sm-system-font); --sp-body: var(--sm-system-font); }
.sm-domain { --sd-heading: var(--sm-system-font); --sd-body: var(--sm-system-font); }
.sm-software { --sw-font-head: var(--sm-system-font); --sw-font-body: var(--sm-system-font); }
.sm-seo { --seo-heading: var(--sm-system-font); --seo-body: var(--sm-system-font); }
.sm-insights { --si-heading: var(--sm-system-font); --si-body: var(--sm-system-font); }
.sm-contact-v115 { --ct-heading: var(--sm-system-font); --ct-body: var(--sm-system-font); }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--sm-system-font) !important; font-size:16px; line-height:1.6; }
/* Specific font-family override prevents residual Open Sans/Jost/DM Sans rules
   from changing page to page. Exclude icon-font glyph containers and SVGs. */
body :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,label,button,input,select,textarea,summary,small,time,dt,dd),
body :is(.btn,.nav-links>a,.nav-drop>a,.wp-block-heading,.wp-element-button),
body :is(.sm-solutions__title,.display-title,.section-title,.sm-process__step-title) {
  font-family: var(--sm-system-font) !important;
}
body :is(button,input,select,textarea) { font-size: 15px; letter-spacing:normal; }
body :is(h1,h2,h3,h4,h5,h6) {
  font-synthesis: none;
  letter-spacing: -.032em !important;
  line-height: 1.2 !important;
  text-wrap: balance;
}
body :is(h1, .page-hero h1, .page-hero--service h1, .sm-hero-v2 h1) {
  font-size: clamp(36px, 3.8vw, 52px) !important;
  font-weight: 700 !important;
  line-height: 1.13 !important;
  letter-spacing: -.038em !important;
}
/* Intro/section headings: deliberately smaller and calmer than previous 60–80px displays. */
body :is(h2,.display-title,.sm-solutions__title,.sm-process__intro h2,.sm-clients__heading h2,
  .section-head h2,.center-pitch h2,.footer-cta h2) {
  font-size: clamp(28px, 2.65vw, 38px) !important;
  font-weight: 650 !important;
  line-height: 1.19 !important;
  letter-spacing: -.032em !important;
}
body h3 { font-size: clamp(19px, 1.65vw, 22px) !important; font-weight: 650 !important; line-height:1.3 !important; }
body :is(h4,h5,h6) { font-weight: 600 !important; line-height: 1.35 !important; }
/* Card-specific hierarchy — some cards contain h2 instead of h3. */
body :is(.sm-solution-card,.service-tile,.project-card,.blog-card,.value-card,
  .sm-services-page__card,.sm-insights__card,.sm-process__item) :is(h2,h3) {
  font-size: clamp(18px, 1.55vw, 22px) !important;
  font-weight: 650 !important;
  line-height: 1.33 !important;
}
/* Readable long-form copy, without forcing font sizes on tiny decorative mockups. */
body :is(.article-content,.wp-block-post-content,.sm-insights__article-body) :is(p,li) {
  font-size: 16px !important;
  line-height: 1.75 !important;
  letter-spacing: normal;
}
body :is(.sm-hero-v2__copy,.sm-about-v2__content,.sm-services-page__hero-copy,
  .sm-contact-v115__hero-copy,.sm-webdev__hero-copy,.sm-process__intro) > p,
body :is(.sm-solutions__intro,.sm-process__lead) {
  font-size: clamp(15px, 1.07vw, 17px) !important;
  line-height: 1.67 !important;
  letter-spacing: 0;
}
body :is(.sm-solution-card,.blog-card,.value-card,.project-card,.sm-process__answer) p {
  font-size: 15px !important;
  line-height: 1.65 !important;
}
/* Buttons and navigation should feel like native app controls. */
body :is(.btn,.sm-contact-v115__button,.sm-services-page__button,.sm-hero-v2__actions .btn,
  .nav-shell>.btn--nav,.wp-element-button,button[type="submit"],input[type="submit"]) {
  font-family: var(--sm-system-font) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
}
body :is(.nav-links>a,.nav-drop>a) {
  font-size: 14px !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
}
body :is(input,select,textarea) { font-family:var(--sm-system-font) !important; font-size:16px; line-height:1.5; }
/* Avoid iOS automatic zoom when a form control receives focus. */
@media (max-width: 767px) {
  body :is(h1,.page-hero h1,.page-hero--service h1,.sm-hero-v2 h1) {
    font-size: clamp(32px, 8.6vw, 40px) !important;
    line-height: 1.17 !important;
    letter-spacing: -.035em !important;
  }
  body :is(h2,.display-title,.sm-solutions__title,.sm-process__intro h2,.sm-clients__heading h2,
    .section-head h2,.center-pitch h2,.footer-cta h2) {
    font-size: clamp(26px, 7.4vw, 30px) !important;
    line-height: 1.24 !important;
  }
  body :is(.sm-solution-card,.service-tile,.project-card,.blog-card,.value-card,
    .sm-services-page__card,.sm-insights__card,.sm-process__item) :is(h2,h3) {
    font-size: 19px !important;
  }
  body :is(.sm-hero-v2__copy,.sm-about-v2__content,.sm-services-page__hero-copy,
    .sm-contact-v115__hero-copy,.sm-webdev__hero-copy,.sm-process__intro) > p,
  body :is(.sm-solutions__intro,.sm-process__lead) {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  body :is(.nav-links>a,.nav-drop>a) { font-size: 15px !important; }
  body :is(input,select,textarea) { font-size:16px !important; }
}
@media (max-width: 359px) {
  body :is(h1,.page-hero h1,.page-hero--service h1,.sm-hero-v2 h1) {font-size: 31px !important;}
  body :is(h2,.display-title,.sm-solutions__title,.sm-process__intro h2) {font-size: 25px !important;}
}
