/* ==========================================================================
   MONI — Homepage light theme
   Loaded after main.css by index.html only, and every rule is scoped to
   .home on <body>. Nothing here reaches another page: the product pages,
   About, Trusted By, Other Services and Resources keep the dark system
   exactly as it is, including the header and footer they share.

   The homepage inverts that system: a white page with very light neutral
   bands, dark type, hairline borders and restrained green. The hero is the
   one dark area left, a solid charcoal band that the pillar cards rise into.

   Nothing structural changes — no markup, no component, no route. This file
   only repaints what main.css already laid out.
   ========================================================================== */

.home {
  /* Surfaces */
  --h-ink:       #0D0E10;   /* hero band, and the darkest type */
  --h-page:      #FFFFFF;
  --h-panel:     #F6F7F8;   /* the light neutral band between white ones */
  --h-panel-2:   #FAFBFC;   /* a half step, for hover and nested fills */
  --h-card:      #FFFFFF;

  /* Lines — hairlines only, no heavy edges */
  --h-line:      #E5E8EA;
  --h-line-soft: #EEF0F2;
  --h-line-hard: #D7DBDE;

  /* Type */
  --h-text:      #111315;   /* headings and figures      16.9:1 on white */
  --h-body:      #52585F;   /* body copy                  7.2:1 on white */
  --h-dim:       #6B7179;   /* meta, captions, labels     4.9:1 on white */

  /* Green. The brand value stays for anything the eye reads as a surface —
     buttons, fills, bars. Green *text* on white would sit at 3.3:1, so type
     uses a darker step of the same hue at 5.3:1 instead. */
  --h-green:     var(--accent);
  --h-green-txt: #0E7C38;
  --h-green-bg:  #F1FAF4;   /* the faintest green wash, for the final CTA */
  --h-green-ln:  #D8EDE1;

  background: var(--h-page);
  color: var(--h-body);
}

/* Slightly more air than the dark pages carry. */
.home { --section-y: clamp(62px, 6.8vw, 100px); }

.home h1, .home h2, .home h3, .home h4 { color: var(--h-text); }
.home p { color: var(--h-body); }
.home .eyebrow { color: var(--h-dim); }

/* ==========================================================================
   HEADER — white bar, dark navigation, green Get Started
   ========================================================================== */
/* Solid white, not a translucent one. The bar is fixed over the dark hero
   band, so 88% white was letting the charcoal through and reading as grey —
   which in turn made the white ground of the logo file show as a rectangle
   against it. At full opacity the two whites are the same white and the
   mark sits on the bar with no edge. */
.home .header {
  background: #FFFFFF;
  border-bottom-color: transparent;
}
.home .header.is-scrolled {
  background: #FFFFFF;
  border-bottom-color: var(--h-line);
}
/* Larger mark, same bar. 30px to 40px is a third more presence and still
   leaves 18px of air above and below inside the existing 76px header, so
   nothing moves and the bar does not grow. Height alone, with width:auto
   from main.css, so the proportions are the file's own. Homepage only: the
   dark pages carry the reversed lockup and keep their own size. */
.home .header .logo img { height: 40px; }

.home .nav__link { color: var(--h-text); }
.home .nav__link:hover { color: var(--h-green-txt); }
/* The underline keeps its brand green. */
.home .nav__link::after { background: var(--h-green); }

.home .dropdown {
  background: #FFFFFF;
  border-color: var(--h-line);
  box-shadow: 0 10px 28px rgba(17, 19, 21, .07);
}
.home .dropdown a { color: var(--h-body); }
.home .dropdown a:hover { background: var(--h-panel); color: var(--h-text); }
.home .dropdown__lock,
.home .mobile-nav__sub .dropdown__lock { color: var(--h-dim); }

/* Burger and drawer follow the bar. */
.home .burger { border-color: var(--h-line-hard); }
.home .burger span,
.home .burger span::before,
.home .burger span::after { background: var(--h-text); }
.home .burger[aria-expanded="true"] span { background: transparent; }

.home .mobile-nav {
  background: #FFFFFF;
  border-top-color: var(--h-line);
}
.home .mobile-nav a.mobile-nav__link {
  color: var(--h-text);
  border-bottom-color: var(--h-line);
}
.home .mobile-nav__sub { border-bottom-color: var(--h-line); }
.home .mobile-nav__sub a { color: var(--h-body); }

