/* ==========================================================================
   SOFTDATOR next — final consistency layer (loaded last). Fixes from the
   independent design review: one button system, one heading scale, contrast,
   responsive fixes on the home page. Keep this file small and global.
   ========================================================================== */

/* ---- contrast: muted text and green text dark enough to read ---- */
:root { --muted: #627585; --green-text: #5e8a1e; }
.nx-accent-green, h3.nx-accent-green { color: var(--green-text) !important; }

/* ---- one button system: pill, 52px, Gotham Bold 13.5px, uppercase, tracked ---- */
body.nx .nx-btn, body.nx .quote,
body.nx .nx-form-card button[type=submit], body.nx .nx-form-card input[type=submit],
body.nx .nx-form-card .btn:not(.btn-link), body.nx .nx-newsletter .btn,
body.nx #book-free-demo button, body.nx #request-demo-box button, body.nx form .btn-primary {
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0;
  font-family: "GothamProBold", sans-serif !important; font-size: 13.5px !important; font-weight: normal !important;
  letter-spacing: .08em !important; text-transform: uppercase !important; line-height: 1 !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
}
body.nx .nx-header .quote { min-height: 46px; padding: 0 24px; font-size: 12.5px !important; }
body.nx .nx-newsletter .btn { width: 100%; }
body.nx .nx-btn .nx-arrow { font-family: "GothamProRegular", sans-serif; letter-spacing: 0; font-size: 16px; }

/* ---- one heading scale for section headings (cards / sidebars keep their own) ---- */
body.nx .nx-head h2, body.nx .nx-split > div > h2, body.nx .nx-cta-band h2, body.nx .nx-section > .nx-container > h2 {
  font-size: clamp(28px, 3vw, 40px) !important; line-height: 1.15 !important; letter-spacing: -.015em !important; text-transform: none !important;
}
body.nx .nx-page-hero h1 { font-size: clamp(32px, 3.6vw, 50px); text-wrap: balance; }
body.nx h1, body.nx h2, body.nx h3 { text-wrap: balance; }
body.nx p { text-wrap: pretty; }

/* ---- home hero: no orphan word at 1920, floating cards stay inside the container ---- */
.nx-hero h1 { text-wrap: balance; max-width: 640px; }
@media (min-width: 1400px) { .nx-hero .nx-container { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.nx-float--b { right: 0 !important; }
.nx-float--a { left: -12px !important; }

/* ---- home dashboard KPI panel: readable at every width ---- */
#demo-panel-network .panel-body .row { margin-left: 0; margin-right: 0; }
#demo-panel-network .fat-font, #demo-panel-network .media-heading { white-space: nowrap; }
@media (max-width: 1100px) {
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child > [class*="col-xs-"] { width: 50%; }
  #demo-panel-network .row.font-12 > .col-xs-6 { width: 100%; }
}
@media (max-width: 600px) {
  #demo-panel-network .panel-body { padding: 16px; }
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child > [class*="col-xs-"] { width: 50%; padding: 0 6px; }
  #demo-panel-network .media-left { display: none; }
  #demo-panel-network p { font-size: 13px; }
}
/* fleet progress card: spread the three bars over the card height instead of leaving a gap */
#fleet-progress-section { display: flex; flex-direction: column; }
#fleet-progress-section .dashboard-panel-content { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding-top: 12px; }
#fleet-progress-section .pad-ver-small { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
#fleet-progress-section .pad-ver-small .text-lg { grid-column: 1 / -1; }
#fleet-progress-section .pad-ver-small .progress { margin: 0; }
#fleet-progress-section .pad-ver-small small { font-family: "GothamProMedium", sans-serif; color: var(--ink-2); }

/* ---- home contact on phones: nothing clipped ---- */
.nx-split > * { min-width: 0; }
@media (max-width: 640px) {
  .nx-form-card { padding: 24px 18px; }
  .nx-form-card .g-recaptcha { transform: scale(.92); transform-origin: 0 0; }
}

/* ---- platforms banner: never wider than the picture itself (1024 px) ---- */
.nx-platforms { max-width: 1024px; margin-left: auto; margin-right: auto; }

/* ---- footer details ---- */
.nx-badges a[href*="ariba"] img { height: 32px; width: 32px; border-radius: 6px; }

/* hero product frame: flat (3D tilt rasterised the screenshot and made its text soft) */
.nx-hero__visual .nx-browser, .nx-hero__visual:hover .nx-browser { transform: none !important; }
.nx-hero__visual .nx-browser { box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }

/* home product tour: the four original icon pictures in one consistent style (white silhouettes on brand tiles) */
.nx-tour__tab .nx-icon { background: var(--grad); box-shadow: 0 10px 22px rgba(46, 121, 154, .28); }
.nx-tour__tab .nx-icon.nx-icon--green { background: linear-gradient(135deg, #8fbf45, #6c9a27); box-shadow: 0 10px 22px rgba(108, 154, 39, .3); }
.nx-tour__tab .nx-icon img { filter: brightness(0) invert(1); width: 28px; height: 28px; }
.nx-tour__tab:not(.is-active) .nx-icon { opacity: .75; }

/* KPI panel on phones: label left, value right, never clipped */
@media (max-width: 600px) {
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child > .col-xs-5 { width: 62%; }
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child > .col-xs-3 { width: 38%; }
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child > .col-xs-2 { width: 62%; }
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child > .col-xs-2 + .col-xs-2 { width: 38%; }
  #demo-panel-network .row-as-table { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
  #demo-panel-network .row-as-table > [class*="col-"] { width: auto; padding: 0; float: none; }
  #demo-panel-network .row-as-table p { margin-bottom: 8px; }
  #demo-panel-network .row.font-12 > .col-xs-6 { padding: 0 6px; }
}
/* phones: the WhatsApp button owns the bottom corner; no back-to-top button */
@media (max-width: 640px) { .nx-totop { display: none; } }
@media (max-width: 600px) {
  #demo-panel-network .media, #demo-panel-network .media-body { display: block; width: 100%; overflow: visible; text-align: left; }
  #demo-panel-network .row-as-table { width: 100%; }
  #demo-panel-network .row-as-table > [class*="col-"]:last-child { text-align: right; }
  #demo-panel-network .font-10, #demo-panel-network .font-10 > div { padding-left: 6px; }
}
/* Bootstrap's .row clearfix pseudo-elements become flex/grid items when a .row is made flex: remove them */
#demo-panel-network .row-as-table::before, #demo-panel-network .row-as-table::after { display: none; }
@media (max-width: 600px) { #demo-panel-network .row.font-12 { margin: 0; } }
@media (max-width: 600px) {
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child > .col-xs-3,
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child > .col-xs-2 + .col-xs-2 { text-align: right; }
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:first-child .media-body { display: block; width: 100%; }
  #demo-panel-network .panel-body > .row > .col-lg-12 > .row:nth-child(2) > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
  #demo-panel-network .font-10 > div, #demo-panel-network .font-10 { padding-left: 0; }
}
