/* NOVA page, 08 Already built for the site you have (assets/js/n-cms.js). Two white cards: the 90 with its ten sites and the three
   promises; Your Brand's site plugging into NOVA with the twelve platforms under it. Then the two questions for the long tail and
   the W3Techs note. Calm: one platform connects at a time, nothing spins. */
.ni-box { max-width: 1140px; margin: 0 auto; }
.ni-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 20px; align-items: stretch; }
.ni-card { position: relative; border-radius: 22px; background: #fff; box-shadow: var(--nv-card); }

/* ---------------------------------------------------------------- the number */
.ni-stat { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px) clamp(26px, 3vw, 40px) clamp(14px, 1.6vw, 22px); }
.ni-num { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; }
.ni-big { display: flex; align-items: flex-start; margin: 0; font: 700 clamp(88px, 8.6vw, 124px)/.8 var(--sans); letter-spacing: -.06em; color: var(--ink); }
.ni-big b { display: inline-block; min-width: 1.16em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ni-big span { margin: .02em 0 0 .02em; font-size: .4em; line-height: 1; letter-spacing: -.03em; }
.ni-of { margin: 0 0 3px; max-width: 12.5em; font: 500 15px/1.38 var(--sans); color: var(--nv-mute); text-wrap: pretty; }

/* nine of ten small sites ready, one gradient running through them */
.ni-ten { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 360px; margin: 30px 0 0; padding: 0; list-style: none; }
.ni-ten li { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 6px; background: #EEF1EF; box-shadow: inset 0 0 0 1px rgba(11,11,12,.05); }
.ni-ten li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24%; background: rgba(11,11,12,.05); }
.ni-ten li.y::after { content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(90deg, #54B86A, #4F98A7) calc(var(--k) * 11.111%) 0 / 1000% 100% no-repeat;
  transition: opacity .7s ease calc(220ms + var(--k) * 95ms); }
.ni-ten li i { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: #fff; opacity: 0; scale: .5;
  transition: opacity .4s ease calc(420ms + var(--k) * 95ms), scale .55s cubic-bezier(.34,1.56,.64,1) calc(420ms + var(--k) * 95ms); }
.ni-ten li i svg { width: 48%; height: 48%; }
.ni-stat.lit .ni-ten li.y::after, .ni-stat.lit .ni-ten li i { opacity: 1; }
.ni-stat.lit .ni-ten li i { scale: 1; }
.ni-stat.lit .ni-ten li.y::before { background: rgba(255,255,255,.22); z-index: 1; }

.ni-nine { margin: 18px 0 0; font: 600 19px/1.3 var(--sans); letter-spacing: -.014em; color: var(--ink); }
.ni-copy { margin: 10px 0 0; max-width: 31em; font: 400 15.5px/1.55 var(--sans); color: var(--nv-mute); text-wrap: pretty; }
.ni-rows { display: grid; margin: auto 0 0; padding: 24px 0 0; list-style: none; }
.ni-rows li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 13px; align-items: start; padding: 15px 0; border-top: 1px solid var(--nv-line); }
.ni-rows i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(84,184,106,.13); color: var(--nv-ink-g); }
.ni-rows i svg { width: 13px; height: 13px; }
.ni-rows p { display: grid; gap: 3px; margin: 2px 0 0; }
.ni-rows b { font: 600 15px/1.3 var(--sans); letter-spacing: -.008em; color: var(--ink); }
.ni-rows span { font: 400 14px/1.45 var(--sans); color: var(--nv-mute); }

