/* Shared chrome for public pages other than the homepage.
   Masthead, type, footer, and page surface follow the November 23 site.
   Homepage rules stay in css/home/. */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #e8e8e8;
  color: #2a2a2a;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:is(.page-header, .legal-header, .contact-header, .article-body, .legal-body, .contact-body, .not-found) :is(h1, h2, h3, h4, h5, h6) {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  width: 100%;
  height: 88px;
  margin: 0;
  background: #0e0e0ee8;
  border-bottom: 1px solid #cacaca18;
  backdrop-filter: blur(20px);
  transition: background 0.2s, box-shadow 0.2s;
}
.masthead.is-scrolled {
  background: #0f0f0ff5;
  box-shadow: 0 8px 35px #0004;
}
.masthead-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1760px;
  height: 100%;
  margin: auto;
  gap: 25px;
}
.masthead .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #f2f2f2;
  text-decoration: none;
}
.masthead .brand img { width: 42px; height: 51px; object-fit: contain; }
.masthead .brand b {
  font: 600 29px/1.1 Manrope, sans-serif;
  letter-spacing: -1px;
  color: #f2f2f2;
}
.masthead .brand small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: #a5a5a5;
}
.masthead #site-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}
.masthead #site-nav a {
  position: relative;
  color: #c6c6c6;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.masthead #site-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 1px;
  background: #b7f58c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.masthead #site-nav a:hover { color: #f0f4e8; }