/* ==========================================================================
   HERO — the one dark area, with the pillars rising into it
   The band sits on #hero (the full-width mount) rather than on .hero (which
   is a container), so it bleeds edge to edge without any markup change.
   ========================================================================== */
.home { --h-overlap: clamp(72px, 9vw, 132px); }

.home #hero { background: var(--h-ink); }

.home .hero {
  padding-top: clamp(100px, 9.4vw, 140px);
  /* Room for the statement, plus the strip the cards will cover. */
  padding-bottom: calc(var(--h-overlap) + clamp(30px, 3.4vw, 48px));
}
/* Two lines, centred and larger — the statement is the whole hero. */
.home .hero__title {
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: 1.07;
  letter-spacing: -.04em;
  color: #FFFFFF;
  max-width: 20ch;
}
.home .hero__line { display: block; }
.home .hero__title em { color: var(--h-green); }

/* ==========================================================================
   BUSINESS PILLARS — white cards lifted into the dark band
   ========================================================================== */
.home #business-pillars {
  position: relative;      /* paints above the hero band */
  margin-top: calc(-1 * var(--h-overlap));
}
/* About's "Explore Our Solutions" lands on #solutions, the section inside
   this mount. The mount is pulled up into the hero band, so an untreated
   landing would sit behind the dark band and under the fixed header; this
   drops it to where the cards actually start. Scroll position only —
   nothing about the layout moves. */
.home #solutions { scroll-margin-top: calc(var(--h-overlap) + 92px); }
/* The section carries its top padding inline, which would push the cards
   back out of the band; this is the one place an override has to win
   against a style attribute. */
.home #business-pillars > .section { padding-top: 0 !important; }

.home .pillar {
  background: var(--h-card);
  border-color: var(--h-line);
}
.home .pillar:hover {
  background: var(--h-card);
  border-color: var(--h-line-hard);
}
.home .pillar__frame { background: var(--h-panel); }
/* Only the Business Intelligence card contains rather than covers, and its
   screenshot is light, so the band the frame leaves above and below it is a
   light neutral. It was near-black for the mock that used to sit here, which
   would now letterbox a white dashboard. */
.home .pillar__frame--contain { background: var(--h-panel-2); }

/* The coloured disc above each title is gone: the titles carry the
   hierarchy on their own now. Its clearance goes with it. */
.home .pillar__badge { display: none; }
.home .pillar__body { padding-top: clamp(22px, 2.2vw, 28px); }

/* One typographic colour across all four cards — no pillar colour in type. */
.home .pillar__title { color: var(--h-text); }
.home .pillar__copy  { color: var(--h-body); }

.home .caps { border-top-color: var(--h-line); }
.home .caps__label { color: var(--h-dim); }
.home .cap { color: var(--h-body); }
.home .cap__icon { color: var(--h-text); opacity: 1; }
/* The tick keeps the brand green rather than the darker text step: it is an
   icon, not type, and at 3.3:1 it clears the 3:1 bar non-text contrast asks
   for. No hover rule — these rows are not interactive. */
.home .cap__tick { color: var(--h-green); }

/* Every "Explore …" reads green, whichever card it closes. */
.home .pillar__cta .arrow-link { color: var(--h-green-txt); }

/* Other Services: the four tiles, light. */
.home .pillar--other { --pillar: var(--h-text); }
.home .module {
  background: var(--h-panel-2);
  border-color: var(--h-line);
  color: var(--h-body);
}
.home .module:hover {
  background: var(--h-panel);
  border-color: var(--h-line-hard);
  color: var(--h-text);
}
/* Now that the names carry title weight and size, they take the heading
   colour the pillar titles use rather than the body step. */
.home .module__label { color: var(--h-text); }
.home .module__icon { color: var(--h-text); }
.home .module .arrow { color: var(--h-dim); }
.home .module:hover .arrow { color: var(--h-green-txt); }

/* ==========================================================================
   PROOF POINTS + CUSTOMER MARQUEE — a light panel on white
   ========================================================================== */
.home .proof {
  background: var(--h-panel);
  border-color: var(--h-line);
}
.home .proof__item { border-right-color: var(--h-line); }
.home .proof__item:hover,
.home .proof__item.is-active { background: var(--h-panel-2); }

.home .proof__icon { color: var(--h-green); }
.home .proof__number { color: var(--h-text); }
.home .proof__label { color: var(--h-body); }
.home .proof__hint { color: var(--h-dim); }
.home .proof__reveal.is-open { border-top-color: var(--h-line); }

