/* ==========================================================================
   Southern Cortex: style.css
   1. Design tokens   2. Base   3. Layout   4. Typography   5. Buttons & links
   6. Header / nav    7. Logo   8. Product UI   9. Sections   10. Forms
   11. Footer         12. Motion
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
@font-face { font-family: "Geist"; src: url("../assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Brand colours: official Southern Cortex logo-kit values */
  --color-navy: #0C1E3A;
  --color-navy-deep: #071324;
  --color-navy-soft: #142a4c;
  --color-navy-mid: #213d67;
  --color-cyan: #57C4EF;
  --color-cyan-deep: #0a71a6;        /* accessible cyan for text on white */
  --color-yellow: #FEC248;
  --color-coral: #F4818E;
  --color-coral-deep: #c2394d;
  --color-white: #ffffff;
  --color-surface: #f5f7fa;
  --color-text: #0C1E3A;
  --color-body: #4b5a74;
  --color-muted: #5d6a83;
  --color-line: #e2e8f0;

  /* Status tints (product UI) */
  --tint-cyan-bg: #e3f4fc;   --tint-cyan-fg: #0a5f8a;
  --tint-yellow-bg: #fff2d3; --tint-yellow-fg: #7a4f00;
  --tint-coral-bg: #fde6ea;  --tint-coral-fg: #a52f42;
  --tint-grey-bg: #eef1f6;   --tint-grey-fg: #4b5a74;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-brand: "Montserrat", "Geist", sans-serif;

  --container-width: 1240px;
  --gutter: clamp(20px, 5vw, 40px);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-soft: 0 1px 2px rgb(12 30 58 / 0.05), 0 8px 24px -8px rgb(12 30 58 / 0.12);
  --shadow-lift: 0 2px 4px rgb(12 30 58 / 0.06), 0 24px 48px -16px rgb(12 30 58 / 0.22);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --section-y: clamp(72px, 10vw, 128px);

  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--color-white); color: var(--color-body);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgb(87 196 239 / 0.35); }
:focus-visible { outline: 2px solid var(--color-cyan-deep); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--color-cyan); }
main:focus { outline: none; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 200; transform: translateY(-200%);
  background: var(--color-navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container-width); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section--surface { background: var(--color-surface); }
.section--ruled { border-top: 1px solid var(--color-line); }
.section--dark { background: var(--color-navy); color: rgb(255 255 255 / 0.75); }
.section--dark h2, .section--dark h3 { color: #fff; }

.split { display: grid; gap: var(--space-lg); align-items: start; }
.split--center { align-items: center; }
.stack > * + * { margin-top: var(--space-sm); }

@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.5rem; }
  /* c{n} = span n columns; s{n} = also start at column n+1 (pair with a c-class) */
  .c3 { --span: 3; } .c4 { --span: 4; } .c5 { --span: 5; } .c6 { --span: 6; } .c7 { --span: 7; } .c8 { --span: 8; } .c9 { --span: 9; }
  .c3, .c4, .c5, .c6, .c7, .c8, .c9 { grid-column: span var(--span); }
  .s5 { grid-column: 6 / span var(--span); } .s6 { grid-column: 7 / span var(--span); }
  .s7 { grid-column: 8 / span var(--span); } .s9 { grid-column: 9 / span var(--span); }
  .split--wide-gap { column-gap: 4rem; }
  .split > .lg-first { order: -1; }
}
.split > *, .hero__grid > *, .contact-grid > *, .solutions-layout > *, .showcase > *, .site-footer__grid > *, .ui-grid > *, .duo > *, .app__body > * { min-width: 0; }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 { color: var(--color-text); letter-spacing: -0.028em; text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted);
}
.eyebrow--dark { color: rgb(255 255 255 / 0.62); }
.eyebrow[data-dot]::before { content: ""; width: 20px; height: 5px; border-radius: 999px; background: var(--color-cyan); flex: none; }
.eyebrow[data-dot="yellow"]::before { background: var(--color-yellow); }
.eyebrow[data-dot="coral"]::before { background: var(--color-coral); }
.display:first-child, .h2:first-child { margin-top: 0; }
.eyebrow a { transition: color .2s; }
.eyebrow a:hover { color: var(--color-navy); }
.display { font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.25rem); line-height: 1.03; letter-spacing: -0.035em; margin-top: 1.25rem; }
.display--hero { font-size: clamp(2.15rem, 1.35rem + 2.6vw, 3.5rem); line-height: 1.05; }
.h2 { font-size: clamp(1.85rem, 1.25rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; margin-top: 1.25rem; }
.h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.22; }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; margin-top: 1.25rem; max-width: 42rem; }
.body-copy { font-size: 1rem; line-height: 1.65; }
.small-note { font-size: 12px; color: var(--color-muted); margin-top: 0.9rem; }
.mono { font-family: var(--font-mono); }
.section--dark .lead { color: rgb(255 255 255 / 0.72); }

.rule-list > li { border-top: 1px solid var(--color-line); }
.rule-list > li:last-child { border-bottom: 1px solid var(--color-line); }

