/* NEXO CPMS — cpms.app. Tokens follow the NEXO theme (projects/integrations/app/web/src/styles/themes/nexo.scss). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --primary: #0C54A4;
  --primary-container: #E6EFFA;
  --navy: #062649;
  --volt: #C8F04A;
  --on-volt: #0E1A2B;
  --ink: #0E1A2B;
  --muted: #5D5E63;
  --bg: #F6F6F9;
  --surface: #FFFFFF;
  --outline: #DDDEE4;
  --on-navy: #F6F7F4;
  --on-navy-muted: #AFC0D6;
  --on-navy-line: rgba(246, 247, 244, 0.16);
  --nexo-logo-ink: #0E1A2B;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --section-space: clamp(64px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3D8AE0;
    --primary-container: #0B1F3A;
    --navy: #020D1B;
    --ink: #EEEEF1;
    --muted: #B2B3B8;
    --bg: #121315;
    --surface: #1C1D1F;
    --outline: #34353A;
    --nexo-logo-ink: #F6F7F4;
  }
}

/* Navy surfaces: header, hero, contact band, footer */
.site-header,
.section--navy,
.site-footer {
  --nexo-logo-ink: var(--on-navy);
  --eyebrow: var(--volt);
  background: var(--navy);
  color: var(--on-navy);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.section--navy a:not(.btn),
.site-footer a {
  color: var(--on-navy);
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--volt);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--volt);
  color: var(--on-volt);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--on-navy-line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-navy);
  text-decoration: none;
}

.brand__logo {
  flex: none;
  width: auto;
  height: 30px;
  aspect-ratio: 399 / 112;
}

.brand__by {
  padding-left: 10px;
  border-left: 1px solid var(--on-navy-line);
  color: var(--on-navy-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-ink {
  fill: var(--nexo-logo-ink);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul,
.site-menu ul {
  list-style: none;
}

.site-nav__links {
  display: flex;
  gap: 28px;
}

.site-nav a,
.site-menu a:not(.btn) {
  color: var(--on-navy);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-menu a:not(.btn):hover {
  color: var(--volt);
}

.site-menu {
  display: none;
  margin-left: auto;
}

.site-menu summary {
  padding: 8px 14px;
  border: 1px solid var(--on-navy-line);
  border-radius: var(--radius-md);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu[open] summary {
  border-color: var(--volt);
}

.site-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--on-navy-line);
  background: var(--navy);
}

.site-menu__panel li {
  border-bottom: 1px solid var(--on-navy-line);
}

.site-menu__panel li a:not(.btn) {
  display: block;
  padding: 14px 0;
  font-size: 1.0625rem;
}

.site-menu__panel li:last-child {
  padding-top: 20px;
  border-bottom: 0;
}

@media (max-width: 899px) {
  .site-header .site-nav,
  .site-header .site-header__cta {
    display: none;
  }

  .site-menu {
    display: block;
  }
}

@media (max-width: 420px) {
  .brand__by {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--volt {
  background: var(--volt);
  color: var(--on-volt);
}

.btn--volt:hover {
  background: #D7F57A;
}

.btn--ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--primary);
}

.section--navy .btn--ghost {
  border-color: var(--on-navy-line);
  color: var(--on-navy);
}

.btn--ghost:hover {
  border-color: var(--volt);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-space) 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.section__head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 48px;
}

.eyebrow {
  color: var(--eyebrow, var(--primary));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.section--navy .lead {
  color: var(--on-navy-muted);
}

.muted {
  color: var(--muted);
}

.section--navy .muted {
  color: var(--on-navy-muted);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 9vw, 112px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 138, 224, 0.35), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 860px;
}

.hero .lead {
  max-width: 680px;
}

.hero .btn-row {
  margin-top: 8px;
}

/* ---------- Stats ---------- */

.hero .stats {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 88px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--on-navy-line);
}

.stat {
  display: grid;
  gap: 4px;
  padding: 28px 16px 28px 0;
}

.stat__value {
  color: var(--volt);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label {
  color: var(--on-navy-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.section--alt .card {
  background: var(--bg);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__num {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-container);
  color: var(--primary);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card p {
  color: var(--muted);
}

.card ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.card li::marker {
  color: var(--primary);
}

/* ---------- Flow diagram ---------- */

.flow {
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.flow svg {
  width: 100%;
  height: auto;
  font-family: var(--font);
}

.flow__wide {
  display: none;
}

@media (min-width: 900px) {
  .flow__wide {
    display: block;
  }

  .flow__narrow {
    display: none;
  }
}

.flow .box {
  fill: var(--bg);
  stroke: var(--outline);
  stroke-width: 1.5;
}

.flow .box--core {
  fill: var(--navy);
  stroke: var(--navy);
}

.flow .box--accent {
  fill: var(--primary-container);
  stroke: var(--primary);
}

.flow .title {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.flow .text {
  fill: var(--muted);
  font-size: 13px;
}

.flow .box--core + .title,
.flow .on-core {
  fill: var(--on-navy);
}

.flow .on-core-muted {
  fill: var(--on-navy-muted);
}

/* The stacked chart is shown up to 900px wide; capped so it doesn't scale up on large phones and tablets */
.flow__narrow {
  max-width: 280px;
  margin-inline: auto;
}

.flow__narrow .title {
  font-size: 21px;
}

.flow__narrow .text {
  font-size: 16px;
}

.flow__narrow .wire-label {
  font-size: 14px;
}

.flow .wire {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
}

.flow .wire-label {
  fill: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.flow .arrow {
  fill: var(--primary);
}

.flow .volt {
  fill: var(--volt);
}

/* ---------- Split, chips ---------- */

.split {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}

.chip span {
  color: var(--muted);
  font-weight: 400;
}

.chip--soft {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

.group {
  display: grid;
  gap: 16px;
}

.group + .group {
  margin-top: 40px;
}

.checklist {
  display: grid;
  gap: 12px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}

.section--navy .checklist li::before {
  border-color: var(--volt);
}

/* ---------- Contact band ---------- */

.contact {
  display: grid;
  gap: 32px;
  align-items: end;
}

.contact__text {
  display: grid;
  gap: 16px;
  max-width: 680px;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------- Legal pages ---------- */

.page-head {
  padding: clamp(48px, 8vw, 88px) 0 32px;
  border-bottom: 1px solid var(--outline);
}

.page-head .container {
  display: grid;
  gap: 16px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose {
  max-width: 72ch;
  padding: 48px 0 var(--section-space);
}

.prose h2 {
  margin: 48px 0 16px;
  font-size: 1.5rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 28px 0 10px;
}

.prose p,
.prose ul,
.prose table {
  margin: 0 0 16px;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--primary);
}

.prose code {
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--primary-container);
  font-size: 0.875em;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--outline);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 600;
}

.callout {
  margin: 0 0 16px;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--primary-container);
}

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

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--on-navy-line);
}

.site-footer__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer__brand .brand__logo {
  height: 28px;
}

.site-footer__title {
  margin-bottom: 14px;
  color: var(--volt);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--volt);
}

.site-footer__muted {
  color: var(--on-navy-muted);
  font-size: 0.9375rem;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--on-navy-line);
  color: var(--on-navy-muted);
  font-size: 0.875rem;
}

/* ---------- Not found ---------- */

.not-found {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding-top: clamp(80px, 14vw, 160px);
  padding-bottom: clamp(80px, 14vw, 160px);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
