/* Chrome + homepage. Tokens live in tokens.css. Load after Bootstrap. */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

html {
  max-width: 100%;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.page-main {
  padding-top: 0;
  padding-bottom: 20px;
  overflow-x: clip;
}

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */

.site-header,
.site-header .navbar {
  display: contents;
}

.site-header .navbar > .container {
  display: block;
  position: sticky;
  top: 8px;
  z-index: 1040;
  margin-top: 8px;
  margin-bottom: 8px;
}

.header-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  min-height: var(--header-height);
  padding: 4px 18px;
  background: var(--header-pill-bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-header);
}

@media (min-width: 992px) {
  .header-pill {
    flex-wrap: nowrap;
  }

  .header-pill .navbar-nav {
    flex-wrap: nowrap;
    gap: 4px;
    align-self: stretch;
    align-items: stretch !important;
  }

  .header-pill .navbar-collapse {
    display: flex !important;
    align-items: stretch;
    align-self: stretch;
    flex-grow: 1;
  }

  .header-pill .navbar-nav .nav-item {
    display: flex;
    align-items: center;
  }

  .header-pill .header-ctas {
    align-self: center;
  }
}

.navbar-brand {
  margin-right: 12px;
  min-width: 0;
}

.navbar-brand img {
  width: var(--logo-width);
  max-width: min(220px, 42vw);
  height: auto;
  display: block;
}

.navbar-nav .nav-link {
  color: var(--color-ink);
  font-weight: 400;
  font-size: 16px;
  padding: 0.45rem 0.75rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-accent);
}

.nav-link.has-caret::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}

.btn-cta,
.btn-primary-site {
  background: var(--cta-bg);
  color: var(--color-white) !important;
  border: 0;
  border-radius: var(--radius-btn);
  padding: var(--cta-pad);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-cta:hover,
.btn-primary-site:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta-secondary:hover,
.btn-cta-secondary:focus-visible {
  color: var(--color-primary);
}

.btn-cta-secondary-icon {
  flex-shrink: 0;
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: var(--cta-pad);
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent) !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.btn-cta-outline:hover,
.btn-cta-outline:focus-visible {
  background: var(--color-ice);
  color: var(--color-primary) !important;
}

.sidebar-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  padding-bottom: 8px;
}

.header-pill .navbar-collapse {
  flex-grow: 1;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--color-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

@media (max-width: 991.98px) {
  .menu-toggle {
    display: inline-flex;
  }
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.menu-toggle:focus {
  outline: 0;
  box-shadow: none;
}

.navbar-toggler {
  border: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.site-sidebar {
  width: min(360px, 88vw);
  border: 0;
  background: var(--color-white);
}

.site-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--color-gray);
}

.site-sidebar-head .navbar-brand {
  margin: 0;
}

.site-sidebar-head .navbar-brand img {
  width: 200px;
  max-width: 62vw;
}

.sidebar-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--color-surface);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.sidebar-close span {
  position: absolute;
  left: 11px;
  top: 19px;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.sidebar-close span:first-child {
  transform: rotate(45deg);
}

.sidebar-close span:last-child {
  transform: rotate(-45deg);
}

.site-sidebar-body {
  display: flex;
  flex-direction: column;
  padding: 12px 20px 48px;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 8px 0 20px;
}

.sidebar-nav > li > a,
.sidebar-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: var(--color-ink);
  border-bottom: 1px solid #eef1f4;
  list-style: none;
  cursor: pointer;
}

.sidebar-nav > li > a.active,
.sidebar-nav > li > a:hover,
.sidebar-acc summary:hover {
  color: var(--color-accent);
}

.sidebar-acc summary::-webkit-details-marker {
  display: none;
}

.sidebar-acc summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.sidebar-acc[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.sidebar-sub {
  padding: 4px 0 12px 8px;
}

.sidebar-sub p {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.sidebar-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--color-ink);
}

.sidebar-sub a:hover,
.sidebar-sub a:focus-visible {
  color: var(--color-accent);
}

.sidebar-cta,
.sidebar-cta-secondary {
  width: 100%;
  margin-top: 0;
}

.mega-item,
.resources-item {
  position: static;
}

.mega-menu {
  display: none;
}

.mega-trigger {
  display: flex;
  align-items: center;
}

.mega-caret {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  position: relative;
}

.mega-caret span,
.mega-caret span:before,
.mega-caret span:after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  width: 10px;
  height: 2px;
  left: 11px;
  top: 15px;
}

.mega-caret span:before {
  transform: rotate(90deg);
}

@media (min-width: 992px) {
  .mega-menu {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 28px);
    z-index: 1055;
    padding: 36px 0 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .mega-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 36px;
  }

  .mega-item:hover .mega-menu,
  .mega-item:focus-within .mega-menu,
  .mega-item.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mega-panel {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding: 32px 12px 28px;
    background: #ffffff;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float);
  }

  .mega-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--color-accent);
  }

  .mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .mega-col {
    min-width: 0;
    padding: 4px 28px;
  }

  .mega-col + .mega-col {
    border-left: 1px solid var(--color-gray);
  }
}

.mega-heading,
.mega-heading a {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-gray);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mega-heading a:hover,
.mega-heading a:focus-visible {
  color: var(--color-accent);
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-list a,
.mega-mobile a {
  display: block;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.mega-list a:hover,
.mega-list a:focus-visible,
.mega-mobile a:hover,
.mega-mobile a:focus-visible {
  color: var(--color-accent);
  background: var(--color-ice);
}

.mega-mobile {
  padding: 0 0.9rem 1rem;
}

.mega-mobile a {
  padding: 8px 0;
}

.simple-dropdown {
  display: none;
}

@media (min-width: 992px) {
  .simple-dropdown {
    display: block;
    position: absolute;
    top: calc(100% - 4px);
    left: auto;
    z-index: 1055;
    min-width: 220px;
    margin: 0;
    padding: 16px 8px 10px;
    list-style: none;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-image);
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .simple-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 24px;
  }

  .resources-item {
    position: relative;
  }

  .resources-item:hover .simple-dropdown,
  .resources-item:focus-within .simple-dropdown,
  .resources-item.is-open .simple-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .simple-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--color-ink);
    font-size: 16px;
    line-height: 24px;
  }

  .simple-dropdown a:hover,
  .simple-dropdown a:focus-visible {
    color: var(--color-accent);
    background: var(--color-ice);
  }
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.site-footer {
  background: transparent;
  color: var(--color-white);
  padding: 0;
  margin-top: 20px;
  overflow-x: clip;
  max-width: 100%;
}

.footer-shell {
  padding-top: 10px;
  padding-bottom: 30px;
}

.footer-card {
  background: var(--footer-bg);
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--footer-pad);
}

.footer-logo img {
  width: 280px;
  max-width: 100%;
}

.footer-links,
.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-legal a,
.footer-bottom p,
.footer-social {
  color: var(--color-white);
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 15px;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-social:hover {
  color: var(--color-mint-text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: var(--cta-pad);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  background: var(--color-white);
  color: var(--color-primary) !important;
  border: 1px solid var(--color-white);
}

.btn-solid:hover {
  background: var(--color-ice);
  color: var(--color-primary) !important;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: var(--cta-pad);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  background: transparent;
  color: var(--color-white) !important;
  border: 1px solid var(--color-white);
}

.btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-primary) !important;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 18px 40px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border: 0;
}

.btn-dark:hover {
  background: var(--color-accent);
  color: var(--color-white) !important;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: var(--cta-pad);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border: 0;
}

.btn-accent:hover {
  background: #005fa3;
  color: var(--color-white) !important;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: var(--cta-pad);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  background: transparent;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
}

.btn-line:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 18px 62px;
  border-radius: 115px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  background: var(--color-ink);
  color: var(--color-white) !important;
  border: 1px solid var(--color-ink);
}

.btn-ink:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white) !important;
}

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  margin-bottom: 8px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: center;
  padding: 25px;
  background-color: #1565a8;
  background-image: url("../images/hero-bg-image.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 70px 24px 40px;
  --text-display-size: 48px;
}

.hero-inner h1 {
  margin: 0;
  color: var(--color-white);
  font-size: var(--text-display-size);
  font-weight: var(--text-display-weight);
  line-height: var(--text-display-line);
  letter-spacing: -0.4px;
}

.hero-inner p {
  margin: 18px auto 36px;
  max-width: 820px;
  color: var(--color-white);
  font-size: var(--text-lead-size);
  font-weight: 400;
  line-height: 30px;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
}

.demo-modal-host.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.demo-modal-host .modal-dialog,
.demo-modal-host .modal-dialog.modal-lg {
  max-width: min(860px, calc(100vw - 2.5rem));
  width: calc(100% - 2.5rem);
  margin: 1.25rem auto;
  transform: none;
}

.demo-modal {
  position: relative;
  margin: 0;
  background: #0b1c24;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  transform: none;
}

.demo-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
}

.demo-modal-close:hover,
.demo-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.demo-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1c24;
}

.demo-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-modal-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 40px;
  text-align: center;
  color: var(--color-white);
  background:
    linear-gradient(180deg, rgba(11, 28, 36, 0.72), rgba(11, 28, 36, 0.88)),
    url("https://midofficedata.com/wp-content/uploads/2026/06/platform-bg-new.png") center / cover no-repeat;
}

.demo-modal-fallback[hidden],
.demo-modal-frame iframe[hidden] {
  display: none !important;
}