/* ---------- 5. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-size: 15px; font-weight: 500;
  line-height: 1; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--color-navy); color: #fff; }
.btn--primary:hover { background: var(--color-navy-mid); }
.btn--secondary { background: #fff; color: var(--color-navy); border-color: var(--color-line); }
.btn--secondary:hover { background: var(--color-surface); border-color: rgb(12 30 58 / 0.4); }
.btn--light { background: #fff; color: var(--color-navy); }
.btn--light:hover { background: var(--color-cyan); }
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 2.25rem; }
@media (min-width: 480px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--color-cyan-deep); min-height: 44px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header[data-scrolled] { border-color: var(--color-line); background: rgb(255 255 255 / 0.94); backdrop-filter: blur(10px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.site-header__brand { padding: 8px 0; margin: -8px 0; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  position: relative; display: block; padding: 8px 12px; border-radius: 6px; font-size: 15px; color: var(--color-body);
  transition: color .2s;
}
.site-nav a:hover { color: var(--color-navy); }
.site-nav a[aria-current="page"], .site-nav a.active { color: var(--color-navy); font-weight: 500; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 3px; border-radius: 999px; background: var(--color-cyan);
}
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__cta { display: none; }
.menu-toggle { width: 44px; height: 44px; margin-right: -10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--color-navy); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; background: #fff; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; padding-block: 16px 32px; }
.mobile-menu li { border-bottom: 1px solid var(--color-line); }
.mobile-menu li a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-size: 1.6rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--color-navy-mid);
}
.mobile-menu li a[aria-current="page"] { color: var(--color-navy); }
.mobile-menu li a[aria-current="page"]::after { content: ""; width: 24px; height: 5px; border-radius: 999px; background: var(--color-cyan); }
.mobile-menu__actions { margin-top: auto; padding-top: 40px; display: grid; gap: 12px; }
.mobile-menu__actions .btn { min-height: 52px; }

@media (min-width: 480px) { .site-header__cta { display: inline-flex; } .menu-toggle { margin-left: 8px; } }
@media (min-width: 768px) { .site-header__inner { height: 72px; } :root { --header-h: 72px; } }
@media (min-width: 1024px) {
  .site-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .site-header__cta { display: inline-flex; }
}

/* ---------- 7. Logo (official Southern Cortex logo files, used unmodified) ---------- */
.site-header__brand img { display: block; height: 40px; width: auto; }
.site-footer__about img { display: block; height: 64px; width: auto; }
@media (min-width: 768px) { .site-header__brand img { height: 46px; } }
.symbol { display: block; flex: none; height: var(--sym-h, 14px); width: auto; }

/* ---------- 8. Product UI (illustrative demo data) ---------- */
.app { border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lift); overflow: hidden; }
.app__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--color-line); }
.app__name { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--color-navy); }
.app__by { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--color-muted); }
.app__badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); border: 1px solid var(--color-line); background: var(--color-surface); padding: 2px 10px; border-radius: 999px; }
.app__body { display: flex; flex-direction: column; }
.app__tabs { display: flex; gap: 2px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--color-line); scrollbar-width: none; }
.app__tabs::-webkit-scrollbar { display: none; }
.app__tab {
  position: relative; display: flex; align-items: center; gap: 8px; flex: none; min-height: 38px; padding: 0 12px; border-radius: 6px;
  font-size: 12.5px; color: var(--color-body); transition: background-color .2s, color .2s; white-space: nowrap;
}
.app__tab svg { width: 14px; height: 14px; }
.app__tab:hover { background: rgb(245 247 250 / 0.8); }
.app__tab[aria-selected="true"] { background: var(--color-surface); color: var(--color-navy); font-weight: 500; }
.app__panel { flex: 1; min-width: 0; background: var(--color-surface); padding: 14px; min-height: 300px; }
.app__panel:not([hidden]) { animation: panel-in .22s ease-out; }
@media (min-width: 768px) {
  .app__body { flex-direction: row; }
  .app__tabs { flex-direction: column; width: 148px; flex: none; overflow: visible; border-bottom: 0; border-right: 1px solid var(--color-line); }
  .app__tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 999px; background: var(--color-cyan); }
  .app__panel { min-height: 340px; }
}