.home .marquee__item {
  background: var(--h-card);
  border-color: var(--h-line);
  color: var(--h-body);
}
.home .marquee__item:hover {
  background: var(--h-card);
  border-color: var(--h-line-hard);
  color: var(--h-text);
}
.home .marquee__nav {
  border-color: var(--h-line-hard);
  color: var(--h-body);
  background: var(--h-card);
}
.home .marquee__nav:hover { border-color: var(--h-text); color: var(--h-text); }

/* ==========================================================================
   BEYOND POS — the light neutral band of the page
   ========================================================================== */
.home .beyond {
  background: var(--h-panel);
  border-color: var(--h-line);
}
.home .beyond .eyebrow { color: var(--h-green-txt); }
.home .beyond__headline { color: var(--h-text); }

/* --- The two paths -------------------------------------------------------- */
.home .path--conventional,
.home .path--conventional .path__label,
.home .path--conventional .path__step { color: var(--h-dim); }
.home .path--conventional .rail { background: var(--h-line-hard); color: var(--h-line-hard); }
.home .path--conventional .path__step--stop { color: var(--h-dim); }
.home .path__stopbar { background: var(--h-line-hard); }

.home .path--moni { border-top-color: var(--h-line); }
.home .path--moni .path__label { color: var(--h-green-txt); }
.home .path--moni .path__step { color: var(--h-text); }
.home .path--moni .path__step:last-child { color: var(--h-green-txt); }
.home .path--moni .rail { background: var(--h-line-hard); color: var(--h-green); }

/* --- Outcomes: white cards on the band ------------------------------------ */
.home .outcomes__label {
  color: var(--h-green-txt);
  border-bottom-color: var(--h-line);
}
.home .outcomes__grid { gap: clamp(14px, 1.5vw, 20px); }
.home .outcome,
.home .outcome:nth-child(odd),
.home .outcome:nth-child(even),
.home .outcome:nth-last-child(-n+2) {
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--h-card);
  border: 1px solid var(--h-line);
  border-radius: var(--radius);
}
.home .outcome:hover { background: var(--h-card); border-color: var(--h-line-hard); }
.home .outcome__title { color: var(--h-text); }
.home .outcome__copy { color: var(--h-body); }