.demo-modal-kicker {
  margin: 0;
  color: var(--color-mint-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-modal-fallback h2 {
  margin: 0;
  max-width: 560px;
  color: var(--color-white);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.demo-modal-fallback p {
  margin: 0 0 8px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.5;
}

.demo-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ------------------------------------------------------------------ */
/* Decisions                                                          */
/* ------------------------------------------------------------------ */

.decisions {
  padding: 64px 0 32px;
}

.decisions-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 40px;
}

.decisions-head h2 {
  margin: 0;
  max-width: 920px;
  font-size: var(--text-h5-size);
  font-weight: var(--text-h5-weight);
  line-height: var(--text-h5-line);
  color: var(--color-ink);
}

.decisions-head p {
  margin: 0;
  max-width: 760px;
  font-size: var(--text-lead-size);
  font-weight: 400;
  line-height: 30px;
  color: var(--color-ink);
}

.decisions .outcomes-tabs {
  margin: 0;
}

.decisions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.decisions-card {
  width: calc(33.333% - 12px);
  padding: 32px;
  border: 1px dashed #b4b4b4;
  border-radius: 28px;
  background: var(--color-white);
}

.decisions-card.is-wide {
  width: calc(50% - 9px);
}

.decisions-grid.is-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decisions-grid.is-pillars .decisions-card {
  width: auto;
}

.position-callout {
  margin-top: 28px;
  padding: 32px 36px;
  border-radius: var(--radius-card);
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.position-callout p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.position-callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
}

.kpi-source {
  margin: 0 auto 28px;
  max-width: 820px;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-muted);
}

.hub-kicker {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.decisions-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
}

.decisions-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
}

.decisions-card p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: #5e5e5e;
}

/* ------------------------------------------------------------------ */
/* Outcomes + line                                                    */
/* ------------------------------------------------------------------ */

.outcomes {
  position: relative;
  margin: 48px 0 64px;
}

.outcomes-line {
  display: none !important;
}

.outcomes-line svg {
  display: none !important;
}

.outcomes-title {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 16px 36px;
}

.outcomes-title h2 {
  display: inline-block;
  margin: 0;
  padding: 0 18px;
  background: var(--color-white);
  font-size: 46px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
}

.outcomes-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.outcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 22px 20px 24px;
  border-radius: var(--radius-card);
  border: 0;
  background: var(--color-card);
  color: var(--color-ink);
  text-align: center;
}

.outcome-card:hover {
  color: var(--color-ink);
}

.outcome-card:nth-child(1) { background: var(--color-card); }
.outcome-card:nth-child(2) { background: var(--color-surface-alt); }
.outcome-card:nth-child(3) { background: #e6f7fa; }
.outcome-card:nth-child(4) { background: var(--color-ice); }
.outcome-card:nth-child(5) { background: var(--color-green-soft); }
.outcome-card:nth-child(6) { background: var(--color-lilac); }
.outcome-card:nth-child(7) { background: #dee2e4; }
.outcome-card:nth-child(8) { background: #d9eaf6; }

.outcome-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  border-radius: 50%;
  box-shadow: 0 11px 30px rgba(0, 0, 0, 0.15);
}

.outcome-card:nth-child(1) .outcome-icon { background: var(--color-primary); }
.outcome-card:nth-child(2) .outcome-icon { background: var(--color-accent); }
.outcome-card:nth-child(3) .outcome-icon { background: var(--color-cyan); }
.outcome-card:nth-child(4) .outcome-icon { background: var(--color-sky); }
.outcome-card:nth-child(5) .outcome-icon { background: var(--color-green); }
.outcome-card:nth-child(6) .outcome-icon { background: var(--color-primary); }
.outcome-card:nth-child(7) .outcome-icon { background: var(--color-accent); }
.outcome-card:nth-child(8) .outcome-icon { background: var(--color-cyan); }

.outcome-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.outcome-card h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
  color: var(--color-ink);
}

.outcome-card p {
  margin: 0;
  font-size: 14px;
  line-height: 23px;
  color: var(--color-muted);
}

/* ------------------------------------------------------------------ */
/* Outcome tabs                                                       */
/* ------------------------------------------------------------------ */

.outcomes-tabs {
  position: relative;
  margin: 20px 0 40px;
}

.outcomes-split {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.outcomes-sticky {
  position: sticky;
  top: var(--header-offset);
  z-index: 20;
}

.outcomes-rail {
  padding: 18px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(31, 62, 74, 0.06);
}

.outcomes-rail-label {
  margin: 0 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.tab-navigation {
  width: 100%;
}

.tab-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tab-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  color: var(--color-ink);
  padding: 14px 16px;
  border: 0;
  background: transparent;
  border-radius: 18px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.tab-btn:hover:not(.active) {
  background: var(--color-surface);
}

.tab-btn.active {
  background: var(--color-ink);
  color: var(--color-white);
}

.tab-index {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.55;
  padding-top: 3px;
}

.tab-btn.active .tab-index {
  opacity: 1;
  color: var(--color-mint-text);
}

.tab-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: normal;
}

.slider-container {
  width: 100%;
  height: auto !important;
  min-height: 0;
  align-self: start;
}

.tabSwiper {
  width: 100%;
  overflow: hidden;
}

.outcomes-tabs .swiper-slide {
  padding: 0;
}

.slide-content {
  width: 100%;
  border-radius: var(--radius-card);
  padding: 28px 48px 48px;
}

.slide-1 .slide-content { background: var(--color-card); }
.slide-2 .slide-content { background: #d9eaf6; }
.slide-3 .slide-content { background: #e6f7fa; }
.slide-4 .slide-content { background: var(--color-ice); }
.slide-5 .slide-content { background: var(--color-green-soft); }

.tab-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  text-align: left;
  padding-top: 28px;
}

.tab-copy {
  flex: 1 1 46%;
  min-width: 280px;
}

.tab-media {
  flex: 1 1 46%;
  min-width: 280px;
}

.tab-copy h2 {
  margin: 0 0 12px;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
  color: var(--color-ink);
}

.tab-copy > p,
.tab-lead {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  color: var(--color-ink);
}

.tab-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(31, 62, 74, 0.12);
}

.tab-feature {
  width: calc(50% - 10px);
}

.tab-feature img {
  width: 30px;
  height: 30px;
}

.tab-feature h3 {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  color: var(--color-ink);
}

.tab-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 23px;
  color: var(--color-muted);
}

.tab-media img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: var(--radius-image);
}

.tab-checks {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 62, 74, 0.12);
}

.tab-checks p {
  position: relative;
  margin: 0 0 6px;
  padding: 8px 0 8px 34px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-ink);
}

.tab-checks p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  background: url("../images/svg/right-check.svg") center / 24px no-repeat;
}

.arrow-mobile {
  display: none;
}

.arrow-mobile .swiper-button-prev,
.arrow-mobile .swiper-button-next {
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  background: var(--color-ink);
  border-radius: 100px;
}

.arrow-mobile .swiper-button-prev::after,
.arrow-mobile .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
}

/* ------------------------------------------------------------------ */
/* Platform viz                                                       */
/* ------------------------------------------------------------------ */

.platform-viz {
  margin: 10px 0 40px;
  padding: 10px 0 20px;
}

.platform-viz .stage {
  font-family: var(--font);
}

/* ------------------------------------------------------------------ */
/* Quote + stats                                                      */
/* ------------------------------------------------------------------ */

.quote-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 10px 0 40px;
  padding: 52px 56px 72px;
  background: var(--color-surface);
  border-radius: 35px;
}

.quote-band::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 316px;
  max-width: 72%;
  aspect-ratio: 316 / 178;
  height: auto;
  background: url("../images/svg/right-curved-shape.svg") top right / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.quote-band h2 {
  position: relative;
  z-index: 1;
  margin: 0 auto 28px;
  max-width: none;
  text-align: center;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
  color: var(--color-primary);
}

.quote-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.quote-row {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.quote-row blockquote {
  margin: 0 0 18px;
  font-family: var(--font);
  font-size: 28px;
  font-weight: 500;
  line-height: 40px;
  color: var(--color-primary);
}

.quote-row cite {
  display: block;
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-primary);
}

.quote-stats {
  display: flex;
  gap: 20px;
  margin-top: 56px;
}

.quote-stat {
  flex: 1;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  border-radius: 32px;
  background: var(--color-white);
}

.quote-stat:nth-child(1) { background: #dee2e4; }
.quote-stat:nth-child(2) { background: #d9eaf6; }
.quote-stat:nth-child(3) { background: #d9f3f8; }
.quote-stat:nth-child(4) { background: #dbf4ed; }

.quote-stat p {
  margin: 0;
  max-width: 70%;
  font-size: 16px;
  line-height: 24px;
  color: #696969;
}

.quote-stat strong {
  display: block;
  font-size: var(--text-h2-size);
  font-weight: 600;
  line-height: 1.1;
}

.quote-stat:nth-child(1) strong { color: var(--color-primary); }
.quote-stat:nth-child(2) strong { color: var(--color-accent); }
.quote-stat:nth-child(3) strong { color: var(--color-cyan); }
.quote-stat:nth-child(4) strong { color: var(--color-green); }

/* ------------------------------------------------------------------ */
/* Trust, KPI, compliance, partners, comparison                       */
/* ------------------------------------------------------------------ */

.trust-bar,
.kpi-strip,
.kpi-block,
.compliance-strip,
.partner-band,
.compare-band {
  margin: 32px 0 56px;
}

.kpi-block .kpi-strip {
  margin: 0;
}

.outcome-more,
.industry-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
}

.trust-bar {
  padding: 56px 32px 48px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  text-align: center;
}

.trust-anchor {
  margin: 0 auto 24px;
  max-width: 820px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: var(--color-primary);
}

.trust-tiles,
.compliance-list,
.partner-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-tiles li,
.partner-tiles li,
.kpi-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 88px;
  padding: 16px 14px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  font-family: var(--font);
  text-align: center;
}

.trust-tiles li strong,
.partner-tiles li {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--color-primary);
}

.trust-tiles li span {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-muted);
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.kpi-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 180px;
  height: 100%;
  gap: 14px;
  padding: 28px 20px 24px;
}