.ui-stack > * + * { margin-top: 14px; }
.tile { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 14px; }
.tile--flush { padding: 0; overflow: hidden; }
.app--wide { max-width: 64rem; margin-inline: auto; }
.tile__title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.tile__title h4 { font-size: 13px; letter-spacing: -0.01em; }
.tile__title span { font-size: 11px; color: var(--color-muted); }
.ui-grid { display: grid; gap: 14px; }
.app__panel, .frame__inner { container-type: inline-size; }
@container (min-width: 500px) { .ui-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .ui-grid--5 > .span3 { grid-column: span 3; } .ui-grid--5 > .span2 { grid-column: span 2; } }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 640px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 12px 12px 12px 17px; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone, var(--color-cyan)); }
.kpi__label { font-size: 11px; line-height: 1.3; color: var(--color-muted); }
.kpi__value { margin-top: 6px; font-family: var(--font-mono); font-size: clamp(1rem, 0.85rem + 0.7vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; color: var(--color-navy); }
.kpi__trend { margin-top: 4px; font-size: 11px; color: var(--color-muted); }
.kpi__trend.up { color: var(--tint-cyan-fg); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 12px 12px 12px; }
.stat__label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-muted); line-height: 1.25; }
.stat__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--color-cyan)); flex: none; }
.stat__value { margin-top: 6px; font-family: var(--font-mono); font-size: clamp(1rem, 0.85rem + 0.7vw, 1.3rem); font-weight: 500; color: var(--color-navy); letter-spacing: -0.02em; }
.stat__sub { font-size: 11px; color: var(--color-muted); margin-top: 2px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: var(--chart-h, 168px); }
.chart__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.chart__val { text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--color-muted); margin-bottom: 4px; }
.chart__bar { border-radius: 3px 3px 0 0; background: rgb(87 196 239 / 0.45); transform-origin: bottom; animation: grow-y .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.chart__bar--now { background: var(--color-navy); }
.chart__label { text-align: center; font-size: 10px; color: var(--color-muted); margin-top: 6px; }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.pill--paid { background: var(--tint-cyan-bg); color: var(--tint-cyan-fg); }
.pill--due { background: var(--tint-yellow-bg); color: var(--tint-yellow-fg); }
.pill--overdue { background: var(--tint-coral-bg); color: var(--tint-coral-fg); }
.pill--draft { background: var(--tint-grey-bg); color: var(--tint-grey-fg); }
.pill--validated { background: var(--tint-coral-bg); color: var(--tint-coral-fg); }
.pill--approved { background: var(--tint-yellow-bg); color: var(--tint-yellow-fg); }
.pill--posted { background: var(--tint-cyan-bg); color: var(--tint-cyan-fg); }
.pill--settled { background: var(--color-navy); color: #fff; }

.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--color-line); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list strong { display: block; font-size: 12px; font-weight: 500; color: var(--color-navy); }
.mini-list small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--color-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--color-line); }
.chip { height: 30px; padding: 0 12px; border-radius: 6px; font-size: 12px; color: var(--color-body); transition: background-color .2s, color .2s; }
.chip:hover { background: var(--color-surface); }
.chip[aria-pressed="true"] { background: var(--color-navy); color: #fff; }
.dtable { font-size: 12px; text-align: left; }
.dtable th { padding: 8px 12px; font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.dtable td { padding: 10px 12px; border-top: 1px solid var(--color-line); vertical-align: middle; }
.dtable .num { text-align: right; font-family: var(--font-mono); color: var(--color-navy); }
.dtable .id { font-family: var(--font-mono); font-size: 11px; color: var(--color-muted); white-space: nowrap; }
.dtable .who { font-weight: 500; color: var(--color-navy); max-width: 9rem; }
.dtable .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtable .who small { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--color-muted); }
.dtable .col-wide { display: none; }
@media (min-width: 480px) { .dtable .col-wide { display: table-cell; } .dtable .who small { display: none; } }

.icon-row { display: flex; align-items: center; gap: 12px; }
.icon-row + .icon-row { border-top: 1px solid var(--color-line); }
.icon-row { padding: 10px 0; }
.icon-row__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: var(--tint-cyan-bg); color: var(--tint-cyan-fg); flex: none; }
.icon-row__icon svg { width: 14px; height: 14px; }
.icon-row__main { flex: 1; min-width: 0; }
.icon-row__main strong { display: block; font-size: 12px; font-weight: 500; color: var(--color-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-row__main small { font-size: 11px; color: var(--color-muted); }
.icon-row__amt { font-family: var(--font-mono); font-size: 12px; color: var(--color-navy); }

.avatar { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-navy); color: #fff; font-size: 11px; font-weight: 500; flex: none; }
.pick-list { border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.pick-list li + li { border-top: 1px solid var(--color-line); }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; transition: background-color .2s; }
.pick:hover { background: rgb(245 247 250 / 0.6); }
.pick[aria-pressed="true"] { background: var(--color-surface); }
.pick__name { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; color: var(--color-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__amt { font-family: var(--font-mono); font-size: 12px; color: var(--color-body); }
.kv { margin-top: 12px; font-size: 12px; }
.kv div { display: flex; justify-content: space-between; padding: 4px 0; }
.kv dt { color: var(--color-muted); } .kv dd { font-family: var(--font-mono); color: var(--color-navy); }

.ageing__track { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--color-surface); }
.ageing__seg { border-right: 2px solid #fff; animation: grow-x .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 100ms); }
.ageing__seg:last-child { border-right: 0; }
.ageing__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 14px; font-size: 12px; }
.ageing__legend li { display: flex; justify-content: space-between; gap: 8px; color: var(--color-body); }
.ageing__legend li > span:first-child { display: flex; align-items: center; gap: 6px; }
.ageing__legend li > span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ageing__legend b { font-family: var(--font-mono); font-weight: 400; color: var(--color-navy); }

.invoice { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.invoice__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 14px; border-bottom: 1px solid var(--color-line); font-size: 11px; }
.invoice__steps li { display: flex; align-items: center; gap: 8px; color: var(--color-muted); }
.invoice__steps li.done { color: var(--color-navy); }
.invoice__steps .n { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--color-line); font-size: 10px; }
.invoice__steps li.active { color: var(--color-navy); font-weight: 500; }
.invoice__steps .active .n { border-color: var(--color-navy); color: var(--color-navy); background: #fff; }
.invoice__steps .done .n { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.invoice__steps .n svg { width: 11px; height: 11px; }
.invoice__steps li + li::before { content: ""; width: 8px; height: 1px; background: var(--color-line); }
.invoice__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 16px 0; }
.invoice__id { font-family: var(--font-mono); font-size: 11px; color: var(--color-muted); }
.invoice__to { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--color-navy); }
.invoice table { margin: 14px 16px 16px; width: calc(100% - 32px); font-size: 12px; }
.invoice td { padding: 8px 0; border-top: 1px solid var(--color-line); color: var(--color-body); }
.invoice td:last-child { text-align: right; font-family: var(--font-mono); color: var(--color-navy); }
.invoice tr:first-child td { border-top: 0; }
.invoice .total td { padding-top: 12px; font-weight: 600; color: var(--color-navy); }
.invoice .total td:last-child { font-size: 14px; font-weight: 500; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--color-line); }
.timeline li { position: relative; }
.timeline li + li { margin-top: 16px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 3px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--color-line); background: var(--c, #fff); }
.timeline strong { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--color-navy); }
.timeline strong svg { width: 13px; height: 13px; color: var(--color-coral-deep); }
.timeline span { font-size: 11.5px; color: var(--color-muted); }

/* Frame used to present a product panel on marketing pages */
.frame { margin: 0; }
.frame__box { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-soft); }
.frame__inner { background: var(--color-surface); border-radius: var(--radius-md); padding: 12px; }
.frame figcaption { margin-top: 12px; font-size: 12px; color: var(--color-muted); }
@media (min-width: 768px) { .frame__box { padding: 14px; } .frame__inner { padding: 14px; } }

