/* v6.4.3 shared footer — scoped to footer.site-foot only.
   Tight, modern layout (Linear / Vercel / Stripe). Nothing outside the footer. */

footer.site-foot,
footer.footer.site-foot {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  border-top: 1px solid #e8e6ef;
  color: #3a3a47;
  font-family: "DM Sans", Arial, sans-serif;
  box-sizing: border-box;
}
html.dark footer.site-foot,
html.dark footer.footer.site-foot {
  border-top-color: #2a2a3a;
  color: #e8e7f0;
}

footer.site-foot .site-foot-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 56px 50px 28px;
  box-sizing: border-box;
}
@media (min-width: 1500px) {
  footer.site-foot .site-foot-inner { max-width: 1320px; }
}
@media (max-width: 1100px) {
  footer.site-foot .site-foot-inner {
    padding-left: 36px;
    padding-right: 36px;
  }
}
@media (max-width: 600px) {
  footer.site-foot .site-foot-inner {
    padding: 40px 20px 24px;
  }
}

/* Brand / wordmark — reuse the header structure:
   "modrn." on one line (dot attached), TECHNOLOGIES under it at 12px,
   mark icon aligned beside the type. */
footer.site-foot .wordmark,
footer.site-foot a.wordmark {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #20212a;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  font-size: 35px !important;
  letter-spacing: -2.2px;
  line-height: 1;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  justify-content: flex-start !important;
}
footer.site-foot .wordmark .mark {
  display: inline-flex !important;
  flex: none;
  flex-basis: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
}
footer.site-foot .wordmark .mark svg {
  display: block;
  width: 36px;
  height: 36px;
}
footer.site-foot .wordmark .wordtext {
  display: inline-block !important;
  flex-direction: unset;
  flex-basis: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1;
  white-space: normal;
}
footer.site-foot .wordmark .brand-dot,
footer.site-foot .brand-dot {
  display: inline !important;
  flex-basis: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  font-size: inherit !important;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: #6558e8;
  font-style: normal;
}
footer.site-foot .wordmark small {
  display: block !important;
  flex-basis: auto !important;
  min-height: 0 !important;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-top: 4px;
  margin-left: 2px;
  color: #5c5668;
  line-height: 1;
}
html.dark footer.site-foot .wordmark { color: #fff; }
html.dark footer.site-foot .wordmark small { color: #c9c6d6; }
html.dark footer.site-foot .brand-dot,
html.dark footer.site-foot .wordmark .brand-dot { color: #8f85ff; }
html.dark footer.site-foot .wordmark .mark rect[fill="#e4e0fb"] { fill: #2a2b3a; }
html.dark footer.site-foot .wordmark .mark rect[fill="#6558e8"] { fill: #8f85ff; }

/* Phone: match header wordtext sizes; beat .footer>div span { flex-basis:100%; display:inline-flex }. */
@media (max-width: 600px) {
  footer.site-foot .wordmark,
  footer.site-foot a.wordmark {
    font-size: 31px !important;
    min-height: 48px !important;
  }
  footer.site-foot .wordmark .wordtext {
    display: inline-block !important;
    font-size: 26px !important;
    flex-basis: auto !important;
    min-height: 0 !important;
  }
  footer.site-foot .wordmark .brand-dot,
  footer.site-foot .brand-dot {
    display: inline !important;
    flex-basis: auto !important;
    min-height: 0 !important;
    font-size: inherit !important;
  }
  footer.site-foot .wordmark .mark {
    display: inline-flex !important;
    flex-basis: auto !important;
    min-height: 0 !important;
  }
  footer.site-foot .wordmark small {
    display: block !important;
    flex-basis: auto !important;
    min-height: 0 !important;
    letter-spacing: 0.08em;
    margin-top: 2px;
  }
}
@media (max-width: 360px) {
  footer.site-foot .wordmark .wordtext {
    font-size: 24px !important;
  }
}

footer.site-foot .sf-tag,
footer.site-foot p.sf-tag {
  margin: 12px 0 0;
  max-width: 16.5em;
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.5;
  color: #5e5a6b;
}
html.dark footer.site-foot p.sf-tag,
html.dark footer.site-foot .sf-tag { color: #b5b2c4; }

/* Grid */
footer.site-foot .sf-grid {
  display: grid;
  align-items: start;
}

footer.site-foot .sf-heading {
  margin: 0 0 12px;
  padding: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #5c5668;
  background: none;
  border: 0;
}
html.dark footer.site-foot .sf-heading { color: #c9c6d6; }

footer.site-foot .sf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* Links — beat site-fixes 44px / center / padding-inline */
footer.site-foot a:not(.wordmark),
footer.footer.site-foot a:not(.wordmark) {
  display: inline-flex !important;
  align-items: flex-start;
  justify-content: flex-start !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.6;
  color: #3a3a47 !important;
  text-decoration: none;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0;
  border: 0;
  background: none;
  max-width: 100%;
  overflow-wrap: break-word;
  transition: color 160ms ease;
}
html.dark footer.site-foot a:not(.wordmark),
html.dark footer.footer.site-foot a:not(.wordmark) {
  color: #e8e7f0 !important;
}
footer.site-foot a:not(.wordmark):hover,
footer.footer.site-foot a:not(.wordmark):hover {
  color: #6558e8 !important;
}
html.dark footer.site-foot a:not(.wordmark):hover,
html.dark footer.footer.site-foot a:not(.wordmark):hover {
  color: #a79dff !important;
}
footer.site-foot a:focus-visible {
  outline: 2px solid #6558e8;
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  footer.site-foot a { transition: none; }
}

/* Desktop 1440: 4-column grid, same max-width as the content container */
@media (min-width: 1024px) {
  footer.site-foot .sf-grid {
    grid-template-columns: minmax(200px, 1.15fr) 1fr 1fr minmax(180px, 0.95fr);
    column-gap: 40px;
    row-gap: 0;
  }
  footer.site-foot .sf-brand { grid-column: 1; }
  footer.site-foot .sf-product { grid-column: 2 / 4; }
  footer.site-foot .sf-company { grid-column: 4; }
  footer.site-foot .sf-product-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

/* Tablet 820: logo row on top, then the columns */
@media (min-width: 701px) and (max-width: 1023px) {
  footer.site-foot .sf-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 36px;
  }
  footer.site-foot .sf-brand { grid-column: 1 / -1; }
  footer.site-foot .sf-product-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

/* Phone: logo and slogan, then Product and Company stacked.
   Product links stay one column through 700px (Ivy should-fix). */
@media (max-width: 700px) {
  footer.site-foot .sf-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  footer.site-foot .sf-product-cols {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  footer.site-foot .sf-product-cols .sf-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
  }
}
/* At 320, keep every Product label on one 48px row (longest label is ~283px). */
@media (max-width: 320px) {
  footer.site-foot .site-foot-inner,
  footer.site-foot > .site-foot-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  footer.site-foot .sf-product a {
    white-space: nowrap;
  }
}

/* Bottom bar */
footer.site-foot .sf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #e8e6ef;
  font-size: 13px !important;
  color: #5e5a6b;
}
html.dark footer.site-foot .sf-bar {
  border-top-color: #2a2a3a;
  color: #b5b2c4;
}
footer.site-foot .sf-bar span {
  font-size: 13px !important;
  color: inherit;
  font-weight: 400;
}
footer.site-foot .sf-bar a,
footer.footer.site-foot .sf-bar a {
  font-size: 13px !important;
  color: #5e5a6b !important;
  white-space: nowrap;
  flex: 0 0 auto;
}
html.dark footer.site-foot .sf-bar a,
html.dark footer.footer.site-foot .sf-bar a {
  color: #b5b2c4 !important;
}
footer.site-foot .sf-bar a:hover,
footer.footer.site-foot .sf-bar a:hover {
  color: #6558e8 !important;
}
html.dark footer.site-foot .sf-bar a:hover,
html.dark footer.footer.site-foot .sf-bar a:hover {
  color: #a79dff !important;
}

/* Phone tap targets ≥48px (padding is fine). Bottom bar may stack. */
@media (max-width: 600px) {
  footer.site-foot .sf-bar {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 28px;
    gap: 0;
  }
  footer.site-foot .sf-list { gap: 0; }
  footer.site-foot a:not(.wordmark),
  footer.footer.site-foot a:not(.wordmark),
  footer.site-foot .sf-bar a {
    min-height: 48px !important;
    min-width: 48px !important;
    align-items: center;
    padding: 10px 0 !important;
  }
  footer.site-foot .wordmark,
  footer.site-foot a.wordmark {
    min-height: 48px !important;
  }
}


/* Reset homepage / site-fixes rules that target .footer > div (our inner wrap and bar). */
footer.site-foot > .site-foot-inner,
footer.footer.site-foot > .site-foot-inner {
  display: block !important;
  flex-direction: column;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: auto;
  max-width: 1260px;
  box-sizing: border-box;
}
@media (min-width: 1500px) {
  footer.site-foot > .site-foot-inner,
  footer.footer.site-foot > .site-foot-inner { max-width: 1320px; }
}

footer.site-foot .sf-bar,
footer.footer.site-foot .sf-bar,
footer.site-foot > .site-foot-inner > .sf-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  gap: 16px 24px !important;
}
footer.site-foot .sf-bar span,
footer.footer.site-foot .sf-bar span {
  flex: 0 1 auto !important;
  flex-basis: auto !important;
  min-height: 0;
  display: inline;
}
@media (max-width: 600px) {
  footer.site-foot .sf-bar,
  footer.footer.site-foot .sf-bar,
  footer.site-foot > .site-foot-inner > .sf-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }
}