.kpi-tile:nth-child(1) { background: #dee2e4; }
.kpi-tile:nth-child(2) { background: #d9eaf6; }
.kpi-tile:nth-child(3) { background: #d9f3f8; }
.kpi-tile:nth-child(4) { background: #dbf4ed; }

.kpi-tile strong {
  position: static;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-height: 2.4em;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.kpi-tile:nth-child(1) strong { color: var(--color-primary); }
.kpi-tile:nth-child(2) strong { color: var(--color-accent); }
.kpi-tile:nth-child(3) strong { color: var(--color-cyan); }
.kpi-tile:nth-child(4) strong { color: var(--color-green); }

.kpi-tile p {
  position: static;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  min-height: 48px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #696969;
}

.compliance-strip {
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--color-surface-alt);
  text-align: center;
}

.compliance-lead {
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: 16px;
  line-height: 26px;
}

.compliance-more {
  margin: 18px 0 0;
}

.compliance-more a {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 600;
}

.compliance-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.is-inner .compliance-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compliance-list li {
  padding: 14px 12px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--color-primary);
}

.partner-band {
  padding: 48px 24px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  text-align: center;
}

.partner-band h2 {
  margin: 0 auto 12px;
  max-width: 820px;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
}

.partner-band p {
  margin: 0 auto 28px;
  max-width: 680px;
  font-size: 16px;
  line-height: 26px;
}

.partner-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.partner-tiles li {
  align-items: center;
  min-height: 88px;
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.compare-band {
  padding: 8px 0 8px;
}

.compare-band h2 {
  margin: 0 0 16px;
  text-align: center;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
}

.compare-lead {
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
  font-size: 16px;
  line-height: 26px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  font-size: 16px;
  line-height: 24px;
  vertical-align: top;
  border-bottom: 1px solid var(--color-gray);
}

.compare-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.compare-table tbody th {
  width: 22%;
  font-weight: 600;
  color: var(--color-primary);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.related-band .btn-line {
  margin: 0 6px 12px;
}

/* ------------------------------------------------------------------ */
/* Closing CTA                                                        */
/* ------------------------------------------------------------------ */

.cta-band {
  margin: 10px 0 20px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 40px;
  border-radius: 35px;
  text-align: center;
  background-color: var(--color-primary);
  background-image: url("https://midofficedata.com/wp-content/uploads/2026/06/finance-bg.png");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.cta-card h2 {
  margin: 0 auto;
  max-width: 715px;
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: 46px;
  color: #feffff;
  text-transform: capitalize;
}

.cta-card.is-close h2 {
  text-transform: none;
}

.cta-list {
  list-style: none;
  margin: 24px auto 0;
  padding: 0;
  max-width: 280px;
  text-align: left;
}

.cta-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 34px;
  color: #feffff;
}

.cta-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 18px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.cta-actions .btn-solid {
  padding: 18px 56px;
}

.cta-actions .btn-ghost {
  padding: 18px 40px;
}

/* ------------------------------------------------------------------ */
/* Platform                                                           */
/* ------------------------------------------------------------------ */

.platform-intro {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: var(--radius-card);
}

.platform-hero {
  position: relative;
  padding: 72px 80px;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.platform-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.platform-hero-copy h1 {
  margin: 0 0 18px;
  color: var(--color-white);
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line);
}

.platform-kicker {
  margin: 0 0 12px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.platform-lead {
  margin: 0 0 18px;
  font-size: var(--text-h5-size);
  font-weight: var(--text-h5-weight);
  line-height: var(--text-h5-line);
  color: var(--color-white);
}

.platform-hero-copy p {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: 16px;
  line-height: 30px;
}

.platform-hero-copy .btn-accent {
  margin-top: 12px;
}

.platform-hero-media {
  overflow: hidden;
  border-radius: var(--radius-image);
  aspect-ratio: var(--media-split-ratio);
}

.platform-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.platform-stats {
  padding: 48px 80px 40px;
  background: var(--color-surface);
}

.platform-stats h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: var(--text-h5-size);
  font-weight: var(--text-h5-weight);
  line-height: var(--text-h5-line);
  color: var(--color-ink);
}

.platform-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.platform-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  text-align: center;
}

.stat-ring {
  --ring: var(--color-accent);
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 16px;
}

.stat-ring svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.stat-ring-track {
  fill: none;
  stroke: var(--color-surface-alt);
  stroke-width: 10;
}

.stat-ring-value {
  fill: none;
  stroke: var(--ring);
  stroke-width: 10;
  stroke-linecap: round;
}

.stat-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--ring);
}

.platform-stat h3 {
  margin: 0 0 8px;
  font-size: var(--text-lead-size);
  font-weight: var(--text-lead-weight);
  line-height: var(--text-lead-line);
  color: var(--color-muted);
}

.platform-stat p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-muted);
}

.platform-stat-note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
}

.scale-band {
  margin: 12px 0 40px;
}

.scale-band > h2 {
  margin: 0 0 24px;
  padding: 0 12px;
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line);
  color: var(--color-ink);
}

.scale-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scale-pin {
  position: sticky;
  top: var(--header-offset);
  width: 100%;
}

.scale-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 480px;
  padding: 80px 50px;
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-card);
  border-bottom: 0;
  box-shadow: none;
  overflow: hidden;
}

.scale-card.is-flip {
  flex-direction: row-reverse;
}

.scale-card.is-flip::before {
  right: auto;
  left: 0;
  background-image: url("../images/svg/left-curved-shape.svg?v=2");
  background-position: top left;
}

.scale-pin:last-child .scale-card,
.scale-card.is-last {
  border-bottom: 0;
}

.scale-card--mist { background-color: var(--color-card); }
.scale-card--blue { background-color: #d9eaf6; }
.scale-card--cyan { background-color: #e6f7fa; }
.scale-card--ice { background-color: var(--color-ice); }
.scale-card--mint { background-color: var(--color-green-soft); }
.scale-card--sky { background-color: var(--color-surface-alt); }

.scale-copy,
.scale-media {
  position: relative;
  z-index: 1;
  flex: 1 1 46%;
  min-width: 0;
}

.scale-copy h3 {
  margin: 0 0 8px;
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: 1.25;
  color: var(--color-ink);
}

.scale-copy h3::after {
  content: "";
  display: block;
  width: 100%;
  margin: 12px 0 16px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.scale-copy p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-ink);
}

.scale-copy .btn-accent {
  margin-top: 8px;
}

.scale-media img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.platform-cta {
  margin: 10px 0 40px;
}

.platform-cta-card {
  padding: 72px 48px;
  border-radius: var(--radius-card);
  text-align: center;
  background-color: var(--color-primary);
  background-image: url("https://midofficedata.com/wp-content/uploads/2026/06/cta-bg.png");
  background-size: cover;
  background-position: center;
}

.platform-cta-card h2 {
  margin: 0 auto;
  max-width: 920px;
  color: var(--color-white);
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
}

.platform-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.platform-cta-card.is-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 48px 40px;
}

.platform-cta-card.is-case {
  background-image: url("https://midofficedata.com/wp-content/uploads/2026/06/case-cta-bg.png");
}

.split-band {
  margin: 10px 0 40px;
  padding: 48px 24px;
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  background-image: url("https://midofficedata.com/wp-content/uploads/2025/07/soution-bg.png");
  background-size: cover;
  background-position: center;
}

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 12px 8px;
}

.split-row + .split-row {
  margin-top: 36px;
}

.split-copy h2 {
  margin: 0 0 16px;
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line);
  color: var(--color-ink);
}

.split-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-ink);
}

.legal-page,
.careers-board {
  margin: 10px 0 40px;
  padding: 48px 40px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.legal-body > *:first-child {
  margin-top: 0;
}

.legal-body h2 {
  margin: 32px 0 12px;
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: 1.3;
  color: var(--color-ink);
}

.legal-body h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
}

.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 28px;
  color: var(--color-ink);
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.legal-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.legal-body hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--color-gray);
}

.legal-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.careers-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.careers-intro h2 {
  margin: 0 0 10px;
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: 1.3;
}

.careers-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--color-ink);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.job-card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-image);
}

.job-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.job-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.job-card h3 a {
  color: var(--color-ink);
}

.job-card p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-muted);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.job-meta li {
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--color-surface-alt);
  font-size: 13px;
  font-weight: 500;
}

.job-card .btn-accent {
  align-self: flex-start;
  margin-top: auto;
}

.careers-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 24px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  text-align: center;
}

.careers-empty h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.careers-empty p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 28px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius-image);
  aspect-ratio: var(--media-split-ratio);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.split-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.split-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-ink);
}

.split-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
}

.split-list.is-rich li {
  padding: 12px 0 12px 22px;
}

.split-list.is-rich li strong {
  display: inline;
  font-weight: 600;
}

.faq-band {
  max-width: 920px;
  margin: 10px auto 48px;
}

.faq-band h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
  color: var(--color-ink);
}

.faq-list .accordion-item {
  border: 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
  background: transparent;
}

.faq-list .accordion-button {
  font-family: inherit;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-ink);
  background: transparent;
  box-shadow: none;
  padding: 18px 8px;
}

.faq-list .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--color-ink);
  box-shadow: none;
}

.faq-list .accordion-button::after {
  width: 12px;
  height: 12px;
  background-size: 12px;
  opacity: 0.7;
}

.faq-list .accordion-body {
  padding: 0 8px 18px;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-ink);
}