/* ---------- 9. Sections ---------- */
/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgb(12 30 58 / 0.045) 1px, transparent 1px), linear-gradient(to bottom, rgb(12 30 58 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 78% 30%, #000, transparent);
  mask-image: radial-gradient(ellipse 75% 65% at 78% 30%, #000, transparent);
}
.hero--page::before { -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%); mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.hero > .container { position: relative; }
.hero__grid { display: grid; gap: 3rem; padding-block: clamp(40px, 7vw, 80px) clamp(64px, 9vw, 112px); }
.hero--page .hero__grid { padding-block: clamp(48px, 8vw, 88px) clamp(48px, 7vw, 88px); }
.hero__intro { max-width: 40rem; }
.hero__tags { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--color-line); }
.hero__tags ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: 14px; }
.hero__visual { position: relative; }
.hero__visual .small-note { margin-top: 16px; }
.toast { display: none; position: absolute; bottom: -26px; left: -24px; width: 240px; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); }
.toast__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(87 196 239 / 0.25); color: var(--color-cyan-deep); flex: none; }
.toast__icon svg { width: 16px; height: 16px; }
.toast strong { display: block; font-size: 12px; color: var(--color-navy); }
.toast small { font-family: var(--font-mono); font-size: 10.5px; color: var(--color-muted); }
@media (min-width: 768px) { .toast { display: flex; left: 12px; } .hero__visual .small-note { text-align: right; margin-top: 40px; } }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.5rem; align-items: center; }
  .hero__intro { grid-column: span 5; }
  .hero__visual { grid-column: 6 / span 7; }
  .toast { left: -32px; }
}
@media (min-width: 1280px) {
  .hero__visual { margin-right: -2rem; }
  .hero--page .hero__intro { grid-column: span 5; }
}

.page-title { max-width: 52rem; }

/* Lists with numbering / markers */
.marker-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 1.5rem; padding-block: 1.75rem; }
.marker-list li + li { border-top: 1px solid var(--color-line); }
.marker-list li:first-child { padding-top: 0; }
.marker-list__bar { margin-top: 0.7rem; width: 32px; height: 5px; border-radius: 999px; background: var(--c, var(--color-cyan)); }
.marker-list p { margin-top: 0.5rem; max-width: 28rem; }

