/* ==========================================================================
   MONI — Homepage prototype
   Design rules: near-black background, NO gradients anywhere, solid colours
   only, white headings, light-grey body copy, generous spacing.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Surfaces — solid, no gradients */
  --bg:            #000000;
  --surface-1:     #0B0B0C;
  --surface-2:     #121214;
  --surface-3:     #191A1D;
  --line:          #232428;
  --line-strong:   #34363C;

  /* Type */
  --white:         #FFFFFF;
  --grey:          #A9ADB4;   /* supporting body copy */
  --grey-dim:      #74787F;   /* meta / captions */

  /* Brand */
  --accent:        #17A34A;   /* MONI accent — the green from the brand mark */
  --accent-hover:  #1FBF57;   /* lifted accent for hover */
  --accent-ink:    #04140A;   /* text on accent — 5.8:1 against --accent */
  --fnb:           #FF7A18;   /* MONI F&B  — warm orange */
  --retail:        #2E90FA;   /* MONI Retail — blue */
  --bi:            #FFC72C;   /* MONI Business Intelligence — amber */

  /* Semantic, not brand: how a metric is moving. Kept separate from --bi so
     the pillar can be recoloured without turning "up" into a warning. */
  --pos:           #3ECF7E;
  --neg:           #E5695E;

  /* Rhythm */
  --maxw:          1240px;
  --gutter:        24px;
  --radius:        14px;
  --radius-sm:     10px;

  --section-y:     clamp(56px, 6.4vw, 92px);
  --ease:          cubic-bezier(.22, .61, .36, 1);
  --dur:           .32s;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
p { margin: 0; color: var(--grey); }

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

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

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