/* ------------------------------------------------------------------ */
/* Inner banners + About                                              */
/* ------------------------------------------------------------------ */

.page-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  margin-bottom: 28px;
  padding: 72px 80px;
  overflow: hidden;
  border-radius: var(--radius-card);
  text-align: center;
  background-color: var(--color-primary);
  background-image: url("https://midofficedata.com/wp-content/uploads/2026/06/bg-resources.png");
  background-size: cover;
  background-position: center;
}

.page-banner.is-tall {
  min-height: 500px;
}

.page-banner.is-contact {
  background-image: url("https://midofficedata.com/wp-content/uploads/2026/06/contact-bg.png");
}

.page-banner.is-industry {
  min-height: 400px;
  padding: 170px 40px;
  background-color: #0fb582;
  background-image: url("https://midofficedata.com/wp-content/uploads/2025/07/midoffice-banner-img.png");
  background-repeat: no-repeat;
  background-position: 60px bottom;
  background-size: 15% auto;
}

.page-banner-lead {
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--color-white);
  font-size: 16px;
  line-height: 26px;
}

.contact-talk {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 40px;
}

.contact-talk h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
  color: var(--color-ink);
}

.contact-talk > p {
  margin: 0 auto 40px;
  max-width: 56%;
  text-align: center;
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  color: var(--color-ink);
}

.contact-cal {
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #171717;
}

/* ------------------------------------------------------------------ */
/* Use-case pages (Financial Close + shared)                          */
/* ------------------------------------------------------------------ */

.usecase-hero {
  position: relative;
  min-height: 700px;
  padding: 72px 80px;
  overflow: hidden;
  border-radius: var(--radius-card);
  color: var(--color-white);
  background-color: var(--color-primary);
  background-image: url("https://midofficedata.com/wp-content/uploads/2026/06/single-case.png");
  background-size: cover;
  background-position: center;
}

.usecase-hero .platform-hero-copy h1 {
  font-size: var(--text-display-size);
  font-weight: var(--text-display-weight);
  line-height: var(--text-display-line);
}

.usecase-hero .platform-hero-copy {
  min-width: 0;
}

.usecase-sub {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.7px;
  color: var(--color-white);
}

.usecase-hero .platform-hero-copy p {
  color: var(--color-white);
  font-size: 16px;
  line-height: 26px;
}

.usecase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.usecase-actions .btn-solid {
  padding: 18px 62px;
  border-radius: 115px;
  color: var(--color-ink) !important;
}

.usecase-media {
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: var(--media-split-ratio);
}

.usecase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-trust {
  margin-top: 8px !important;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
}

.report-band {
  margin: 32px 0 56px;
  padding: 72px 32px;
  border-radius: var(--radius-card);
  text-align: center;
  background: var(--color-surface-alt);
}

.report-band h2 {
  margin: 0 auto 20px;
  max-width: 980px;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
}

.report-band p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  line-height: 26px;
}

.cta-poc-copy {
  margin: 0 auto 12px;
  max-width: 720px;
  color: var(--color-white);
  font-size: 16px;
  line-height: 26px;
}

.cta-poc-alt {
  display: inline-block;
  margin-top: 18px;
  color: var(--color-white) !important;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-poc-alt:hover,
.cta-poc-alt:focus-visible {
  color: var(--color-mint-text) !important;
}

.usecase-steps,
.cap-band,
.connect-band,
.industry-band,
.related-band {
  margin: 10px 0 40px;
}

.usecase-steps h2,
.cap-band h2,
.connect-band h2,
.industry-band h2,
.related-band h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
}

.step-grid,
.cap-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  counter-reset: industry;
}

.related-grid {
  margin-bottom: 28px;
}

.step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-grid.home-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.cap-card {
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.step-grid.home-steps .step-card {
  text-align: center;
}

.related-card {
  min-width: 0;
  padding: 12px 12px 24px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.step-num {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.step-card h3,
.cap-card h3,
.related-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  overflow-wrap: break-word;
}

.step-card p,
.related-card p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
}

.cap-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 16px;
  line-height: 26px;
}

.callout-band {
  margin: 10px 0 40px;
}

.callout-card {
  padding: 48px 40px;
  border-radius: var(--radius-card);
  background: var(--color-surface-alt);
  text-align: center;
}

.callout-card h2 {
  margin: 0 0 12px;
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line);
}

.callout-card p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 16px;
  line-height: 26px;
}

.connect-band,
.related-band {
  text-align: center;
}

.connect-lead {
  margin: 0 auto 24px;
  max-width: 640px;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
}

.connect-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.connect-list li {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.connect-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 62, 74, 0.1);
}

.related-card {
  display: block;
  text-align: left;
  color: inherit;
}

.industry-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-height: 220px;
  padding: 26px 26px 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(31, 62, 74, 0.04);
  color: inherit;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.industry-tile:nth-child(4) {
  grid-column: 2 / span 2;
}

.industry-tile:nth-child(5) {
  grid-column: 4 / span 2;
}

.industry-tile::before {
  content: counter(industry, decimal-leading-zero);
  counter-increment: industry;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--color-ice);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.industry-tile::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cyan));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.industry-tile h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

.industry-tile p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 16px;
  line-height: 26px;
}

.related-card-media {
  display: block;
  margin: 0 0 14px;
  line-height: 0;
}

.related-card-media img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.related-card-body {
  display: block;
  min-width: 0;
  padding: 0 8px;
}

.related-card:hover {
  background: var(--color-surface-alt);
}

.related-band .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
  counter-reset: related;
}

.related-band .related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 28px 26px 22px;
  overflow: hidden;
  border: 1px solid rgba(31, 62, 74, 0.08);
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(31, 62, 74, 0.04);
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.related-band .related-card::before {
  content: counter(related, decimal-leading-zero);
  counter-increment: related;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--color-ice);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.related-band .related-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cyan));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.related-band .related-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

.related-band .related-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 16px;
  line-height: 26px;
}

.related-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
}

.related-more::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.22s ease;
}

.related-band .related-card:hover,
.related-band .related-card:focus-visible {
  background: var(--color-white);
  border-color: rgba(0, 113, 193, 0.28);
  box-shadow: 0 16px 36px rgba(31, 62, 74, 0.1);
  color: inherit;
  transform: translateY(-4px);
}

.related-band .related-card:hover::after,
.related-band .related-card:focus-visible::after {
  opacity: 1;
}

.related-band .related-card:hover .related-more::after,
.related-band .related-card:focus-visible .related-more::after {
  transform: translateX(4px);
}

.industry-tile:hover,
.industry-tile:focus-visible {
  background: var(--color-white);
  border-color: rgba(0, 113, 193, 0.16);
  box-shadow: var(--shadow-float);
  transform: translateY(-5px);
  color: inherit;
}

.industry-tile:hover::after,
.industry-tile:focus-visible::after {
  opacity: 1;
}

.industry-tile .industry-more::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.industry-tile:hover .industry-more,
.industry-tile:focus-visible .industry-more {
  color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .industry-tile {
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }

  .industry-tile:hover,
  .industry-tile:focus-visible {
    transform: none;
  }
}

.platform-cta-card.usecase-poc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px 48px;
  background-image: url("https://midofficedata.com/wp-content/uploads/2026/06/case-cta-bg.png");
}

.platform-cta-card.usecase-poc p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--color-white);
  font-size: 16px;
  line-height: 26px;
}

.poc-points {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-white);
  font-size: 16px;
  line-height: 28px;
}

.trust-line {
  margin: 0 auto 40px;
  max-width: 720px;
  text-align: center;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-muted);
}

.hub-slider {
  position: relative;
  margin-bottom: 28px;
  width: 100%;
  min-width: 0;
}

.hub-slider .hubSwiper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.hub-slider .swiper-slide {
  height: auto;
  min-width: 0;
  box-sizing: border-box;
}

.hub-slider .related-card {
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 12px 12px 24px;
}

.hub-slider .related-card::before {
  content: none;
  display: none;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
}

/* Beat Swiper's later .swiper-wrapper { display:flex } so three cards fit. */
.hub-slider .hubSwiper .hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hub-slider .hubSwiper .related-card.swiper-slide {
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.hub-slider-nav {
  display: none;
}

.hub-pagination,
.hub-slider .swiper-pagination,
.is-home .swiper-pagination {
  display: none !important;
}

.industry-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.industry-hub-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: inherit;
}

.industry-hub-card:hover {
  background: var(--color-surface-alt);
  color: inherit;
}

.industry-hub-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.industry-hub-card h3 {
  margin: 0;
  padding: 20px 24px 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.industry-hub-card p {
  margin: 0;
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 26px;
}

.need-band {
  margin: 10px 0 40px;
}

.need-band h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
  color: var(--color-ink);
}

.need-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.need-head,
.need-cell,
.help-cell {
  margin: 0;
  padding: 16px 24px;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-ink);
}

.need-head {
  font-weight: 700;
  background: var(--color-surface-alt);
}

.need-grid > :nth-child(4n + 1),
.need-grid > :nth-child(4n + 2) {
  background: var(--color-surface-alt);
}

.page-banner-kicker {
  margin: 0 0 12px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-banner h1 {
  margin: 0 auto;
  width: 100%;
  max-width: 1080px;
  color: var(--color-white);
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line);
}

.page-banner.is-contact h1 {
  font-size: var(--text-display-size);
  font-weight: var(--text-display-weight);
  line-height: var(--text-display-line);
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin: 10px 0 40px;
  padding: 20px 0 10px;
}

.about-story-copy h2 {
  margin: 0 0 16px;
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line);
  color: var(--color-ink);
}

.about-story-copy p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-ink);
}

.about-tagline {
  margin: 8px 0 20px;
  font-size: 18px;
}