.numbered > li { display: grid; grid-template-columns: 2.5rem 1fr; padding-block: 1.75rem; border-top: 1px solid var(--color-line); }
.numbered > li:last-child { border-bottom: 1px solid var(--color-line); }
.numbered .n { padding-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.numbered p { margin-top: 0.5rem; max-width: 34rem; }
@media (min-width: 768px) { .numbered > li { grid-template-columns: 3rem 1fr; } }

.sticky-col { position: static; }
@media (min-width: 1024px) { .sticky-col { position: sticky; top: 7rem; } }

/* Solutions showcase (home) */
.showcase { display: grid; gap: 20px; }
.showcase__feature { position: relative; overflow: hidden; background: var(--color-navy); color: rgb(255 255 255 / 0.75); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 44px); }
.showcase__feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(to right, var(--color-cyan) 60%, var(--color-coral) 60% 80%, var(--color-yellow) 80%); }
.showcase__feature h3 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.1; margin-top: 1.25rem; }
.showcase__feature p { margin-top: 1rem; font-size: 15px; line-height: 1.65; }
.showcase__points { margin-top: 1.5rem; display: grid; gap: 8px; font-size: 15px; color: rgb(255 255 255 / 0.88); }
.showcase__points li { display: flex; gap: 10px; align-items: flex-start; }
.showcase__points li::before { content: ""; flex: none; width: 12px; height: 2px; margin-top: 11px; background: var(--color-cyan); }
.showcase__doc { margin-top: 2.5rem; pointer-events: none; color: var(--color-body); box-shadow: var(--shadow-lift); border-radius: var(--radius-md); }
.showcase__list li + li { border-top: 1px solid var(--color-line); }
.showcase__list { border-block: 1px solid var(--color-line); }
.showcase__item { display: grid; grid-template-columns: auto 1fr auto; gap: 0 1rem; align-items: start; padding: 1.5rem 0.25rem; }
.showcase__item .n { margin-top: 0.4rem; font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.showcase__item h3 { display: flex; align-items: flex-start; gap: 10px; font-size: 1.1rem; }
.showcase__item h3::before { content: ""; margin-top: 0.55em; width: 16px; height: 5px; border-radius: 999px; background: var(--c); transition: width .3s var(--ease); flex: none; }
.showcase__item p { margin-top: 0.4rem; font-size: 15px; }
.showcase__item svg { width: 18px; height: 18px; margin-top: 0.35rem; color: var(--color-muted); transition: transform .2s, color .2s; }
.showcase__item:hover h3::before { width: 28px; }
.showcase__item:hover svg { transform: translate(2px, -2px); color: var(--color-navy); }
@media (min-width: 640px) { .showcase__feature { padding-bottom: 44px; } }
@media (min-width: 768px) {
  .showcase__text { max-width: 56%; }
  .showcase__doc { position: absolute; right: 32px; bottom: 32px; width: 290px; margin: 0; }
}
@media (min-width: 1024px) {
  .showcase { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .showcase__feature { grid-column: span 7; }
  .showcase__list { grid-column: span 5; border-block: 0; display: flex; flex-direction: column; }
  .showcase__list li { flex: 1; }
  .showcase__item { height: 100%; padding: 1.75rem 0.5rem; }
  .showcase__doc { width: 300px; }
}

/* Vertical workflow */
.flow { position: relative; }
.flow::before, .flow::after { content: ""; position: absolute; left: 15px; top: 20px; bottom: 20px; width: 1px; background: var(--color-line); }
.flow::after { background: var(--color-navy); transform-origin: top; transform: scaleY(1); }
html.js .flow::after { transform: scaleY(0); transition: transform 1.4s var(--ease) .2s; }
html.js .flow.in::after { transform: scaleY(1); }
.flow li { position: relative; display: flex; gap: 20px; padding-bottom: 2rem; }
.flow li:last-child { padding-bottom: 0; }
.flow__n { position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-line); background: #fff; font-family: var(--font-mono); font-size: 12px; color: var(--color-navy); }
.flow__n::after { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: var(--c); }
.flow h3 { padding-top: 4px; font-size: 1.05rem; letter-spacing: -0.015em; }
.flow p { margin-top: 4px; font-size: 15px; }

/* Horizontal workflow strip */
.flow-h { display: grid; gap: 2rem 1.5rem; margin-top: 3rem; }
.flow-h li { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--color-navy); padding-right: 1rem; }
.flow-h li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.flow-h .n { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.flow-h h3 { margin-top: 8px; font-size: 1.1rem; }
.flow-h p { margin-top: 6px; font-size: 15px; }
@media (min-width: 640px) { .flow-h { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .flow-h { grid-template-columns: repeat(5, minmax(0, 1fr)); } .flow-h--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.flow-h__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-line); color: var(--color-navy); }
.flow-h__icon svg { width: 18px; height: 18px; }

.duo { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 640px) { .duo { grid-template-columns: 1fr 1fr; } .duo > :nth-child(2) { margin-top: 4rem; } }

/* Map / regional */
.regional__legend { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
.regional__legend li { display: flex; gap: 1rem; font-size: 15px; color: rgb(255 255 255 / 0.72); }
.regional__legend li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--c); border: 1px solid var(--bc, transparent); }
.regional__legend strong { color: #fff; font-weight: 600; }
.regional__map { width: 100%; height: auto; }
@media (min-width: 1024px) { .regional__map { margin-right: -2.5rem; width: calc(100% + 2.5rem); max-width: none; } }

/* Vision */
.vision { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: flex-start; margin-top: 2rem; }
.vision .symbol { margin-top: 10px; display: none; }
.vision h2 { font-size: clamp(1.85rem, 1.1rem + 2.8vw, 3.4rem); line-height: 1.13; letter-spacing: -0.03em; font-weight: 500; max-width: 56rem; }
.vision + p { margin-top: 2rem; max-width: 34rem; }
@media (min-width: 640px) { .vision .symbol { display: block; } .vision + p { margin-left: 5.5rem; } }

/* CTA */
.cta { padding-block: var(--section-y); }
.cta__inner { display: grid; gap: 2.5rem; align-items: end; border-top: 1px solid var(--color-navy); padding-top: 2.5rem; }
.cta h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 46rem; }
.cta .btn-row { margin-top: 0; }
@media (min-width: 1024px) { .cta__inner { grid-template-columns: 1fr auto; } }

/* FAQ */
.faq { border-block: 1px solid var(--color-line); }
.faq details + details { border-top: 1px solid var(--color-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 60px; padding-block: 12px; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; color: var(--color-navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--color-muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > p { padding: 0 2.5rem 1.25rem 0; max-width: 42rem; }

/* Problem grid / common ground / who-for lists */
.pair-grid { display: grid; gap: 0 2.5rem; }
.pair-grid li { padding-block: 1.5rem; border-top: 1px solid var(--color-line); }
.pair-grid p { margin-top: 0.5rem; }
@media (min-width: 640px) { .pair-grid { grid-template-columns: 1fr 1fr; } }

.overview { display: grid; }
.overview a { display: flex; align-items: baseline; gap: 1rem; padding-block: 1rem; border-top: 1px solid rgb(255 255 255 / 0.16); font-size: 1.15rem; font-weight: 500; color: #fff; letter-spacing: -0.01em; transition: color .2s; }
.overview a:hover { color: var(--color-cyan); }
.overview .n { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: rgb(255 255 255 / 0.5); }
@media (min-width: 640px) { .overview { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }

.link-grid { display: grid; border-top: 1px solid var(--color-line); }
.link-grid a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--color-line); font-weight: 500; color: var(--color-navy); transition: color .2s; }
.link-grid a:hover { color: var(--color-cyan-deep); }
.link-grid a span { color: var(--color-muted); }
@media (min-width: 640px) { .link-grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }

.columns-3 { display: grid; gap: 2.5rem; margin-top: 3rem; }
.columns-3 > li { padding-top: 1.25rem; border-top: 2px solid var(--color-navy); }
.columns-3 .bar { display: block; width: 32px; height: 5px; margin-bottom: 1rem; border-radius: 999px; background: var(--c); }
.columns-3 p { margin-top: 0.5rem; }
@media (min-width: 768px) { .columns-3 { grid-template-columns: repeat(3, 1fr); } .columns-3--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .columns-3--n { grid-template-columns: repeat(3, 1fr); } }

.spec { border-block: 1px solid var(--color-line); margin-top: 2rem; }
.spec div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: 0.9rem; font-size: 15px; }
.spec div + div { border-top: 1px solid var(--color-line); }
.spec dt { color: var(--color-muted); } .spec dd { color: var(--color-text); }

.feature-index { border-top: 1px solid var(--color-line); margin-top: 1.25rem; }
.feature-index li { border-bottom: 1px solid var(--color-line); }
.feature-index a { display: flex; gap: 1rem; padding-block: 1rem; }
.feature-index .n { padding-top: 3px; font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.feature-index strong { display: block; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--color-navy); transition: color .2s; }
.feature-index small { display: block; margin-top: 4px; font-size: 14.5px; color: var(--color-body); }
.feature-index a:hover strong { color: var(--color-cyan-deep); }
@media (min-width: 640px) { .feature-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }

/* Solutions page */
.solutions-layout { display: grid; gap: 3rem; padding-block: clamp(48px, 7vw, 96px); }
.side-nav { display: none; }
.side-nav ol { margin-top: 1rem; border-left: 1px solid var(--color-line); }
.side-nav a { display: block; margin-left: -1px; padding: 8px 0 8px 1rem; border-left: 2px solid transparent; font-size: 15px; color: var(--color-body); transition: color .2s, border-color .2s; }
.side-nav a:hover, .side-nav a.is-current { color: var(--color-navy); border-color: var(--color-cyan); }
.side-nav .n { margin-right: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.solution { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--color-line); scroll-margin-top: 6rem; }
.solution:first-of-type { border-top: 0; padding-top: 0; }
.solution__meta { display: flex; align-items: center; gap: 12px; }
.solution__meta::before { content: ""; width: 28px; height: 5px; border-radius: 999px; background: var(--c); }
.solution__meta .n { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--color-navy); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.solution h2 { margin-top: 1.25rem; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.1; max-width: 40rem; }
.solution .lead { margin-top: 1rem; }
.solution .body-copy { margin-top: 1rem; max-width: 40rem; }
.solution__cols { display: grid; gap: 2rem; margin-top: 2rem; }
.helps { max-width: 28rem; border-block: 1px solid var(--color-line); margin-top: 1rem; }
.helps li { display: flex; gap: 12px; padding-block: 12px; font-size: 15px; color: var(--color-text); }
.helps li + li { border-top: 1px solid var(--color-line); }
.helps li::before { content: ""; flex: none; width: 12px; height: 2px; margin-top: 11px; background: var(--c); }
.solution .btn-row { align-items: flex-start; }
@media (min-width: 768px) { .solution__cols--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .solutions-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 4rem; }
  .side-nav { display: block; grid-column: span 3; }
  .side-nav nav { position: sticky; top: 7rem; }
  .solutions-main { grid-column: span 9; }
}

/* ---------- 10. Forms ---------- */
.contact-grid { display: grid; gap: 3.5rem; padding-block: clamp(48px, 8vw, 88px) clamp(72px, 10vw, 112px); }
.form-card { position: relative; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-soft); }
.form-row { display: grid; gap: 1.25rem; }
.form-field label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--color-text); }
.form-field label small { font-weight: 400; color: var(--color-muted); }
.req { color: var(--color-coral-deep); }
.form-field input, .form-field select, .form-field textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: 8px; background: #fff;
  font: inherit; font-size: 16px; color: var(--color-text); transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 128px; resize: vertical; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: rgb(12 30 58 / 0.3); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--color-cyan-deep); box-shadow: 0 0 0 3px rgb(87 196 239 / 0.35); }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgb(93 106 131 / 0.7); }