.masthead #site-nav a:hover:after,
.masthead #site-nav a[aria-current="page"]:after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 25px; flex-shrink: 0; }
.masthead .login { font-size: 14px; color: #c9d0c2; text-decoration: none; }
.masthead .nav-sales {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 12px 19px;
  border: 1px solid #bdbdbd40;
  border-radius: 7px;
  background: linear-gradient(120deg, #dedede0e, #d5efa905);
  color: #efefef;
  font-size: 14px;
  text-decoration: none;
}
.masthead .nav-sales:hover { border-color: #b4d891; background: #b4d8910b; color: #efefef; }
.masthead .nav-sales span { font-size: 17px; color: #b2d795; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid #7f946047;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
.menu-toggle span { width: 17px; height: 1px; background: #cbd8be; }
.masthead a:focus-visible,
.menu-toggle:focus-visible { outline: 2px solid #d3f8a7; outline-offset: 4px; }

.page-header,
.legal-header,
.contact-header,
.not-found {
  background: linear-gradient(125deg, #d2d2d2, #efefef 65%, #cecece);
  color: #1a1a1a;
  padding: 3.25rem 0 3rem;
}
.page-header::before { display: none; }
.page-header h1,
.legal-header h1,
.contact-header h1,
.not-found h1 {
  color: #171717;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.page-header .lede,
.page-header p,
.legal-header p,
.contact-header p,
.not-found p { color: #3a3a3a; }
.page-header .core-brand-name { color: #171717; }
.page-header .core-brand-verb { color: #3f5c32; }
.page-header .core-brand-icon {
  background: #181818;
  color: #b7f58c;
  border: 1px solid #181818;
  box-shadow: none;
}
.page-header .hero-shot-caption,
.page-header .hero-shot-caption i { color: #4a4a4a; }
.page-header .hero-shot img {
  border: 1px solid #bdbdbd;
  box-shadow: 0 18px 40px #00000022;
}
.page-header .hero-ops {
  background: #181818;
  border: 1px solid #2c2c2c;
  box-shadow: 0 24px 50px #00000033;
}

a.btn-cta-primary,
.btn-cta-primary,
.btn-submit {
  background: linear-gradient(135deg, #e5ffd2, #b6ed8b) !important;
  color: #17301a !important;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: inset 0 1px #fff, 0 3px 0 #436332 !important;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  text-decoration: none !important;
}
a.btn-cta-primary:hover,
.btn-cta-primary:hover,
.btn-submit:hover {
  color: #17301a !important;
  filter: brightness(1.03);
}
a.btn-cta-secondary,
.btn-cta-secondary {
  background: transparent !important;
  color: #1a1a1a !important;
  border: 1px solid #6d6d6d !important;
  border-radius: 8px;
  text-decoration: none !important;
}
a.btn-cta-secondary:hover,
.btn-cta-secondary:hover {
  color: #1a1a1a !important;
  background: #ffffff55 !important;
  border-color: #1a1a1a !important;
}
.bottom-cta {
  background: #141414 !important;
}
.bottom-cta h2 { color: #f2f2f2 !important; }
.bottom-cta p { color: #b4b4b4 !important; }

.article-body,
.legal-body,
.contact-body {
  background: #e8e8e8;
  color: #2a2a2a;
}
.article-body h2,
.article-body h3,
.legal-body h2,
.legal-body h3,
.contact-body h6 {
  color: #171717;
  scroll-margin-top: 104px;
}
.article-body p,
.article-body li,
.legal-body p,
.legal-body li,
.legal-body td,
.contact-body p { color: #3f3f3f; }
.article-body a:not([class*="btn-cta"]),
.legal-body a,
.contact-body a {
  color: #245c28;
}
.legal-body th { color: #171717; border-bottom-color: #cfcfcf; }
.legal-body td { border-bottom-color: #e0e0e0; }
.legal-body .legal-callout {
  border-left-color: #7dae62;
  background: #f3f3f3;
}
.legal-body .legal-callout p { color: #2a2a2a; }
.callout,
.feature-tile,
.steps li,
.related,
.toc,
.form-card,
.info-card {
  background: #f4f4f4;
  border-color: #d0d0d0;
  box-shadow: none;
}
.feature-tile .ft-icon,
.steps li::before,
.ic-icon {
  background: #181818 !important;
  color: #b7f58c !important;
}
.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: #7dae62;
  box-shadow: 0 0 0 3px #b6ed8b55;
}
.not-found { min-height: 52vh; }
.not-found .section-label {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a5a5a;
}
.not-found h1 { margin: 0 0 16px; font-size: clamp(40px, 5vw, 64px); }
.not-found p { max-width: 36rem; font-size: 17px; line-height: 1.7; }
.not-found .btn-cta-primary { display: inline-block; margin-top: 12px; padding: 14px 22px; }

#footer {
  background: #0d0d0d;
  color: #a6bc98;
  padding: 85px 0 60px;
}
#footer .container { width: 88%; max-width: 1480px; margin: 0 auto; }
#footer .row { display: flex; flex-wrap: wrap; margin: 0 -22px; row-gap: 30px; }
#footer .row > div { padding: 0 22px; min-width: 0; }
#footer .col-lg-4 { width: 34%; }
#footer .col-lg-2 { width: 16.5%; }
#footer a { text-decoration: none; }
.footer-logo { display: inline-flex; align-items: center; gap: 11px; }
.footer-logo img { width: 50px; height: 61px; object-fit: contain; }
.footer-logo .brand-wordmark {
  font: 600 42px Manrope, sans-serif;
  color: #dce8d3;
  letter-spacing: -1px;
}
.footer-tagline { margin: 15px 0 0; font-size: 12px; letter-spacing: 0.05em; color: #b0c39e; }
.footer-about { max-width: 350px; margin: 12px 0 0; font-size: 14px; line-height: 1.9; color: #829b75; }
.footer-socials { display: flex; gap: 17px; margin-top: 21px; }
.footer-socials a { font-size: 14px; color: #a8bd98; }
.footer-col-title {
  margin: 4px 0 22px;
  font: 500 13px "IBM Plex Sans", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bfceb0;
}
.footer-links { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-size: 14px; color: #97ad88; }
.footer-links a:hover { color: #e0edd4; }
.footer-divider { height: 1px; margin: 44px 0 22px; background: #74905b33; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #849b76;
  line-height: 1.8;
}
.footer-bottom p { margin: 0; }

@media (max-width: 960px) {
  .masthead { height: 80px; }
  .menu-toggle { display: flex; order: 3; }
  .nav-actions { margin-left: auto; }
  .masthead #site-nav {
    display: none;
    position: absolute;
    top: 79px;
    left: 0;
    right: 0;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 24px 6%;
    background: #131313f7;
    border-bottom: 1px solid #6b885344;
    box-shadow: 0 20px 35px #0005;
  }
  .masthead #site-nav.open { display: flex; }
  .masthead #site-nav a { font-size: 14px; padding: 7px 0; }
  #footer .col-lg-4,
  #footer .col-lg-2 { width: 50%; }
}
@media (max-width: 575px) {
  .masthead { height: 74px; }
  .masthead-inner { width: 88%; gap: 10px; }
  .masthead .brand b { font-size: 23px; }
  .masthead .brand img { width: 31px; height: 39px; }
  .masthead .brand small { font-size: 8px; }
  .masthead .nav-sales { font-size: 11px; padding: 10px 12px; gap: 8px; }
  .masthead .login { display: none; }
  .masthead #site-nav { top: 73px; }
  #footer { padding: 64px 0 40px; }
  #footer .col-lg-4 { width: 100%; }
  #footer .col-lg-2 { width: 50%; }
  .footer-logo .brand-wordmark { font-size: 35px; }
  .footer-logo img { width: 40px; height: 49px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 10px; }
}
@media (max-width: 360px) {
  .masthead-inner { width: 92%; gap: 8px; }
  .masthead .brand b { font-size: 21px; }
  .masthead .nav-sales { font-size: 10px; padding: 9px 8px; gap: 4px; }
}