.about-story-media {
  padding: 24px;
  background: var(--color-primary);
  border-radius: var(--radius-card);
}

.about-story-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-image);
}

.scale-kicker {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-primary);
}

.scale-kicker::after {
  content: "";
  display: block;
  width: 100%;
  margin: 8px 0 4px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.scale-copy:has(.scale-kicker) h3::after {
  display: none;
}

.scale-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.scale-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  max-width: 180px;
  padding: 10px 14px;
  background: var(--color-white);
  border-radius: 12px;
}

.scale-logo img {
  display: block;
  width: auto;
  max-width: 140px;
  max-height: 36px;
  object-fit: contain;
}

.scale-logo.is-ink {
  background: var(--color-ink);
}

.platform-cta-lead {
  margin: 18px auto 0;
  max-width: 760px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.resource-listing {
  margin: 10px 0 48px;
}

.resource-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 40px;
  padding: 6px 10px;
  gap: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-ink);
  border-radius: 100px;
}

.resource-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-ink) !important;
}

.resource-filters a:hover,
.resource-filters a.is-active {
  background: var(--color-ink);
  color: var(--color-white) !important;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
}

.resource-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
}

.resource-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 24px;
}

.resource-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
  min-width: 0;
  padding: 16px 10px;
}

.resource-card h3 {
  margin: 0;
  min-height: 52px;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.resource-card h3 a {
  color: var(--color-ink);
}

.resource-card h3 a:hover {
  color: var(--color-primary);
}

.resource-slider {
  position: relative;
  width: 100%;
  min-width: 0;
}

.resource-slider .resourceSwiper {
  width: 100%;
  min-width: 0;
  height: auto;
  overflow: visible;
}

.resource-slider .resource-card.swiper-slide {
  height: auto;
  min-width: 0;
  box-sizing: border-box;
}

.resource-slider-nav,
.resource-slider .swiper-pagination {
  display: none;
}

.btn-read {
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--color-ink);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-ink) !important;
  background: transparent;
}

.btn-read:hover {
  background: var(--color-ink);
  color: var(--color-white) !important;
}

.resource-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.resource-pages a,
.resource-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
}

.resource-pages a {
  color: var(--color-primary);
  border: 1px solid var(--color-gray);
}

.resource-pages a:hover {
  background: var(--color-surface);
}

.resource-pages .is-current {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}

.resource-pages .is-gap {
  width: auto;
  min-width: 42px;
  border: 0;
  color: var(--color-ink);
}

/* ------------------------------------------------------------------ */
/* Blog + case study singles                                          */
/* ------------------------------------------------------------------ */

.article {
  max-width: 1080px;
  margin: 0 auto 48px;
}

.article-hero {
  margin: 0 0 32px;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
}

.article-lead,
.article-body {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.article-lead {
  margin-top: 0;
  margin-bottom: 28px;
  color: var(--color-ink-soft);
  font-size: var(--text-lead-size);
  font-weight: var(--text-lead-weight);
  line-height: var(--text-lead-line);
}

.page-banner .article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-small-size);
  font-weight: 400;
  line-height: var(--text-small-line);
}

.article-body {
  color: var(--color-ink);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h2 b,
.article-body h2 strong {
  margin: 36px 0 14px;
  color: var(--color-primary);
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
}

.article-body h3,
.article-body h3 b,
.article-body h3 strong {
  margin: 28px 0 12px;
  color: var(--color-primary);
  font-size: var(--text-h5-size);
  font-weight: var(--text-h5-weight);
  line-height: var(--text-h5-line);
}

.article-body p {
  margin: 0 0 16px;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-primary);
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body li strong,
.article-body li b {
  color: var(--color-primary);
}

.is-case-study .article-body h2 + ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}