.form-foot { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.form-foot .btn { min-height: 52px; }
.form-foot .btn:disabled { opacity: .6; cursor: progress; }
.form-foot p { font-size: 12px; color: var(--color-muted); }
.form-status:empty { display: none; }
.form-status p { margin-top: 1.25rem; padding: 1rem; border-radius: 8px; font-size: 15px; }
.form-status .ok { background: var(--tint-cyan-bg); color: var(--tint-cyan-fg); }
.form-status .err { background: var(--tint-coral-bg); color: var(--tint-coral-fg); }
.honeypot { position: absolute; left: -9999px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 4rem; } .contact-grid > :first-child { grid-column: span 5; } .contact-grid > :last-child { grid-column: 7 / span 6; } }

.notfound { padding-block: clamp(80px, 14vw, 180px); }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--color-navy); color: #fff; padding-block: clamp(56px, 8vw, 80px) 28px; }
.site-footer__grid { display: grid; gap: 3rem; }
.site-footer__tagline { margin-top: 1.25rem; font-size: 1rem !important; font-weight: 600; letter-spacing: -0.01em; color: #fff !important; }
.site-footer__about p { max-width: 20rem; margin-top: 1.5rem; font-size: 15px; line-height: 1.6; color: rgb(255 255 255 / 0.65); }
.site-footer__about .btn { margin-top: 2rem; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
.site-footer h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.55); }
.site-footer li { margin-top: 4px; }
.site-footer li:first-child { margin-top: 1rem; }
.site-footer li a { display: inline-block; padding: 6px 0; font-size: 15px; color: rgb(255 255 255 / 0.82); transition: color .2s; }
.site-footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base { display: flex; flex-direction: column; gap: 12px; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 14px; color: rgb(255 255 255 / 0.55); }
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__base li, .site-footer__base li:first-child { margin: 0; }
.site-footer__base li a { padding: 4px 0; font-size: 14px; color: rgb(255 255 255 / 0.6); }
@media (min-width: 768px) { .site-footer__nav { grid-template-columns: repeat(3, 1fr); } .site-footer__base { flex-direction: row; justify-content: space-between; align-items: center; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.5rem; } .site-footer__about { grid-column: span 4; } .site-footer__nav { grid-column: 6 / span 7; } }