/* ---------------------------------------------------------------- Your Brand's site plugs into NOVA */
.ni-plug { display: flex; flex-direction: column; padding: 22px 22px 18px; }
.ni-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; padding: 0 4px; }
.ni-site { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font: 500 14px/1.2 var(--sans); color: var(--nv-mute); white-space: nowrap; }
.ni-site b { font-weight: 600; color: var(--ink); }
.ni-on em { font-style: normal; font-weight: 600; color: var(--ink); }
.ni-st { display: grid; margin: 0; }
.ni-st span { grid-area: 1 / 1; justify-self: end; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: opacity .45s ease; }
.ni-st .a { background: #F1F3F2; color: var(--nv-mute); }
.ni-st .b { background: rgba(84,184,106,.14); color: var(--nv-ink-g); opacity: 0; }
.ni-plug.done .ni-st .a { opacity: 0; }
.ni-plug.done .ni-st .b { opacity: 1; }

.ni-scene { position: relative; flex: 1 1 auto; min-height: 168px; display: grid; grid-template-columns: 108px minmax(0, 1fr) 108px; align-items: center; margin: 18px 0 0; padding: 26px 22px; border-radius: 18px;
  background: linear-gradient(180deg, #F6FAF8, #F0F6F5); }
.ni-tile { position: relative; z-index: 1; display: grid; place-items: center; width: 108px; aspect-ratio: 1; border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11,11,12,.06), 0 18px 34px -20px rgba(16,44,40,.42); transition: box-shadow .8s var(--ease-out); }
.ni-cms-in { position: relative; width: 48px; height: 48px; }
.ni-cms-in i { position: absolute; inset: 0; opacity: 0; scale: .82; transition: opacity .45s ease, scale .6s var(--ease-out); }
.ni-cms-in i.on { opacity: 1; scale: 1; }
.ni-cms-in svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.ni-lg { display: inline-flex; }
.ni-plug.done .ni-nova { box-shadow: 0 0 0 1px rgba(46,158,80,.22), 0 0 0 6px rgba(84,184,106,.08), 0 22px 40px -20px rgba(46,158,80,.5); }
.ni-wire { display: block; width: calc(100% + 24px); height: 90px; margin: 0 -12px; overflow: visible; }
.ni-wire path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ni-w0 { stroke: rgba(11,11,12,.10); stroke-width: 1.4; }
.ni-w1 { stroke: url(#ni-wg); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1); }
.ni-plug.wired .ni-w1 { stroke-dashoffset: 0; }
.ni-w2 { stroke: #54B86A; stroke-width: 3; stroke-dasharray: .07 1.2; stroke-dashoffset: .07; opacity: 0; transition: opacity .4s ease; }
.ni-plug.done .ni-w2 { opacity: .9; animation: niflow 1.8s cubic-bezier(.45,0,.35,1) infinite; }
@keyframes niflow { from { stroke-dashoffset: .07; } to { stroke-dashoffset: -1; } }
.ni-rides { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 18px; pointer-events: none; }
.ni-ride { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #fff; opacity: 0;
  box-shadow: 0 0 0 1px rgba(11,11,12,.06), 0 8px 16px -10px rgba(16,44,40,.5); font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; will-change: transform, opacity; }

.ni-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.ni-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; row-gap: 3px; align-items: center;
  padding: 12px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--nv-line); transition: box-shadow .5s ease; }
.ni-steps i { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #F1F3F2; color: transparent;
  transition: background-color .45s ease, color .45s ease; }
.ni-steps i svg { width: 12px; height: 12px; }
.ni-steps b { min-width: 0; font: 600 13px/1.2 var(--sans); letter-spacing: -.006em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ni-steps span { min-width: 0; font: 400 12px/1.2 var(--sans); color: var(--nv-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ni-steps li.now { box-shadow: inset 0 0 0 1px rgba(84,184,106,.5); }
.ni-steps li.now i { animation: nibreath 1.1s ease-in-out infinite; }
@keyframes nibreath { 50% { background: rgba(84,184,106,.28); } }
.ni-steps li.ok i { background: linear-gradient(135deg, #54B86A, #4F98A7); color: #fff; animation: none; }

.ni-pl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--nv-line); }
.ni-p { display: grid; justify-items: center; align-content: center; gap: 7px; min-width: 0; min-height: 66px; padding: 10px 2px 9px; border: 0; border-radius: 14px;
  background: transparent; color: rgba(11,11,12,.62); cursor: pointer; font: 500 11.5px/1.1 var(--sans);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.ni-p svg { display: block; width: 22px; height: 22px; fill: currentColor; }
.ni-p svg.wide { width: 30px; height: 13.5px; margin: 4.25px 0; }
.ni-cms-in svg.wide { height: 46%; margin-top: 27%; }
.ni-p span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nv-mute); transition: color .3s ease; }
.ni-p:hover { background: #F5F8F6; color: var(--ink); }
.ni-p.on { background: #fff; color: var(--c); box-shadow: 0 0 0 1px rgba(11,11,12,.07), 0 10px 22px -14px rgba(16,44,40,.45); }
.ni-p.on span { color: var(--ink); }
.ni-p:focus-visible { outline: 2px solid var(--nv-teal); outline-offset: 2px; }

/* ---------------------------------------------------------------- the long tail */
.ni-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.ni-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px 20px 26px; }
.ni-q p { display: grid; gap: 4px; margin: 0; }
.ni-q b { font: 600 15.5px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.ni-q span { font: 400 14px/1.45 var(--sans); color: var(--nv-mute); }
.ni-a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(11,11,12,.18);
  font: 600 14.5px/1 var(--sans); color: var(--ink); white-space: nowrap; transition: box-shadow .25s ease, background-color .25s ease; }
.ni-a svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.ni-a:hover { box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.ni-a:hover svg { transform: translateX(3px); }
.ni-a:focus-visible { outline: 2px solid var(--nv-teal); outline-offset: 3px; }
.ni-note { margin: 22px 0 0; text-align: center; font: 500 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(11,11,12,.46); }

html.reduce .ni-box *, html.still .ni-box * { animation: none !important; transition: none !important; }
html.reduce .ni-w2, html.still .ni-w2 { display: none; }

/* ---------------------------------------------------------------- narrower */
@media (max-width: 1179px) {   /* two cards side by side only where the steps and the platform names fit whole */
  .ni-two, .ni-more { grid-template-columns: minmax(0, 1fr); }
  .ni-two { max-width: 640px; margin: 0 auto; }
  .ni-more { max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .ni-stat { padding: 26px 22px 10px; }
  .ni-plug { padding: 18px 16px 14px; }
  .ni-scene { grid-template-columns: 80px minmax(0, 1fr) 80px; padding: 20px 14px; }
  .ni-tile { width: 80px; border-radius: 20px; }
  .ni-cms-in { width: 38px; height: 38px; }
  .ni-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ni-pl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ni-q { flex-direction: column; align-items: flex-start; padding: 20px 22px; }
  .ni-site .ni-on { display: none; }
}