.is-case-study .article-body h2 + ul li {
  margin: 0;
  padding: 22px 18px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.is-case-study .article-body h2 + ul li:nth-child(1) { background: #dee2e4; }
.is-case-study .article-body h2 + ul li:nth-child(2) { background: #d9eaf6; }
.is-case-study .article-body h2 + ul li:nth-child(3) { background: #d9f3f8; }
.is-case-study .article-body h2 + ul li:nth-child(4) { background: #dbf4ed; }

.is-case-study .article-body h2 + ul li strong,
.is-case-study .article-body h2 + ul li b {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1480px) {
  .navbar-brand img {
    width: 200px;
  }

  .footer-card {
    padding: 60px 80px 30px;
  }

  .hero-inner h1 {
    font-size: 48px;
    line-height: 52px;
  }

  .platform-hero,
  .platform-stats {
    padding: 56px 40px;
  }

  .scale-card {
    padding: 50px 36px;
    gap: 28px;
  }
}

@media (max-width: 1199px) {
  .outcomes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi-strip,
  .partner-tiles,
  .decisions-grid.is-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-row blockquote {
    font-size: 24px;
    line-height: 34px;
  }
}

@media (min-width: 992px) and (max-width: 1439px) {
  .navbar-brand img {
    width: 180px;
  }

  .navbar-nav .nav-link {
    font-size: 15px;
    padding: 0.4rem 0.45rem;
  }

  .header-ctas {
    gap: 8px;
    margin-left: 8px;
  }

  .btn-cta {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .btn-cta-secondary {
    font-size: 13px;
  }
}

@media (min-width: 992px) and (max-width: 1279px) {
  .navbar-brand img {
    width: 154px;
  }

  .navbar-nav .nav-link {
    font-size: 14px;
    padding: 0.4rem 0.35rem;
  }

  .btn-cta-secondary {
    font-size: 12px;
    gap: 4px;
  }
}

@media (max-width: 991.98px) {
  .header-ctas,
  .mega-menu,
  .simple-dropdown {
    display: none !important;
  }

  .header-pill {
    border-radius: 28px;
    padding: 4px 14px;
  }

  .navbar-brand {
    flex: 1 1 auto;
    margin-right: 8px;
  }

  .navbar-brand img {
    width: 148px;
    max-width: calc(100vw - 108px);
  }

  .btn-cta,
  .btn-cta-outline {
    min-height: 48px;
    padding: 12px 22px;
  }

  .page-main {
    padding-bottom: 10px;
  }

  .footer-shell {
    padding-bottom: 20px;
  }

  .footer-card {
    padding: 30px 20px 20px;
  }

  .footer-logo img {
    width: 200px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions > a {
    width: 100%;
  }

  .hero-inner {
    padding: 56px 8px 60px;
    width: 100%;
  }

  .hero-inner h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .decisions-head {
    flex-direction: column;
    gap: 12px;
  }

  .decisions-card,
  .decisions-card.is-wide {
    width: 100%;
  }

  .decisions-grid.is-pillars {
    grid-template-columns: 1fr;
  }

  .outcomes-title {
    padding: 48px 8px;
  }

  .outcomes-title h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .outcomes-line {
    display: none !important;
  }

  .outcomes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .outcome-card {
    padding: 18px 14px 18px;
  }

  .outcome-card h3 {
    margin: 16px 0 8px;
    font-size: 16px;
    line-height: 22px;
  }

  .trust-tiles,
  .kpi-strip,
  .compliance-list,
  .is-inner .compliance-list,
  .partner-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi-tile {
    min-height: 140px;
  }

  .compare-table {
    display: block;
    background: transparent;
    overflow: visible;
  }

  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .compare-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .compare-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    width: 100%;
    padding: 18px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: 16px;
    border-bottom: 1px solid var(--color-gray);
  }

  .compare-table tbody th,
  .compare-table tbody td {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-bottom: 0;
  }

  .compare-table tbody th {
    grid-column: 1 / -1;
    padding: 0 0 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-gray);
    font-size: 16px;
    line-height: 22px;
  }

  .compare-table tbody td {
    padding: 12px 0 0;
  }

  .compare-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 16px;
    text-transform: uppercase;
  }

  .compare-table tbody td:last-child::before {
    color: var(--color-accent);
  }

  .outcomes-split {
    display: block;
  }

  .outcomes-sticky {
    position: sticky;
    top: var(--header-offset);
    z-index: 30;
    margin: 0 -16px 16px;
    padding: 8px 16px 10px;
    background: var(--color-white);
  }

  .outcomes-rail {
    padding: 8px;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(31, 62, 74, 0.1);
  }

  .outcomes-rail-label {
    display: none;
  }

  .tab-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 4px 4px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tab-buttons::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 100px;
    background: var(--color-surface);
  }

  .tab-btn.active {
    background: var(--color-ink);
    color: var(--color-white);
  }

  .tab-index {
    display: none;
  }

  .tab-text {
    white-space: nowrap;
    font-size: 13px;
    line-height: 18px;
  }

  .outcomes-tabs .swiper-slide + .swiper-slide {
    display: none;
  }

  .outcomes-tabs.is-mobile-panels .tabSwiper,
  .outcomes-tabs.is-mobile-panels .swiper-wrapper {
    display: block !important;
    transform: none !important;
    overflow: visible !important;
    width: 100% !important;
    height: auto !important;
  }

  .outcomes-tabs.is-mobile-panels .swiper-slide {
    display: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  .outcomes-tabs.is-mobile-panels .swiper-slide.is-panel-active {
    display: block !important;
  }

  .slide-content {
    padding: 20px 16px 24px;
    overflow: hidden;
  }

  .tab-panel {
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
    text-align: center;
  }

  .tab-copy,
  .tab-media {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .tab-copy {
    text-align: center;
  }

  .tab-copy > h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .tab-copy .btn-dark {
    margin-inline: auto;
    min-width: 220px;
  }

  .tab-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 24px;
    padding-top: 24px;
    text-align: center;
  }

  .tab-feature {
    width: auto;
    text-align: center;
  }

  .tab-feature img {
    margin-inline: auto;
    display: block;
  }

  .tab-checks {
    text-align: left;
  }

  .tab-media img {
    height: 180px;
  }

  .arrow-mobile {
    display: none !important;
  }

  .quote-band {
    padding: 40px 20px 36px;
  }

  .quote-band::before {
    width: 200px;
  }

  .quote-row {
    max-width: none;
    text-align: center;
  }

  .quote-row blockquote {
    font-size: 22px;
    line-height: 32px;
  }

  .platform-hero,
  .platform-stats {
    padding: 36px 18px;
  }

  .platform-hero-grid,
  .platform-stat-grid,
  .scale-card,
  .scale-card.is-flip,
  .split-row {
    display: flex;
    flex-direction: column;
  }

  .platform-hero-copy h1,
  .scale-band > h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .platform-lead {
    font-size: 20px;
    line-height: 28px;
  }

  .scale-card {
    min-height: 0;
    padding: 28px 18px;
    gap: 16px;
    transform: none !important;
    filter: none !important;
  }

  .scale-pin {
    position: relative !important;
    top: auto !important;
  }

  .scale-copy h3 {
    font-size: 24px;
  }

  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-page,
  .careers-board {
    padding: 32px 20px;
  }

  .page-banner {
    min-height: 280px;
    padding: 40px 20px;
    margin-bottom: 16px;
  }

  .page-banner.is-industry {
    min-height: 280px;
    padding: 80px 20px;
    background-position: 20px bottom;
    background-size: 28% auto;
  }

  .page-banner h1,
  .page-banner.is-contact h1 {
    font-size: 28px;
    line-height: 34px;
  }

  .contact-talk h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .contact-talk > p {
    max-width: 100%;
    margin-bottom: 28px;
  }

  .contact-cal {
    min-height: 560px;
  }

  .usecase-hero {
    min-height: 0;
    padding: 40px 20px;
  }

  .usecase-hero .platform-hero-copy h1 {
    font-size: 28px;
    line-height: 34px;
  }

  .usecase-sub {
    font-size: 18px;
    line-height: 26px;
  }

  .step-grid,
  .cap-grid,
  .related-grid,
  .industry-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .related-band .related-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .industry-tile,
  .industry-tile:nth-child(4),
  .industry-tile:nth-child(5) {
    grid-column: auto;
  }

  .industry-tile:nth-child(5) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(50% - 7px);
    justify-self: center;
  }

  .step-grid.home-steps {
    grid-template-columns: 1fr;
  }

  .need-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    overflow-wrap: anywhere;
  }

  .article-body img,
  .article-body table,
  .article-body pre,
  .article-body iframe {
    max-width: 100%;
  }

  .need-head {
    display: none;
  }

  .need-cell::before,
  .help-cell::before {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
  }

  .need-cell::before {
    content: "Need";
  }

  .help-cell::before {
    content: "How d4 Helps";
  }

  .usecase-actions .btn-ink,
  .usecase-actions .btn-solid {
    width: 100%;
    padding: 16px 24px;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 0 4px;
  }

  .about-story-copy h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .about-story-media {
    padding: 16px;
  }

  .resource-filters {
    border-radius: 28px;
    padding: 6px;
    gap: 2px;
  }

  .resource-filters a {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .article-body h2,
  .article-body h2 b,
  .article-body h2 strong {
    font-size: 26px;
    line-height: 34px;
    margin-top: 28px;
  }

  .is-case-study .article-body h2 + ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-banner.is-tall {
    min-height: 280px;
  }

  .platform-cta-card {
    padding: 40px 20px;
  }

  .platform-cta-card.is-compact {
    min-height: 180px;
    padding: 32px 20px;
  }

  .split-band {
    padding: 28px 16px;
  }

  .split-copy h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .platform-cta-card h2 {
    font-size: 24px;
    line-height: 1.4;
  }

  .quote-stats {
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .quote-stat {
    flex: 1 1 calc(50% - 12px);
    min-height: 180px;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .cta-card h2 {
    font-size: 24px;
    line-height: 1.4;
  }
}

@media (min-width: 768px) {
  .resource-slider .resource-grid,
  .resource-slider .resource-grid.swiper-wrapper {
    display: grid !important;
    width: 100%;
    transform: none !important;
  }

  .resource-slider .resource-card,
  .resource-slider .resource-card.swiper-slide {
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    flex-shrink: 1;
  }

  .hub-slider .hubSwiper .hub-grid.swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px !important;
    transform: none !important;
  }

  .hub-slider .hubSwiper .related-card.swiper-slide {
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    flex-shrink: 1;
  }
}

@media (max-width: 767.98px) {
  .resource-slider .resourceSwiper {
    overflow: hidden;
    margin: 0 -4px 8px;
    padding: 0 4px 12px;
  }

  .resource-slider .resource-grid,
  .resource-slider .resource-grid.swiper-wrapper {
    display: flex;
    grid-template-columns: none;
    gap: 0;
  }

  .resource-slider .resourceSwiper.swiper-initialized .resource-grid {
    display: flex;
    gap: 0;
  }

  .resource-slider-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 4px 0 8px;
  }

  .resource-slider-nav .swiper-button-prev,
  .resource-slider-nav .swiper-button-next {
    position: static;
    width: 44px;
    height: 44px;
    margin: 0;
    background: var(--color-ink);
    border-radius: 100px;
  }

  .resource-slider-nav .swiper-button-prev::after,
  .resource-slider-nav .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
  }

  .resource-slider .resourceSwiper:not(.swiper-initialized) .resource-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .resource-slider .resourceSwiper:not(.swiper-initialized) .resource-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .hub-slider .hubSwiper {
    overflow: hidden;
    margin: 0 -4px 8px;
    padding: 0 4px 12px;
  }

  .hub-slider .hub-grid.swiper-wrapper,
  .hub-slider .hubSwiper .hub-grid.swiper-wrapper {
    display: flex;
    grid-template-columns: none;
    gap: 0;
  }

  .hub-slider .hubSwiper.swiper-initialized .hub-grid {
    display: flex;
    gap: 0;
  }

  .hub-slider-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 4px 0 8px;
  }

  .hub-slider-nav .swiper-button-prev,
  .hub-slider-nav .swiper-button-next {
    position: static;
    width: 44px;
    height: 44px;
    margin: 0;
    background: var(--color-ink);
    border-radius: 100px;
  }

  .hub-slider-nav .swiper-button-prev::after,
  .hub-slider-nav .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
  }

  .hub-slider .hubSwiper:not(.swiper-initialized) .hub-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hub-slider .hubSwiper:not(.swiper-initialized) .related-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    width: 148px;
  }

  .quote-stat {
    flex: 1 1 100%;
  }

  .hero-actions,
  .cta-actions,
  .platform-cta-actions,
  .demo-modal-actions,
  .usecase-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-solid,
  .hero-actions .btn-ghost,
  .hero-actions .btn-cta,
  .hero-actions .btn-accent {
    width: 100%;
  }

  .trust-tiles,
  .industry-hub-grid,
  .industry-grid,
  .related-grid,
  .step-grid,
  .cap-grid,
  .partner-tiles,
  .compliance-list,
  .is-inner .compliance-list {
    grid-template-columns: 1fr;
  }

  .industry-tile,
  .industry-tile:nth-child(4),
  .industry-tile:nth-child(5) {
    grid-column: auto;
    max-width: none;
  }

  .outcomes-grid,
  .kpi-strip,
  .job-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .outcome-card {
    padding: 16px 12px 16px;
  }

  .outcome-card h3 {
    margin: 12px 0 6px;
    font-size: 15px;
    line-height: 20px;
  }

  .outcome-card p {
    font-size: 13px;
    line-height: 19px;
  }

  .outcome-icon {
    width: 48px;
    height: 48px;
  }

  .outcome-icon img {
    width: 22px;
    height: 22px;
  }

  .legal-page,
  .careers-board {
    padding: 24px 16px;
  }

  .job-card .btn-accent,
  .careers-empty .btn-accent {
    width: 100%;
    justify-content: center;
  }

  .compare-table tbody tr {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 18px;
  }

  .compare-table tbody td + td {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--color-gray);
  }

  .kpi-tile {
    min-height: 160px;
    padding: 20px 16px;
    gap: 10px;
  }

  .kpi-tile strong {
    font-size: 28px;
    min-height: 0;
  }

  .footer-top .col-6 {
    width: 100%;
  }

  .footer-links a,
  .footer-legal a {
    padding: 8px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .is-case-study .article-body h2 + ul {
    grid-template-columns: 1fr;
  }

  .article-body h2,
  .article-body h2 b,
  .article-body h2 strong {
    margin-top: 22px;
    font-size: 24px;
    line-height: 32px;
  }
}

/* ------------------------------------------------------------------ */
/* Single case study (Downloads layout, scoped)                       */
/* ------------------------------------------------------------------ */

.cs-study {
  --cs-ink: var(--color-ink);
  --cs-ink-soft: rgba(3, 3, 3, 0.62);
  --cs-ink-muted: rgba(3, 3, 3, 0.46);
  --cs-navy: var(--color-primary);
  --cs-navy-deep: #17323c;
  --cs-cyan: var(--color-cyan);
  --cs-cyan-glow: var(--color-mint-text);
  --cs-blue: var(--color-accent);
  --cs-yellow: var(--color-highlight);
  --cs-paper: #f7f9fc;
  --cs-mist: var(--color-surface-alt);
  --cs-ice: var(--color-ice);
  --cs-mint: var(--color-green-soft);
  --cs-line: rgba(31, 62, 74, 0.12);
  --cs-radius: 22px;
  --cs-shadow: var(--shadow-float);
  --cs-max: 1180px;
  color: var(--cs-ink);
}