/* ---------- 12. Motion ---------- */
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes grow-x { from { width: 0; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__intro > *, .hero__visual, .page-title > * { animation: rise .8s var(--ease) both; }
.hero__intro > :nth-child(2), .page-title > :nth-child(2) { animation-delay: .08s; }
.hero__intro > :nth-child(3), .page-title > :nth-child(3) { animation-delay: .16s; }
.hero__intro > :nth-child(4), .page-title > :nth-child(4) { animation-delay: .24s; }
.hero__visual { animation-delay: .2s; }

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .flow::after { transform: none; }
  .logo__e i { transform: none !important; }
}

/* ---------- Product, diagram and portfolio additions ---------- */
/* Core idea formula */
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.5rem; }
.formula span { padding: 10px 14px; border: 1px solid var(--color-line); border-radius: 8px; background: #fff; font-weight: 500; color: var(--color-navy); }
.formula span:last-child { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.formula b { font-weight: 400; color: var(--color-muted); }

/* Workflow / quote-to-cash icon ribbon */
.ribbon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 6px; }
.ribbon li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 500; color: var(--color-navy); }
.ribbon__icon { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-navy); }
.ribbon__icon svg { width: 18px; height: 18px; }
.ribbon__icon::after { content: ""; position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: var(--c); }
@media (min-width: 640px) {
  .ribbon { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 0; }
  .ribbon li + li::before { content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 1px; background: var(--color-line); }
}
.tile-ribbon { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 20px 18px 22px; }
.tile-ribbon .eyebrow { margin-bottom: 16px; }

/* Compact quote-to-cash list */
.minipipe { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.minipipe__head { padding: 12px 16px; border-bottom: 1px solid var(--color-line); font-size: 13px; font-weight: 600; color: var(--color-navy); }
.minipipe li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.minipipe li + li { border-top: 1px solid var(--color-line); }
.minipipe__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--color-surface); color: var(--color-navy); flex: none; }
.minipipe__icon svg { width: 14px; height: 14px; }
.minipipe strong { display: block; font-size: 13px; font-weight: 600; color: var(--color-navy); }
.minipipe small { display: block; font-size: 12px; color: var(--color-muted); }

/* Capability groups */
.groups { display: grid; gap: 2.5rem 3rem; margin-top: 3rem; }
.group { padding-top: 1.5rem; border-top: 2px solid var(--color-navy); }
.group__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-navy); }
.group__icon::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: var(--c); }
.group__icon svg { width: 18px; height: 18px; }
.ticks { margin-top: 1rem; }
.ticks li { display: flex; gap: 12px; padding-block: 9px; border-top: 1px solid var(--color-line); font-size: 15px; color: var(--color-text); }
.ticks li::before { content: ""; flex: none; width: 12px; height: 2px; margin-top: 11px; background: var(--c); }
@media (min-width: 768px) { .groups { grid-template-columns: 1fr 1fr; } }

/* Document lifecycle (Draft > Validate > Approve > Post > Settled) */
.lifecycle { display: grid; margin-top: 2.5rem; }
.lifecycle li { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--color-line); }
.lifecycle li:last-child { border-bottom: 1px solid var(--color-line); }
.life__n { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--color-line); background: #fff; color: var(--color-navy); transition: border-color .2s; }
.life__n svg { width: 18px; height: 18px; }
.life__no { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--color-muted); }
.lifecycle strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; color: var(--color-navy); }
.lifecycle li:last-child .life__n { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.lifecycle li:hover .life__n { border-color: var(--color-navy); }
@media (min-width: 768px) {
  .lifecycle { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 1.5rem; }
  .lifecycle li { position: relative; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem 0.5rem 0 0; border-top: 2px solid var(--color-navy); border-bottom: 0 !important; }
  .lifecycle li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--color-cyan); }
  .lifecycle li:nth-child(3)::before { background: var(--color-yellow); }
  .lifecycle li:nth-child(4)::before { background: var(--color-coral); }
  .lifecycle li:last-child::before { background: var(--color-navy); }
}