/* --- Layout primitives ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.04); }

.btn--sm { padding: 11px 20px; font-size: 12px; }

/* Arrow link — clean arrow movement on hover */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}
.arrow-link .arrow {
  transition: transform var(--dur) var(--ease);
  display: inline-block;
}
.arrow-link:hover .arrow { transform: translateX(5px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(0,0,0,.72);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header.is-scrolled {
  background: #000;
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}

.logo {
  display: inline-flex; align-items: center;
  margin-right: auto;
}
.logo img { display: block; height: 30px; width: auto; }
.footer .logo img { height: 26px; }

/* The logo is the route home from every page. */
a.logo { transition: opacity var(--dur) var(--ease); }
a.logo:hover { opacity: .72; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px; font-weight: 500;
  color: var(--white);
  border-radius: 6px;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__item--open > .nav__link::after { transform: scaleX(1); }

/* Current section. Unused on the homepage, which sets no active item. */
.nav__link--active::after { transform: scaleX(1); }
.mobile-nav__link--active { color: var(--accent); }

/* The styling for a switched-off group sits further down, after the mobile
   drawer — it has to win against `.mobile-nav a.mobile-nav__link`. */

/* Resources dropdown */
.nav__item { position: relative; }
.nav__caret {
  display: inline-block; margin-left: 6px;
  transition: transform var(--dur) var(--ease);
}
.nav__item--open .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 268px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item--open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 11px 14px; border-radius: 7px;
  font-size: 14.5px; color: var(--grey);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dropdown a:hover { background: var(--surface-3); color: var(--white); }
/* Marks a destination whose content will eventually require customer access.
   Inline so it rides with the label and leaves every other item untouched. */
.dropdown__lock,
.mobile-nav__sub .dropdown__lock {
  margin-left: 7px;
  vertical-align: -2px;
  color: var(--grey-dim);
}

.header__cta { margin-left: 8px; }

/* LOG IN — the secondary action, beside the primary one.

   Its own rule rather than .btn--ghost. Five of the six pages re-skin that
   class for a light surface and Other Services does not, so borrowing it
   would have left this button white-on-white there. Stating the colours
   once means the bar looks the same on every page whatever its stylesheet
   does.

   The tokens are the light theme's, with the literal values as fallbacks
   for any page that has not defined them. */
.header__login {
  /* The header's own flex gap already separates these two; this is the
     nudge that makes the pair read as one group rather than two items in
     the row. */
  margin-left: 10px;
  /* One pixel off each side against .btn--sm's 11px/20px. Get Started has
     no border, so matching its padding would have made this 2px taller and
     left the two buttons visibly mismatched in a 41px bar — the border has
     to come out of the padding, not be added to it. */
  padding: 10px 19px;
  background: #FFFFFF;
  border: 1px solid var(--h-line-hard, #D7DBDE);
  color: var(--h-text, #111315);
}
.header__login:hover { border-color: var(--h-text, #111315); }
.header__login:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The drawer is black, so the same control is drawn the other way up. */
.mobile-nav__login {
  border: 1px solid var(--line-strong);
  color: var(--white);
}
.mobile-nav__login:hover { border-color: var(--white); background: rgba(255,255,255,.04); }
/* The drawer gives every button 28px of clearance; the second of a pair
   only needs separating from the first. */
.mobile-nav .btn + .btn { margin-top: 12px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--white);
  position: relative;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--white);
  transition: transform var(--dur) var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: #000;
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter) 48px;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a.mobile-nav__link {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px; font-weight: 600; color: var(--white);
}
.mobile-nav__sub {
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__sub a {
  display: block; padding: 9px 0; color: var(--grey); font-size: 15.5px;
}
.mobile-nav .btn { width: 100%; margin-top: 28px; }

/* --- A navigation group switched off for now ------------------------------
   See `disabled` in data.js. The item holds its place in both navigations —
   removing it would leave a gap where visitors expect a section — but it is
   inert, and the marker says why rather than leaving a dead label with no
   explanation.

   pointer-events is what makes it genuinely unusable: it stops the hover
   colour and the underline firing on something that cannot be clicked, and
   it keeps the item from being a click target even if an href were ever put
   back by mistake. The anchor has no href, so it is already out of the tab
   order.

   The word is set back with opacity and the marker is drawn in
   currentColor, so one rule is correct on the light pages and on the dark
   ones without fighting either page's own nav colour.

   These sit after the drawer's own rules on purpose: the base
   `.mobile-nav a.mobile-nav__link` is more specific than a single class,
   so an earlier block could not change its display. */
.nav__link--disabled,
.mobile-nav a.mobile-nav__link--disabled {
  cursor: default;
  pointer-events: none;
}
.nav__link--disabled { display: inline-flex; align-items: center; }
.mobile-nav a.mobile-nav__link--disabled { display: flex; align-items: center; }
/* No underline on something that cannot be the current page. */
.nav__link--disabled::after { display: none; }

.nav-off__label { opacity: .5; }

.nav-off__soon {
  margin-left: 8px;
  padding: 3px 7px 2px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .62;
}
/* The drawer sets 20px on the item; the marker keeps its own size there. */
.mobile-nav__link--disabled .nav-off__soon { font-size: 10px; }

/* ==========================================================================
   HERO
   ========================================================================== */
/* Compact by design: the statement is the whole hero, so the three pillars
   below it sit inside the opening viewport. */
.hero {
  padding-top: clamp(100px, 8.6vw, 124px);
  padding-bottom: 0;
  text-align: center;
}
/* One horizontal line on desktop, sized to fit the 1240px content width. */
.hero__title {
  font-size: clamp(30px, 3.26vw, 47px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin-inline: auto;
}
.hero__line { display: inline; }
.hero__title em { font-style: normal; color: var(--accent); }

/* ==========================================================================
   PROOF POINTS + CUSTOMER MARQUEE
   ========================================================================== */
.proof {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.proof__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 38px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
  width: 100%;
}
.proof__item:last-child { border-right: 0; }
.proof__item:hover,
.proof__item.is-active { background: var(--surface-2); }

.proof__icon { color: var(--grey-dim); transition: color var(--dur) var(--ease); }
.proof__item:hover .proof__icon,
.proof__item.is-active .proof__icon { color: var(--accent); }

.proof__text { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.proof__number {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: var(--white);
}
.proof__label { font-size: 14.5px; color: var(--grey); }

.proof__reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease);
  border-top: 1px solid transparent;
}
.proof__reveal.is-open {
  grid-template-rows: 1fr;
  border-top-color: var(--line);
}
.proof__reveal > div { overflow: hidden; }

.proof__hint {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--grey-dim);
  transition: opacity var(--dur) var(--ease);
}
.proof__hint.is-hidden { opacity: 0; }

/* Marquee */
.marquee {
  position: relative;
  display: flex; align-items: center;
  padding: 18px 8px;
}
.marquee__viewport { overflow: hidden; flex: 1; }
.marquee__track {
  display: flex; align-items: center; gap: 12px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  flex: 0 0 auto;
  width: 168px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--grey);
  text-align: center;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.marquee__item:hover {
  border-color: var(--line-strong);
  color: var(--white);
  background: #202126;
}

.marquee__nav {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--grey);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.marquee__nav:hover { border-color: var(--white); color: var(--white); }

/* ==========================================================================
   BUSINESS PILLARS
   ========================================================================== */
/* Three columns. The first two hold one card each; the third holds a stack of
   two, so all three columns still start and finish level. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}

/* The third column: MONI Business Intelligence above Other Services. A layout
   wrapper and nothing else — no border, no background, no padding — so the
   page ground shows through the gap and the two cards read as two separate
   offerings rather than one product with a divider through it. The gap
   matches the grid's, so the separation between them is the same separation
   that exists between the columns. */
.pillars__stack {
  display: flex; flex-direction: column;
  gap: 20px;
  min-width: 0;
}
/* Other Services takes up whatever height is left, so BI + gap + Other
   Services finishes level with the F&B and Retail cards beside it. */
.pillars__stack > .pillar--other { flex: 1; }

.pillar {
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.pillar:hover { border-color: var(--line-strong); background: var(--surface-2); }

.pillar__media { position: relative; }

/* The frame clips the image zoom; the badge sits outside it so it can overlap
   the card body without being cropped. */
.pillar__frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}
.pillar__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}

/* UI screenshots are shown whole; the frame ground matches the screenshot's own
   background so the letterboxing is invisible. */
.pillar__frame--contain { background: #0A0A0A; }
.pillar__frame--contain img { object-fit: contain; }
.pillar:hover .pillar__media img { transform: scale(1.04); } /* few percent only */

.pillar__badge {
  position: absolute; left: 20px; bottom: -22px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pillar);
  color: #0A0A0A;
}

.pillar__body { padding: 40px 24px 26px; display: flex; flex-direction: column; flex: 1; }

/* Other Services has no media above it, so the top padding that exists to
   clear the badge would only leave a hole. */
.pillar--other .pillar__body { padding: 24px 24px 22px; }
.pillar__title {
  font-size: clamp(21px, 1.85vw, 25px);
  font-weight: 700; letter-spacing: -.02em;
  color: var(--pillar);
}
/* Reserve three lines so the F&B and Retail cards align to the same height. */
.pillar__copy { margin-top: 12px; font-size: 15px; min-height: 4.6em; }

/* Capabilities + CTA sit together at the foot of the card, so the breathing
   space lands between the description and the divider. */
.pillar__foot { margin-top: auto; padding-top: 18px; }

/* --- Core capabilities: quiet text rows, not tiles ------------------------ */
.caps {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.caps__label {
  font-size: 11px; font-weight: 600; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 3px;
}
/* A statement of what the pillar includes, not a control: no hover state,
   no transition and the default cursor, so nothing here reads as clickable. */
.cap {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--grey);
  cursor: default;
}
.cap__icon { display: flex; color: var(--pillar); opacity: .8; }
.cap__label { min-width: 0; }
/* The tick closes the row where the arrow used to, in brand green. */
.cap__tick {
  margin-left: auto;
  display: flex;
  color: var(--accent);
}

.pillar__cta { padding-top: 14px; font-size: 15px; }
.pillar__cta .arrow-link { color: var(--pillar); }
/* The same link, moved up under the title on a pillar whose CTA leads rather
   than closes the card. Spacing only — the treatment matches F&B and Retail. */
.pillar__cta--lead { padding-top: 10px; }

/* The four Other Services tiles — compact two-column layout. */
.modules {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Equal rows, so all four tiles match even when a label wraps. */
  grid-auto-rows: 1fr;
  gap: 8px;
}
/* The arrow is lifted out of the text flow and pinned opposite the icon, so
   a service title gets the tile's full width instead of sharing its last
   line. At 13.5px the old arrangement was fine; at title size it cost the
   longest name a quarter of its measure. */
.module {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  gap: 10px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13.5px; font-weight: 500; color: var(--grey);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.module:hover { border-color: var(--line-strong); color: var(--white); background: var(--surface-3); }
.module__icon { display: flex; }
/* The name sits at the foot of the tile and spans its full width; the arrow
   is positioned out of this row (see .module .arrow below). */
.module__row { margin-top: auto; }
/* These are service titles, not navigation labels, so they carry the same
   weight and desktop size as MONI F&B, MONI Retail and MONI Business
   Intelligence beside them. The tiles are a third of a column wide, so a name
   wraps onto two or three lines rather than being shrunk to fit; the lower
   bound of the clamp exists only for the narrow band where the three pillar
   columns are still side by side and the tile is at its tightest.

   The ceiling is 23px rather than the titles' 25px for one reason: at 25px
   "Compliance" is 141px wide against 133px of tile, so it would break across
   two lines mid-word. The size is set by the longest word in the set, not by
   a wish to avoid wrapping — the names still wrap, they just wrap between
   words. See the band rule below 1000px, where the card goes full width. */
.module__label {
  font-size: clamp(15px, calc(1.75vw - 2px), 23px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  min-width: 0;
}
.module .arrow {
  position: absolute; top: 14px; right: 14px;
  color: var(--grey-dim);
  transition: transform var(--dur) var(--ease);
}
.module:hover .arrow { transform: translateX(3px); color: var(--white); }
.module svg { flex: 0 0 auto; }

/* BI dashboard visual (SVG, solid fills, no gradients) */
.bi-visual { width: 100%; height: 100%; display: block; background: #0E0F12; }
/* ==========================================================================
   BEYOND POS
   ========================================================================== */
.beyond {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: clamp(30px, 4.2vw, 68px) clamp(24px, 3.4vw, 56px);
}

.beyond__headline {
  margin-top: 18px;
  max-width: 16ch;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -.035em;
  line-height: 1.02;
}

/* --- Process paths -------------------------------------------------------- */
.paths {
  margin-top: clamp(44px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.6vw, 34px);
}

.path__label {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 14px;
}

.path__steps {
  display: flex; align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  margin: 0; padding: 0; list-style: none;
}
.path__step { white-space: nowrap; }

/* The rail is the connector: a hairline that ends in a solid arrowhead. */
.rail {
  flex: 1 1 auto;
  min-width: 16px;
  height: 1px;
  position: relative;
}
.rail::after {
  content: "";
  position: absolute; right: 0; top: -3.5px;
  border-left: 7px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* Conventional path — deliberately muted, and it stops. */
.path--conventional { color: var(--grey-dim); }
.path--conventional .path__label { color: var(--grey-dim); }
.path--conventional .path__step {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 500;
  color: var(--grey-dim);
}
.path--conventional .rail { background: #2B2E34; color: #2B2E34; }

/* A stop bar rather than an arrowhead: the path terminates here. */
.path--conventional .path__step--stop {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #62666E;
}
.path--conventional .rail:last-of-type::after { display: none; }
.path__stopbar {
  display: inline-block;
  width: 2px; height: 15px;
  background: #43474F;
}

/* MONI path — the dominant element of the section. */
.path--moni { padding-top: clamp(20px, 2.4vw, 30px); border-top: 1px solid var(--line); }
.path--moni .path__label { color: var(--accent); }
.path--moni .path__step {
  font-size: clamp(19px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--white);
}
.path--moni .path__step:last-child { color: var(--accent); }
.path--moni .rail { background: #3A3D44; color: var(--accent); }

/* --- Outcomes ------------------------------------------------------------- */
.outcomes { margin-top: clamp(48px, 6.5vw, 92px); }

.outcomes__label {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey-dim);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* A matrix ruled by hairlines rather than four boxed cards. */
.outcomes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.outcome {
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 40px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
.outcome:nth-child(odd)  { border-right: 1px solid var(--line); padding-left: 0; }
.outcome:nth-child(even) { padding-right: 0; }
.outcome:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
.outcome:hover { background: rgba(255,255,255,.017); }

.outcome__title {
  font-size: clamp(21px, 2vw, 27px);
  letter-spacing: -.025em;
  line-height: 1.15;
  max-width: 20ch;
  text-wrap: balance;
}
.outcome__copy {
  margin-top: 14px;
  font-size: 15px;
  max-width: 44ch;
}

/* --- Outcome data visuals ------------------------------------------------- */
.viz {
  margin-top: clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: 12px;
}
.viz__caption {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #5C616A;
}

.viz-row {
  display: grid;
  grid-template-columns: minmax(84px, 118px) 1fr auto;
  align-items: center;
  gap: 16px;
}
.viz-row__label { font-size: 13.5px; color: var(--grey); }
.viz-row__value {
  font-size: 13.5px; font-weight: 600; color: var(--white);
  font-variant-numeric: tabular-nums;
  min-width: 58px; text-align: right;
}

.viz-bar {
  display: block;
  height: 6px;
  background: #202329;
  border-radius: 3px;
  overflow: hidden;
}
.viz-bar__fill {
  display: block; height: 100%;
  background: var(--grey-dim);
  border-radius: 3px;
  transform-origin: left center;
  transition: filter var(--dur) var(--ease);
}
.outcome:hover .viz-bar__fill { filter: brightness(1.22); }

.viz-row--up   .viz-bar__fill { background: var(--pos); }
.viz-row--up   .viz-row__value { color: var(--pos); }
.viz-row--down .viz-bar__fill { background: var(--neg); }
.viz-row--down .viz-row__value { color: var(--neg); }

/* Locations use the retail blue, one shade per store depth. */
.viz .viz-row:not(.viz-row--up):not(.viz-row--down) .viz-bar__fill { background: var(--retail); }

/* Stats */
.viz-stat { display: flex; flex-direction: column; gap: 6px; }
.viz-stat + .viz-stat { margin-top: 8px; }
.viz-stat__label { font-size: 12.5px; color: var(--grey-dim); }
.viz-stat__figure { display: flex; align-items: baseline; gap: 12px; }
.viz-stat__value {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.viz-delta { font-size: 13px; font-weight: 600; }
.viz-delta--up   { color: var(--pos); }
.viz-delta--down { color: var(--neg); }
.viz-bar--wide { margin-top: 4px; }

/* Drill-down: business level to a single transaction */
.viz--drill { gap: 0; }
.viz-drill {
  position: relative;
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0;
}
.viz-drill + .viz-drill { border-top: 1px solid var(--line); }
.viz-drill__tick {
  width: 2px; height: 13px;
  background: var(--line-strong);
  flex: 0 0 auto;
  align-self: center;
}
.viz-drill__label { font-size: 14px; color: var(--grey); }
.viz-drill__value {
  margin-left: auto;
  font-size: 14px; font-weight: 600; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.viz-drill--0 { padding-left: 0; }
.viz-drill--0 .viz-drill__tick { background: var(--pos); height: 17px; }
.viz-drill--0 .viz-drill__label { color: var(--white); font-weight: 600; }
.viz-drill--1 { padding-left: 22px; }
.viz-drill--2 { padding-left: 44px; }
.viz-drill--2 .viz-drill__label,
.viz-drill--2 .viz-drill__value { font-size: 13px; }
.viz-drill--2 .viz-drill__value { color: var(--grey); }
.viz-drill--2 .viz-drill__tick { height: 10px; }


/* ==========================================================================
   TRUSTED BY
   ========================================================================== */
.trusted__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.trusted__title { font-size: clamp(28px, 3.4vw, 42px); }
.trusted__sub { margin-top: 12px; font-size: 16px; }

.trusted__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.customer-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-1);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.customer-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.customer-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.customer-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.customer-card:hover .customer-card__media img { transform: scale(1.04); }
.customer-card__body { padding: 14px 14px 16px; }
.customer-card__name {
  font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  line-height: 1.3; min-height: 2.6em;
}
.customer-card__loc { margin-top: 3px; font-size: 13px; color: var(--grey-dim); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: clamp(30px, 4vw, 52px);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.final-cta__icon {
  width: 56px; height: 56px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--surface-3);
  color: var(--accent);
}
.final-cta__title {
  flex: 1 1 320px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.final-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
}
.footer__inner {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__copy { font-size: 13px; color: var(--grey-dim); }

.footer__links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: var(--grey); transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: var(--white); }

/* "Support · +64 9 638 8288". The label keeps the footer's own link colour,
   whichever page it is on; the value is set back a step with opacity rather
   than a colour, so the one rule is right on the light pages and the dark
   ones alike. Kept on one line — a phone number broken across two is a
   phone number you have to reassemble. */
.footer__contact { white-space: nowrap; }
.footer__contact-sep { opacity: .5; }
.footer__contact-value { opacity: .78; }
.footer__divider { width: 1px; height: 16px; background: var(--line-strong); }

.footer__social { display: flex; align-items: center; gap: 8px; }
.footer__social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--grey);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--surface-3); color: var(--white); }

.footer__legal { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }

/* ==========================================================================
   AI ASSISTANT
   ========================================================================== */
.ai-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--white);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ai-fab:hover { background: var(--surface-3); border-color: #4A4D54; }
.ai-fab__spark { color: var(--accent); }
.ai-fab.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); }

.ai-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  width: min(400px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 48px));
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.985);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.ai-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.ai-panel__head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}
.ai-panel__title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ai-panel__intro { margin-top: 6px; font-size: 13.5px; line-height: 1.5; }
.ai-panel__close {
  margin-left: auto; width: 32px; height: 32px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--grey);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ai-panel__close:hover { background: var(--surface-3); color: var(--white); }

.ai-thread {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.ai-thread::-webkit-scrollbar { width: 6px; }
.ai-thread::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.ai-msg { max-width: 88%; font-size: 14px; line-height: 1.55; }
.ai-msg--user {
  align-self: flex-end;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 10px 10px 3px 10px;
  padding: 11px 14px;
  color: var(--white);
}
.ai-msg--bot { align-self: flex-start; color: var(--grey); max-width: 100%; }
.ai-msg--bot strong { color: var(--white); font-weight: 600; }

.ai-resources { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ai-resource {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
/* The card is a box, an <a> or a <button> depending on what it does, so
   the button form needs the element defaults flattened to match the link —
   otherwise it arrives with the UA font, centred text and its own metrics. */
button.ai-resource {
  width: 100%;
  font: inherit; text-align: left;
  color: inherit;
  cursor: pointer;
}
a.ai-resource { cursor: pointer; text-decoration: none; }

/* Both live kinds light up the same way, and the keyboard gets the same
   affordance the pointer does. */
a.ai-resource:hover, button.ai-resource:hover {
  border-color: var(--line-strong); background: var(--surface-3);
}
a.ai-resource:focus-visible, button.ai-resource:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Resources, which is Coming Soon: present, legible, and plainly not a
   control. No pointer, no hover, and out of the tab order by being a span. */
.ai-resource--soon { cursor: default; opacity: .72; }
.ai-resource__soon {
  margin-left: auto; flex: 0 0 auto;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 7px;
  white-space: nowrap;
}
.ai-resource__icon { flex: 0 0 auto; }
.ai-resource__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-resource__title { display: block; font-size: 13px; font-weight: 600; color: var(--white); line-height: 1.35; }
.ai-resource__action { display: block; font-size: 12px; color: var(--grey-dim); }
.ai-resource .arrow { margin-left: auto; color: var(--grey-dim); transition: transform var(--dur) var(--ease); }
.ai-resource:hover .arrow { transform: translateX(3px); color: var(--white); }

.ai-suggestions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 20px 14px;
}
.ai-chip {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12.5px; color: var(--grey);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ai-chip:hover { border-color: var(--line-strong); color: var(--white); }

/* The three example questions in the empty state. One wrapping row of the
   same .ai-chip the panel has always used — the two-row topic browser that
   was here is gone, and with it the vertical space it took out of a small
   panel. The row removes itself once a question is asked. */
.ai-suggestions[hidden] { display: none; }
.ai-suggestions .ai-chip { text-align: left; }

/* The one-line "related on the site" note between an answer and its cards. */
.ai-related { margin-top: 10px; color: var(--grey-dim); font-size: 13px; }
.ai-related strong { color: var(--grey); font-weight: 600; }
.ai-msg--bot p + p { margin-top: 10px; }

.ai-form {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.ai-form input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  font: inherit; font-size: 14px;
  transition: border-color var(--dur) var(--ease);
}
.ai-form input::placeholder { color: var(--grey-dim); }
.ai-form input:focus { outline: none; border-color: var(--line-strong); }
.ai-form button {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 8px;
  transition: background-color var(--dur) var(--ease);
}
.ai-form button:hover { background: var(--accent-hover); }

.ai-typing { display: inline-flex; gap: 4px; align-items: center; height: 20px; }
.ai-typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--grey-dim);
  animation: ai-blink 1.2s infinite;
}
.ai-typing i:nth-child(2) { animation-delay: .18s; }
.ai-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes ai-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ==========================================================================
   REVEAL ON SCROLL (restrained)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Eight items now share the bar. Above this width they sit at their full
   rhythm; below it the space between them tightens rather than the labels
   wrapping onto two lines. Type size, weight and colour are untouched — only
   the horizontal padding, and only in the band where it is needed. The
   underline still tracks the padding it is given. */
@media (max-width: 1180px) {
  .nav { gap: 0; }
  .nav__link { padding-inline: 9px; }
  .nav__link::after { left: 9px; right: 9px; }
}

@media (max-width: 1120px) {
  .trusted__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  /* Both bar actions go with the nav; the drawer carries them instead. */
  .nav, .header__cta, .header__login { display: none; }
  .burger { display: flex; }
  .pillars { grid-template-columns: 1fr; }
  .pillar__frame { aspect-ratio: 21 / 9; }

  /* The pillars stack here, so Other Services is a full-width card and its
     tiles are wide enough to carry the pillar titles' own size again. The
     floor still tracks the longest word at phone widths. */
  .module__label { font-size: clamp(20px, calc(17px + 0.8vw), 25px); }

  /* One line below this width would shrink the statement too far, so the two
     sentences stack again and the type grows back. */
  .hero__line { display: block; text-wrap: balance; }
  .hero__title { font-size: clamp(32px, 5vw, 50px); }

  /* One outcome per row: two narrow columns would reintroduce the wrapping
     the 2x2 grid exists to avoid. */
  .outcomes__grid { grid-template-columns: 1fr; }
  .outcome,
  .outcome:nth-child(odd),
  .outcome:nth-child(even) {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .outcome:last-child { border-bottom: 0; padding-bottom: 0; }
  .outcome:nth-last-child(2) { padding-bottom: clamp(28px, 3vw, 44px); }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }

  .hero { padding-top: 112px; }
  .hero__title { font-size: clamp(30px, 6.4vw, 44px); }

  .proof__grid { grid-template-columns: 1fr; }
  .proof__item {
    flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 16px; text-align: left;
    padding: 22px 20px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .proof__item:last-child { border-bottom: 0; }
  .proof__number { font-size: 30px; }
  .proof__text { align-items: flex-start; gap: 0; }

  /* The process paths wrap onto two lines rather than shrinking the type. */
  .path__steps { flex-wrap: wrap; row-gap: 8px; }
  .path--moni .path__step { font-size: 19px; }
  .rail { min-width: 22px; }

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

  .final-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .final-cta__actions { width: 100%; }
  .final-cta__actions .btn { flex: 1 1 auto; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__legal { margin-left: 0; }

  .ai-fab { right: 16px; bottom: 16px; padding: 12px 16px; }
  .ai-panel {
    right: 8px; left: 8px; bottom: 8px;
    width: auto;
    max-height: calc(100vh - 80px);
  }
  /* Stay two-column on mobile; tighten the tiles instead of collapsing them. */
  .modules { gap: 6px; }
  .module { padding: 9px 10px; font-size: 12.5px; gap: 8px; }
}

@media (max-width: 400px) {
  .ai-fab__label { display: none; }
  .ai-fab { padding: 13px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Deep-link landing ------------------------------------------------------
   The header is position:fixed at 76px, so a browser that scrolls an element
   to the top of the viewport puts that element underneath it. scroll-margin
   is the one mechanism that fixes this without any script: it tells the
   scroll itself to stop short.

   Applied to the page's own section slots — the ids app.js's deep-link
   handler targets — and to .anchor-target for anything deeper in the page
   that names itself, such as the Table QR story on MONI F&B.

   96px, not 76: the header's height plus enough air that the heading reads
   as the top of a section rather than as something jammed under a bar. */
#main > [id],
.anchor-target { scroll-margin-top: 96px; }