.cs-study .cs-wrap {
  width: min(var(--cs-max), 100%);
  margin-inline: auto;
}

.cs-study .cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-cyan);
}

.cs-study .cs-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.cs-study h1,
.cs-study h2,
.cs-study h3 {
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--cs-navy);
}

.cs-study .cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 13px 22px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.cs-study .cs-btn-primary {
  background: var(--cs-cyan);
  color: var(--cs-navy-deep) !important;
}

.cs-study .cs-btn-primary:hover,
.cs-study .cs-btn-primary:focus-visible {
  background: #12c2e4;
  color: var(--cs-navy-deep) !important;
}

.cs-study .cs-btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--color-white) !important;
  background: transparent;
}

.cs-study .cs-btn-ghost:hover,
.cs-study .cs-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white) !important;
}

.cs-study #challenge,
.cs-study #insight,
.cs-study #framework,
.cs-study #approach,
.cs-study #solution {
  scroll-margin-top: 16px;
}

.cs-study .cs-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 72px 40px 88px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(0, 174, 208, 0.28), transparent 60%),
    radial-gradient(700px 360px at 8% 110%, rgba(252, 255, 168, 0.1), transparent 55%),
    linear-gradient(180deg, var(--cs-navy-deep) 0%, var(--cs-navy) 100%);
  color: var(--color-white);
}

.cs-study .cs-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(187, 251, 255, 0.35), transparent);
}

.cs-study .cs-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
}

.cs-study .cs-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  color: var(--color-white);
  font-weight: 600;
}

.cs-study .cs-hero-lead {
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

.cs-study .cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cs-study .cs-hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cs-study .cs-meta-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px 20px;
}

.cs-study .cs-meta-card span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-cyan-glow);
  margin-bottom: 6px;
}

.cs-study .cs-meta-card strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
}

.cs-study .cs-snapshot {
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

.cs-study .cs-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-white);
  border-radius: 28px;
  box-shadow: var(--cs-shadow);
  overflow: hidden;
}

.cs-study .cs-snap {
  padding: 28px 32px;
  border-right: 1px solid var(--cs-line);
}

.cs-study .cs-snap:last-child {
  border-right: 0;
}

.cs-study .cs-snap label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-blue);
  margin-bottom: 10px;
}

.cs-study .cs-snap p {
  margin: 0;
  color: var(--cs-navy);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.cs-study .cs-section {
  padding: 72px 0 0;
}

.cs-study .cs-section-tight {
  padding-top: 48px;
}

.cs-study .cs-section-head {
  max-width: 720px;
  margin-bottom: 0;
}

.cs-study .cs-section-head-wide {
  margin-bottom: 42px;
}

.cs-study .cs-section-head h2,
.cs-study .cs-solution h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  color: var(--cs-navy);
}

.cs-study .cs-section-head-wide p,
.cs-study .cs-section-head > p:not(.cs-kicker) {
  margin-top: 16px;
  font-size: 18px;
  color: var(--cs-ink-soft);
}

.cs-study .cs-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-blue);
}

.cs-study .cs-kicker-on-dark {
  color: var(--cs-cyan-glow);
}

.cs-study .cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cs-study .cs-prose {
  margin-top: 24px;
}

.cs-study .cs-prose p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cs-ink-soft);
}

.cs-study .cs-prose p + p {
  margin-top: 18px;
}

.cs-study .cs-callout {
  background: var(--color-white);
  border-radius: var(--cs-radius);
  padding: 28px;
  box-shadow: var(--cs-shadow);
  border: 1px solid var(--cs-line);
}

.cs-study .cs-callout h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--cs-navy);
}

.cs-study .cs-callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cs-ink-soft);
}

.cs-study .cs-callout p + p {
  margin-top: 16px;
}

.cs-study .cs-callout-dark {
  background: var(--cs-navy);
  border: 0;
  color: var(--color-white);
}

.cs-study .cs-callout-dark h3 {
  color: var(--color-white);
}

.cs-study .cs-callout-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.cs-study .cs-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.cs-study .cs-stat b {
  font-size: 52px;
  letter-spacing: -0.05em;
  color: var(--cs-navy);
  line-height: 1;
}

.cs-study .cs-stat span {
  color: var(--cs-ink-soft);
  max-width: 22ch;
  font-size: 14px;
}

.cs-study .cs-panel {
  background: var(--cs-navy);
  color: var(--color-white);
  border-radius: 32px;
  padding: 48px;
}

.cs-study .cs-panel h2 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--color-white);
}

.cs-study .cs-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.6;
}

.cs-study .cs-diag-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-bottom: 36px;
}

.cs-study .cs-drop {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
}

.cs-study .cs-drop-num {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--cs-yellow);
  line-height: 1;
}

.cs-study .cs-drop small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.cs-study .cs-q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cs-study .cs-q {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.cs-study .cs-q b {
  display: block;
  color: var(--cs-cyan-glow);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cs-study .cs-quote-band {
  padding-top: 64px;
  padding-bottom: 8px;
}

.cs-study .cs-quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cs-study .cs-quote p {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.25;
  color: var(--cs-navy);
  font-weight: 500;
}

.cs-study .cs-quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-ink-muted);
  font-weight: 600;
}

.cs-study .cs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cs-study .cs-card {
  background: var(--color-white);
  border: 1px solid var(--cs-line);
  border-radius: 22px;
  padding: 28px;
  min-height: 220px;
}

.cs-study .cs-idx {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cs-ice);
  color: var(--cs-blue);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}

.cs-study .cs-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--cs-navy);
}

.cs-study .cs-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cs-ink-soft);
}

.cs-study .cs-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--cs-line);
}

.cs-study .cs-step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--cs-line);
  align-items: start;
}

.cs-study .cs-step-no {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-cyan);
  padding-top: 6px;
}

.cs-study .cs-step h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--cs-navy);
}

.cs-study .cs-step p {
  margin: 0;
  font-size: 17px;
  max-width: 70ch;
  color: var(--cs-ink-soft);
}

.cs-study .cs-solution {
  margin-top: 72px;
  padding: 56px 40px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--cs-mist), var(--cs-paper));
}

.cs-study .cs-solution-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.cs-study .cs-solution-visual {
  display: grid;
  gap: 16px;
}

.cs-study .cs-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--color-white);
  padding: 28px;
  box-shadow: var(--cs-shadow);
}

.cs-study .cs-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.cs-study .cs-layer {
  background: var(--color-white);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--cs-shadow);
  display: grid;
  gap: 12px;
}

.cs-study .cs-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--cs-line);
  font-weight: 500;
  color: var(--cs-navy);
}

.cs-study .cs-layer-row span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-ink-muted);
}

.cs-study .cs-layer-row:nth-child(1) {
  background: var(--cs-navy);
  color: var(--color-white);
  border-color: transparent;
}

.cs-study .cs-layer-row:nth-child(1) span {
  color: var(--cs-cyan-glow);
}

.cs-study .cs-layer-row:nth-child(2) {
  background: var(--cs-ice);
}

.cs-study .cs-layer-row:nth-child(3) {
  background: var(--cs-mint);
}

.cs-study .cs-layer-row:nth-child(4) {
  background: var(--color-surface);
}

.cs-study .cs-cta {
  padding: 48px 0 12px;
}

.cs-study .cs-cta-box {
  background: var(--cs-navy-deep);
  color: var(--color-white);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 32px;
  align-items: center;
}

.cs-study .cs-cta-box h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  margin: 10px 0 14px;
  color: var(--color-white);
}

.cs-study .cs-cta-box p:not(.cs-eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.55;
}