/* Company > products portfolio diagram */
.portfolio { position: relative; max-width: 34rem; }
.portfolio__co { background: var(--color-navy); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-lift); }
.portfolio__name { margin-top: 10px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.portfolio__sub { margin-top: 4px; font-size: 14px; color: rgb(255 255 255 / 0.7); }
.portfolio__label { margin: 22px 0 0 22px; }
.portfolio__items { position: relative; margin: 12px 0 0 22px; padding-left: 26px; border-left: 2px solid var(--color-line); }
.portfolio__items li { position: relative; }
.portfolio__items li + li { margin-top: 12px; }
.portfolio__items li::before { content: ""; position: absolute; left: -26px; top: 32px; width: 26px; height: 2px; background: var(--color-line); }
.portfolio__items a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-line); box-shadow: var(--shadow-soft); transition: border-color .2s, transform .2s var(--ease); }
.portfolio__items a:hover { border-color: rgb(12 30 58 / 0.35); transform: translateY(-2px); }
.portfolio__items a > span:nth-child(2) { flex: 1; }
.portfolio__items a > svg { width: 18px; height: 18px; color: var(--color-muted); }
.portfolio__items strong { display: block; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--color-navy); }
.portfolio__items small { display: block; margin-top: 3px; font-size: 14px; color: var(--color-body); }

/* ---------- Industries ---------- */
.chips-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-nav a { display: inline-block; padding: 8px 14px; border: 1px solid var(--color-line); border-radius: 999px; font-size: 14px; color: var(--color-navy); background: #fff; transition: border-color .2s, background-color .2s; }
.chips-nav a:hover { border-color: var(--color-navy); background: var(--color-surface); }
.industry { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--color-line); scroll-margin-top: 6rem; }
.industry:first-child { border-top: 0; padding-top: 0; }
.industry__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); background: var(--color-surface); }
.industry__body .lead { font-size: 1.1rem; }
.industry__facts { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.industry__facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }
.industry__facts dd { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--color-text); }
.taglinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 0.75rem; }
.taglinks a { display: inline-block; padding: 6px 12px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); font-size: 13px; color: var(--color-navy); transition: border-color .2s, background-color .2s; }
.taglinks a:hover { border-color: var(--color-navy); background: #fff; }
@media (min-width: 1024px) {
  .industry { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 3.5rem; align-items: center; }
  .industry__media { grid-column: span 6; }
  .industry__body { grid-column: span 6; }
  .industry:nth-child(even) .industry__media { order: 2; }
}

/* Home: industry image tiles */
.ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ind-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: #fff; transition: border-color .2s, box-shadow .2s; }
.ind-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.ind-tile:hover { border-color: rgb(12 30 58 / 0.35); box-shadow: var(--shadow-soft); }
.ind-tile:hover img { transform: scale(1.04); }
.ind-tile > .ind-tile__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--color-navy); }
.ind-tile__name svg { width: 16px; height: 16px; flex: none; color: var(--color-muted); transition: transform .2s, color .2s; }
.ind-tile:hover .ind-tile__name svg { transform: translate(2px, -2px); color: var(--color-navy); }
.ind-tile > .ind-tile__name { overflow: hidden; }
.ind-tile--cta { justify-content: center; align-items: flex-start; gap: 10px; min-height: 160px; padding: 20px; background: var(--color-navy); border-color: var(--color-navy); color: #fff; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.ind-tile--cta svg { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.ind-tile--cta:hover svg { transform: translateX(4px); }
.ind-tile--cta:hover { box-shadow: var(--shadow-soft); }
@media (min-width: 640px) { .ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .ind-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature-index--single { display: block; }

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; }
.legal section + section { margin-top: 2.25rem; }
.legal h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 0.75rem; }
.legal p { margin-top: 0.75rem; line-height: 1.7; }
.legal p:first-of-type { margin-top: 0; }
.legal ul { margin: 0.75rem 0 0; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-top: 0.4rem; line-height: 1.65; padding-left: 0.25rem; }
.legal li::marker { color: var(--color-muted); }
.legal a { color: var(--color-cyan-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--color-navy); font-weight: 600; }

/* ---------- Products dropdown (desktop) and mobile sub-item ---------- */
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
.site-nav .sub-ico { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.site-nav .has-sub:hover .sub-ico, .site-nav .has-sub:focus-within .sub-ico { transform: rotate(180deg); }
.site-nav .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.subnav { position: absolute; left: 0; top: calc(100% + 14px); z-index: 70; min-width: 220px; padding: 6px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav .subnav { display: block; }
.site-nav .subnav a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--color-body); white-space: nowrap; }
.site-nav .subnav a:hover { background: var(--color-surface); color: var(--color-navy); }
.site-nav .subnav a[aria-current="page"] { color: var(--color-navy); font-weight: 600; }
.site-nav .subnav a[aria-current="page"]::after { content: none; }
.mobile-menu li.mm-sub a { min-height: 52px; padding-left: 1.25rem; font-size: 1.2rem; font-weight: 500; }

/* ---------- Home: company capability map ---------- */
.capmap { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.capmap__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--color-line); font-size: 14px; font-weight: 600; color: var(--color-navy); }
.capmap__tag { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.capmap li + li { border-top: 1px solid var(--color-line); }
.capmap a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; transition: background-color .2s; }
.capmap a:hover { background: var(--color-surface); }
.capmap__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-navy); }
.capmap__icon::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; background: var(--c); }
.capmap__icon svg { width: 18px; height: 18px; }
.capmap a > span:nth-child(2) { flex: 1; min-width: 0; }
.capmap strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--color-navy); }
.capmap small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--color-body); }
.capmap a > svg { width: 16px; height: 16px; flex: none; color: var(--color-muted); transition: transform .2s, color .2s; }
.capmap a:hover > svg { transform: translate(2px, -2px); color: var(--color-navy); }