/* --- The small data visuals ----------------------------------------------- */
.home .viz__caption { color: var(--h-dim); }
.home .viz-row__label { color: var(--h-body); }
.home .viz-row__value { color: var(--h-text); }
.home .viz-bar { background: var(--h-line-soft); }
.home .viz-bar__fill { background: var(--h-dim); }
/* Neutral series read green here, the way the rest of the page does. */
.home .viz .viz-row:not(.viz-row--up):not(.viz-row--down) .viz-bar__fill { background: var(--h-green); }
.home .viz-row--up .viz-bar__fill { background: var(--h-green); }
.home .viz-row--up .viz-row__value { color: var(--h-green-txt); }
.home .viz-row--down .viz-bar__fill { background: var(--neg); }
.home .viz-row--down .viz-row__value { color: #C0392B; }
.home .outcome:hover .viz-bar__fill { filter: none; }

.home .viz-stat__label { color: var(--h-dim); }
.home .viz-stat__value { color: var(--h-text); }
.home .viz-delta--up { color: var(--h-green-txt); }
.home .viz-delta--down { color: #C0392B; }

.home .viz-drill + .viz-drill { border-top-color: var(--h-line); }
.home .viz-drill__tick { background: var(--h-line-hard); }
.home .viz-drill--0 .viz-drill__tick { background: var(--h-green); }
.home .viz-drill__label { color: var(--h-body); }
.home .viz-drill--0 .viz-drill__label { color: var(--h-text); }
.home .viz-drill__value { color: var(--h-text); }
.home .viz-drill--2 .viz-drill__value { color: var(--h-body); }

/* ==========================================================================
   TRUSTED BY — white
   ========================================================================== */
.home .trusted__title { color: var(--h-text); }
.home .trusted__sub { color: var(--h-body); }
/* The component sets this link's colour inline; the darker step reads
   better at this size on white. */
.home .trusted__head .arrow-link { color: var(--h-green-txt) !important; }

/* Two parts rather than one box: the image frame is the card's only
   bordered surface, and the name sits beneath it on the page. The card
   itself stops being a container, which is what gives the image the whole
   width and height it used to share with the text. */
.home .customer-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.home .customer-card:hover { border-color: transparent; }

/* Square, so every frame matches and the image is the card. These sources
   are all square too, so nothing is cropped by the ratio itself. */
.home .customer-card__media {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--h-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color var(--dur) var(--ease);
}
.home .customer-card:hover .customer-card__media { border-color: var(--h-line-hard); }

/* A storefront photograph fills the frame edge to edge. */
.home .customer-card__media--photo img { object-fit: cover; }
/* A brand mark is inset and shown whole — scaled up close to the frame, so
   it reads as the hero rather than as a thumbnail, but never touching the
   edge and never stretched. */
.home .customer-card__media--logo { padding: clamp(10px, 1.1vw, 16px); }
.home .customer-card__media--logo img { object-fit: contain; }

/* The name: a plain label under the frame, left aligned. */
.home .customer-card__body { padding: 12px 2px 0; }
.home .customer-card__name {
  color: var(--h-text);
  text-align: left;
}

/* ==========================================================================
   FINAL CTA — the faintest green wash
   ========================================================================== */
.home .final-cta {
  background: var(--h-green-bg);
  border-color: var(--h-green-ln);
}
.home .final-cta__icon {
  background: #FFFFFF;
  border: 1px solid var(--h-green-ln);
  color: var(--h-green-txt);
}
.home .final-cta__title { color: var(--h-text); }

/* Ghost button, light: a white face with a hairline rather than a dark one. */
.home .btn--ghost {
  background: #FFFFFF;
  border-color: var(--h-line-hard);
  color: var(--h-text);
}
.home .btn--ghost:hover {
  background: #FFFFFF;
  border-color: var(--h-text);
}

/* ==========================================================================
   RESELLER NETWORK — a light band between the final CTA and the footer
   The component renders only on this page, so its whole definition lives
   here rather than in main.css. The band sits on the #reseller-network
   mount so it bleeds edge to edge while the section keeps the container.
   ========================================================================== */
.home #reseller-network { background: var(--h-panel); }

.home .rsl__head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 3.2vw, 44px);
}
/* Compact against the section headings above it: this is a supporting
   block, not another argument. */
.home .rsl__title {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--h-text);
  text-wrap: balance;
}
.home .rsl__copy {
  margin-top: 14px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--h-body);
}

.home .rsl__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 18px);
}

/* One tile size for every slot, so the row holds its rhythm whether a logo
   has arrived or not. No hover, no cursor change, nothing to click. */
.home .rsl__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(84px, 8vw, 104px);
  padding: clamp(14px, 1.6vw, 22px);
  background: var(--h-card);
  border: 1px solid var(--h-line);
  border-radius: var(--radius-sm);
}

/* The logo keeps its own proportions: capped on both axes with width and
   height auto, so nothing is ever stretched or cropped. The height cap is
   per logo — see the note on `cap` in data.js — because one shared height
   would leave a wide wordmark dominating and a stacked lockup looking tiny.
   The width cap only ever catches the very widest marks on narrow tiles. */
.home .rsl__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--rsl-h, 40px);
  object-fit: contain;
}

/* Tablet and below: two across. */
@media (max-width: 1000px) {
  .home .rsl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobile keeps two across — the tiles stay comfortably wide enough for a
   logo at this height, and one per row would run the section too long. */
@media (max-width: 600px) {
  .home .rsl__slot { min-height: 76px; padding: 14px; }
  /* Scale the whole set down together, so the balance between the eight is
     preserved rather than flattened to one height. */
  .home .rsl__logo { max-height: calc(var(--rsl-h, 40px) * .78); }
}

/* ==========================================================================
   FOOTER — white, closed by a hairline
   ========================================================================== */
.home .footer {
  background: var(--h-page);
  border-top-color: var(--h-line);
}
.home .footer__copy { color: var(--h-dim); }
.home .footer__links a { color: var(--h-body); }
.home .footer__links a:hover { color: var(--h-text); }
.home .footer__divider { background: var(--h-line-hard); }
.home .footer__social a { color: var(--h-dim); }
.home .footer__social a:hover { background: var(--h-panel); color: var(--h-text); }

/* ==========================================================================
   FOCUS
   The global ring is brand green, which holds up on white; only its
   offset colour assumption changes.
   ========================================================================== */
.home :focus-visible { outline-color: var(--h-green-txt); }