.cs-study .cs-cta-actions {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  .cs-study .cs-hero {
    padding: 48px 22px 64px;
  }

  .cs-study .cs-hero-grid,
  .cs-study .cs-snapshot-grid,
  .cs-study .cs-split,
  .cs-study .cs-diag-top,
  .cs-study .cs-q-grid,
  .cs-study .cs-cards,
  .cs-study .cs-solution-grid,
  .cs-study .cs-cta-box {
    grid-template-columns: 1fr;
  }

  .cs-study .cs-snap {
    border-right: 0;
    border-bottom: 1px solid var(--cs-line);
  }

  .cs-study .cs-snap:last-child {
    border-bottom: 0;
  }

  .cs-study .cs-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cs-study .cs-panel,
  .cs-study .cs-cta-box {
    padding: 28px 22px;
  }

  .cs-study .cs-solution {
    margin-top: 48px;
    padding: 36px 20px;
  }

  .cs-study .cs-section,
  .cs-study .cs-section-tight {
    padding-top: 48px;
  }

  .cs-study .cs-hero-actions > a,
  .cs-study .cs-cta-actions > a {
    width: 100%;
  }

  .cs-study .cs-stat b {
    font-size: 40px;
  }

  .cs-study .cs-drop-num {
    font-size: 36px;
  }

  .cs-study .cs-layer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ------------------------------------------------------------------ */
/* Connected Finance visual restoration                               */
/* ------------------------------------------------------------------ */

.hero-mark {
  display: none;
}

.hero-card {
  box-shadow: 0 24px 60px rgba(11, 59, 90, 0.22);
}

.hero-inner {
  padding: 88px 24px 56px;
}

.problem-band .position-callout {
  margin-top: 28px;
}

.decisions-grid.is-pillars .decisions-card {
  border: 0;
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(31, 62, 74, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.decisions-grid.is-pillars .decisions-card:nth-child(1) { background: var(--color-card); }
.decisions-grid.is-pillars .decisions-card:nth-child(2) { background: #d9eaf6; }
.decisions-grid.is-pillars .decisions-card:nth-child(3) { background: #e6f7fa; }
.decisions-grid.is-pillars .decisions-card:nth-child(4) { background: var(--color-green-soft); }

.decisions-grid.is-pillars .decisions-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(31, 62, 74, 0.14);
}

.pillar-list {
  margin: 16px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-ink-soft);
}

.step-grid.home-steps .step-card {
  border: 0;
  box-shadow: 0 12px 32px rgba(31, 62, 74, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step-grid.home-steps .step-card:nth-child(1) { background: var(--color-card); }
.step-grid.home-steps .step-card:nth-child(2) { background: #d9eaf6; }
.step-grid.home-steps .step-card:nth-child(3) { background: var(--color-green-soft); }

.step-grid.home-steps .step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 62, 74, 0.12);
}

.outcome-card {
  box-shadow: 0 12px 32px rgba(31, 62, 74, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.outcome-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(31, 62, 74, 0.14);
}

.connect-head {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
}

.connect-head h2,
.connect-band .connect-head h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  line-height: 1.18;
}

.connect-h2-main,
.connect-h2-sub {
  display: block;
}

.connect-h2-sub {
  color: var(--color-primary);
  font-weight: 500;
}

.connect-band .connect-lead {
  margin: 0 auto;
  max-width: 720px;
}

.connect-board {
  display: grid;
  gap: 20px;
  text-align: left;
}

.connect-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px 22px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 12px 32px rgba(31, 62, 74, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.connect-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 62, 74, 0.12);
}

.connect-card.is-erp {
  padding: 32px 32px 28px;
  background: #d9eaf6;
}

.connect-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.connect-card-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.connect-card-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.connect-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  overflow-wrap: break-word;
}

.connect-card .connect-list {
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
}

.connect-card .connect-list li {
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(31, 62, 74, 0.05);
}

.connect-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.connect-cats .connect-card:nth-child(1) { background: var(--color-surface-alt); }
.connect-cats .connect-card:nth-child(2) { background: #e6f7fa; }
.connect-cats .connect-card:nth-child(3) { background: var(--color-ice); }
.connect-cats .connect-card:nth-child(4) { background: var(--color-green-soft); }
.connect-cats .connect-card:nth-child(5) { background: var(--color-lilac, #eee8f8); }

.connect-cats .connect-card:nth-child(1) .connect-card-icon { background: var(--color-accent); }
.connect-cats .connect-card:nth-child(2) .connect-card-icon { background: var(--color-cyan); }
.connect-cats .connect-card:nth-child(3) .connect-card-icon { background: var(--color-sky); }
.connect-cats .connect-card:nth-child(4) .connect-card-icon { background: var(--color-green); }
.connect-cats .connect-card:nth-child(5) .connect-card-icon { background: var(--color-primary); }

.kpi-heading {
  margin: 0 auto 16px;
  max-width: 820px;
  text-align: center;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
}

.kpi-strip {
  align-items: stretch;
}

.kpi-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  min-height: 180px;
  height: 100%;
  padding: 28px 20px 24px;
  box-shadow: 0 10px 28px rgba(31, 62, 74, 0.08);
}

.kpi-tile strong {
  position: static;
  display: block;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  min-height: 2.4em;
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.kpi-tile p {
  position: static;
  display: block;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 48px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.kpi-tile.is-poc {
  background: #0b3b5a;
}

.kpi-tile.is-poc strong,
.kpi-tile:nth-child(4).is-poc strong,
.kpi-tile.is-poc p {
  color: var(--color-white);
}

.page-anchors {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(31, 62, 74, 0.08);
  backdrop-filter: blur(10px);
}

.page-anchors a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-anchors a.is-active,
.page-anchors a:hover {
  background: var(--color-ice);
  color: var(--color-accent);
}

.platform-stat-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-stat {
  box-shadow: 0 12px 32px rgba(31, 62, 74, 0.08);
}

.friction-band {
  margin: 10px 0 40px;
}

.friction-band h2 {
  margin: 0 auto 16px;
  max-width: 820px;
  text-align: center;
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
}

.friction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.friction-card {
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 12px 32px rgba(31, 62, 74, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.friction-card:nth-child(1) { background: var(--color-card); }
.friction-card:nth-child(2) { background: #d9eaf6; }
.friction-card:nth-child(3) { background: #e6f7fa; }
.friction-card:nth-child(4) { background: var(--color-ice); }
.friction-card:nth-child(5) { background: var(--color-green-soft); }
.friction-card:nth-child(6) { background: var(--color-lilac, #eee8f8); }

.friction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 62, 74, 0.12);
}

.friction-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.friction-cost {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 62, 74, 0.1);
  font-size: 15px;
  line-height: 24px;
}

.arch-diagram {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 28px auto;
  text-align: center;
}

.arch-row {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--color-white);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(31, 62, 74, 0.06);
}

.arch-row.arch-out {
  background: #0b3b5a;
  color: var(--color-white);
}

.arch-layers {
  display: grid;
  gap: 8px;
}

.arch-layers span {
  display: block;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  box-shadow: 0 8px 20px rgba(31, 62, 74, 0.08);
}

.arch-layers span:nth-child(1) { background: #d9eaf6; }
.arch-layers span:nth-child(2) { background: #e6f7fa; }
.arch-layers span:nth-child(3) { background: var(--color-ice); }
.arch-layers span:nth-child(4) { background: var(--color-green-soft); }

.cap-pillar {
  margin: 0 0 48px;
  padding: 28px 12px 8px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(217, 234, 246, 0.35), transparent 48px);
}

.cap-pillar > h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line);
}

.cap-kicker {
  margin: 0 auto 16px;
  max-width: 720px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
}

.cap-grid .cap-card {
  border: 0;
  box-shadow: 0 12px 32px rgba(31, 62, 74, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cap-grid .cap-card:nth-child(odd) { background: var(--color-white); }
.cap-grid .cap-card:nth-child(even) { background: #eef6fb; }

.cap-grid .cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 62, 74, 0.12);
}

.cap-outcome {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 113, 193, 0.08);
  font-size: 15px;
  line-height: 24px;
}

.platform-cta-card p {
  margin: 12px auto 0;
  max-width: 680px;
  color: var(--color-white);
}

.quote-band {
  box-shadow: 0 16px 40px rgba(31, 62, 74, 0.08);
}

.partner-tiles li {
  background: var(--color-white);
  box-shadow: 0 8px 20px rgba(31, 62, 74, 0.06);
}

@media (max-width: 991.98px) {
  .decisions-grid.is-pillars,
  .friction-grid,
  .connect-cats,
  .platform-stat-grid.is-four {
    grid-template-columns: 1fr 1fr;
  }

  .connect-card.is-erp {
    padding: 26px 22px 22px;
  }

  .connect-cats .connect-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .page-anchors {
    top: 72px;
    border-radius: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .page-anchors a {
    flex: 0 0 auto;
  }
}

@media (max-width: 575.98px) {
  .friction-grid,
  .connect-cats,
  .platform-stat-grid.is-four {
    grid-template-columns: 1fr;
  }

  .connect-cats .connect-card:nth-child(5) {
    grid-column: auto;
  }

  .connect-head h2,
  .connect-band .connect-head h2 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .kpi-tile {
    min-height: 0;
  }

  .kpi-tile strong,
  .kpi-tile p {
    min-height: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Homepage follow-up: rhythm, 4-col cases, KPI stack                 */
/* ------------------------------------------------------------------ */

@media (min-width: 1200px) {
  .quote-band h2 {
    white-space: nowrap;
    max-width: none;
    font-size: clamp(22px, 2vw, 36px);
    line-height: 1.25;
  }
}

@media (max-width: 1199.98px) {
  .quote-band h2 {
    white-space: normal;
  }
}

.outcomes-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.connect-band,
.industry-band,
.faq-band,
.usecase-steps {
  margin-top: 24px;
  margin-bottom: 56px;
}

.connect-band {
  margin-top: 48px;
  margin-bottom: 72px;
  padding: 12px 0 8px;
}

.connect-band h2,
.industry-band h2,
.faq-band h2,
.usecase-steps h2 {
  margin-bottom: 28px;
}

@media (min-width: 1200px) {
  .connect-head h2,
  .connect-band .connect-head h2 {
    font-size: clamp(32px, 2.6vw, 42px);
  }

  .connect-cats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-card,
  .connect-list li {
    transition: none;
  }

  .connect-card:hover,
  .connect-list li:hover {
    transform: none;
  }
}

.kpi-tile,
.kpi-block .kpi-tile,
.platform-page .kpi-tile {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: visible;
}

.kpi-tile strong,
.kpi-tile p {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  float: none !important;
}

@media (min-width: 1100px) {
  .problem-band h2 {
    white-space: nowrap;
    max-width: none;
    font-size: clamp(22px, 2.2vw, 40px);
    line-height: 1.25;
  }
}

@media (max-width: 1099.98px) {
  .problem-band h2 {
    white-space: normal;
  }
}

@media (max-width: 1199.98px) {
  .outcomes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .outcomes-actions .btn-dark,
  .quote-actions .btn-dark {
    width: 100%;
  }

  .trust-bar,
  .report-band {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ------------------------------------------------------------------ */
/* Homepage hero H1: two lines; line 2 stays on one line on desktop   */
/* ------------------------------------------------------------------ */

.hero-h1-line2 {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-inner h1 {
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.18;
    white-space: nowrap;
  }

  .hero-h1-line2 {
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .hero-inner h1,
  .hero-h1-line2 {
    white-space: normal;
  }
}

/* Restore by removing is-temporarily-hidden + hidden from the markup. */
.is-temporarily-hidden {
  display: none !important;
}
