/* 2.4.6 — literal sweep: a literal whose value IS a token became it; the rest is a value this
   file paints by hand and is counted in the report. The names are global-2026.css's own aliases (2.4.2); a value only the system holds is written --pui-*. */
/* =========================================================================
   PAGE: MAFO — page-specific CSS, linked from resources/views/mafo.blade.php.
   Deconstructed from html_prototypes/mafo.html + css/pages/mafo.css. All rules
   are scoped under .page-mafo. The shared form/button library at the bottom is
   the repo-side fork (the prototype sources it from its global styles.css).
   ========================================================================= */

/* ---------- Anti-cascade overrides (defeat layout.min.css + bootstrap.min.css) ---------- */
/* 2.4.2 — guard: the page's anti-cascade resets (`button`, `a:link…`) outrank a one-class component (0,1,1 / 0,2,1 over
   0,1,0); they now skip any element carrying a pui- class (inside :where(), so their specificity is unchanged — D60) and the package paints its own. */
.page-mafo a:where(:not([class*="pui-"])):link,
.page-mafo a:where(:not([class*="pui-"])):visited,
.page-mafo a:where(:not([class*="pui-"])):hover,
.page-mafo a:where(:not([class*="pui-"])):focus,
.page-mafo a:where(:not([class*="pui-"])):active { color: inherit; text-decoration: none; }

.page-mafo button:where(:not([class*="pui-"])) {
  font-family: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.page-mafo img { display: block; max-width: 100%; }

.page-mafo ul { list-style: none; padding: 0; margin: 0; }

.page-mafo .container {
  width: 1320px;
  max-width: 1320px;
  padding-left: var(--pui-space-12);
  padding-right: var(--pui-space-12);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}


/* A3 — the toggle is a .pui-navigation-panel__link; the page's button reset skips pui- classes, so its padding guard went */

/* ---------- Page shell / sticky footer ---------- */
.page-mafo {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* The absolutely-positioned .mafo-contact__gradient bleeds past the footer and
     would lengthen the page (empty band under the footer). Clip it at the page
     wrapper — which ends at the footer — instead of touching the shared footer.
     `clip` (not hidden) doesn't create a scroll container, so the fixed nav and
     any sticky descendants are unaffected. */
  overflow: clip;
}
.page-mafo .mafo-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 115px;       /* clears the fixed floating nav */
}

/* ===========================================================
   SECTION TITLE + SUBTITLE (shared across sections)
   =========================================================== */
/* Type comes from the shared `.headline-small` class. */
.page-mafo :where(.mafo-main) section > .pui-text--headline-small {
  margin: 0 0 var(--pui-space-32);
}
.page-mafo section > .pui-heading-pair--section { margin: 0 0 var(--pui-space-32); }   /* the space under the pair is the page's */

/* ===========================================================
   HERO — pink gradient card + partner strip
   =========================================================== */
.page-mafo .mafo-hero__card {
  background-image: linear-gradient(107deg, color-mix(in srgb, var(--pui-color-red-400) 14%, transparent) 26%, rgba(217, 71, 214, 0.14) 99%);
  border-radius: var(--pui-radius-32);
  padding: var(--pui-space-48);
  display: flex;
  flex-direction: column;
  gap: var(--pui-space-64);
}
/* Grid so the sub can reflow full-width below at tablet/mobile (matches Figma)
   without breaking the desktop left-stack + right-image layout. */
.page-mafo .mafo-hero__top {
  display: grid;
  grid-template-columns: 552px 603px;
  justify-content: space-between;
  align-content: center;
  grid-template-areas:
    "logo    media"
    "title   media"
    "sub     media"
    "actions media";
}
.page-mafo .mafo-hero__logo { grid-area: logo; width: 304px; height: auto; margin-bottom: var(--pui-space-32); }
.page-mafo :where(.mafo-hero__top) > .pui-text--headline-small {
  grid-area: title;
  margin: 0 0 var(--pui-space-12);
  font-weight: var(--pui-font-weight-500);
  color: var(--pui-text-default);
}
.page-mafo :where(.mafo-hero__top) > .pui-text--body-large {
  grid-area: sub;
  margin: 0 0 var(--pui-space-32);
  color: var(--pui-text-muted);
}
.page-mafo .mafo-hero__actions { grid-area: actions; display: flex; gap: var(--pui-space-16); flex-wrap: wrap; }
/* A1 — the secondary's hover is action/secondary/bg-hover */
.page-mafo :where(.mafo-hero__top) > .pui-media-host { grid-area: media; align-self: center; width: 603px; }
.page-mafo :where(.mafo-hero__top) > .pui-media-host img,
.page-mafo .mafo-hero__video {
  display: block;
  width: 100%;
  height: auto;             /* defeat the height="339" attr so aspect-ratio drives height */
  aspect-ratio: 603 / 339;
  object-fit: cover;
  border: 0;
  border-radius: var(--pui-radius-16);
  box-shadow: var(--pui-shadow-xxl-soft);
}
.page-mafo .mafo-hero__video { background: var(--pui-color-neutral-1000); }
.page-mafo .mafo-hero__logos {
  background: var(--pui-color-neutral-0);
  border-radius: var(--pui-radius-8);
  padding: var(--pui-space-12) var(--pui-space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pui-space-16);
}
.page-mafo .mafo-hero__logos img { width: auto; flex-shrink: 1; min-width: 0; }

/* ===========================================================
   CAPABILITY CHIPS — 6 coloured icon cards (3 per row)
   =========================================================== */
.page-mafo .mafo-chips {
  margin-top: var(--pui-space-48);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 28px;
}
.page-mafo :where(.mafo-chips) > .pui-card {
  width: calc((100% - 56px) / 3);
  /* A2 — the chip is a Card with a header only: surface/card, radius 16, padding 20 — its height hugs the 64 box (104, plus the kit's 1 px transparent border); `width` is the grid's, the frost stays (stated) */
}

/* ===========================================================
   KEY FACTS — 4 coloured stat cards (shared .fact-card pattern)
   =========================================================== */
.page-mafo .mafo-facts { margin-top: var(--pui-layout-page-section-gap); }
.page-mafo .mafo-facts__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-mafo .pui-kpi-tile {
  width: 300px;
  height: 172px;
  /* A2 — the tile (radius 16, padding 20, the two blocks pushed apart) is .pui-kpi-tile — kpi-tile.css names the site's stat cards; the fixed height and width stay the site's grid (the kit hugs); the frost stays (stated) */
}
.page-mafo .mafo-facts__grid .pui-kpi-tile:nth-child(2) { width: 319px; }
/* A2 — the tint is the tile's tone (kpi/tone/{tone}/bg — the same 100 tints) */
.page-mafo .pui-kpi-tile__value {
  margin: 0;
  white-space: nowrap;
  /* A2 — the value (title/large: 36 SemiBold on a 1.2 line, text/default for the site's neutral/800 — stated) is .pui-kpi-tile__value */
}
/* A2 — the tag's tint and ink are tint/{tone} (the same 200-on-300 pairs; neutral's ink neutral/600 for the site's 400 — stated, R5) */
.page-mafo .pui-kpi-tile__label {
  margin: 0;
  /* A2 — the label (body/small on a 1.4 line) is .pui-kpi-tile__label; its 12 px inset goes — the tile's padding is the box (stated) */
}

/* ===========================================================
   WHAT IS MAFO — intro + red "Core capabilities" card
   =========================================================== */
.page-mafo .mafo-what { margin-top: var(--pui-layout-page-section-gap); }
.page-mafo .mafo-what__card {
  background: var(--pui-color-light-blue-100);
  border-radius: var(--pui-radius-32);
  padding: var(--pui-space-48) var(--pui-space-32);
  display: flex;
  align-items: center;
  gap: var(--pui-space-32);
  box-shadow: var(--pui-elevation-card);
}
.page-mafo .mafo-what__intro { flex: 0 0 555px; max-width: 555px; padding: 0 51px; }
.page-mafo :where(.mafo-what__intro) > .pui-text--title-small {
  margin: 0 0 var(--pui-space-16);
  color: var(--pui-text-default);
}
.page-mafo :where(.mafo-what__intro) > .pui-text--body-medium {
  margin: 0;
  color: var(--pui-text-default);
}
.page-mafo .mafo-what__cap-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.page-mafo :where(.mafo-what__cap-col) > .pui-card {
  width: 612px;
  max-width: 100%;
  /* A2 — the white card (radius 16, padding 20, gap 12) is .pui-card--plain; `width` stays — the section's column */
}
.page-mafo .mafo-cap__cols { display: flex; gap: var(--pui-space-12); }
.page-mafo :where(.mafo-cap__cols) > .pui-icon-list {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pui-space-12);
  padding: var(--pui-space-12);
  background: var(--pui-color-neutral-0);
  border-radius: var(--pui-radius-8);
}
/* Item styling: shared .icon-list component (global-2026.css) — no per-page item/icon/text rules. */

/* ===========================================================
   INSIGHT — red-bar intro quote (Demand + Supply)
   =========================================================== */
.page-mafo .pui-insight-block {
  margin-top: var(--pui-space-32);
  max-width: 740px;          /* Figma: the quote block is 740 wide, not full-bleed */
}
/* Figma fixes each quote block at its own width: Demand 740 (#3896:7301),
   Supply and AI Decision System 636 (#3896:7306 / #3896:7483). */
.page-mafo .mafo-supply .pui-insight-block,
.page-mafo .mafo-ai .pui-insight-block { max-width: 636px; }

/* ===========================================================
   CROSS-SCREEN — copy column beside the design system's cross-screen scene
   =========================================================== */
/* Figma lays the two children out with SPACE_BETWEEN inside a fixed 1296
   frame while their own widths total 1424, so the scene deliberately
   overlaps the copy column by space/128. The scene's left third is empty, so
   the overlap reads as breathing room rather than a collision. */
.page-mafo .mafo-cross {
  margin-top: var(--pui-layout-page-section-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: clip;
}
.page-mafo .mafo-cross__copy {
  flex: 0 0 570px;
  max-width: 570px;
  display: flex;
  flex-direction: column;
  gap: var(--pui-space-40);
}
.page-mafo :where(.mafo-cross__copy) > .pui-text--title-small {
  margin: 0;
  color: var(--pui-text-default);
}
.page-mafo :where(.mafo-cross__copy) > .pui-icon-list {
  width: 430px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--pui-space-32);
}
/* This block's instances override the shared medium desc to body-medium;
   every other Icon_list_medium on the page stays at body-small. */
/* R — request 12 shipped: the kit paints the neutral row's glyph text/subtle (the same grey, by role); the Phase 2 guard went */

/* The scene is <pepper-illustration scene="cross-screen-close"> (@pepperui/illustrations): its width
   is this box's and its height follows the picture's 1000 × 687 — no script. The aspect-ratio reserves
   that box before the element is defined, so the first paint holds the layout. At ≥ 1024 the box is the
   fixed 854, and the height is stated as Figma's whole 587 (854 × 687 / 1000 = 586.7): the whole pixel
   keeps every line below the block on the same sub-pixel rows as before — measured at gate 08. */
.page-mafo .mafo-cross__scene {
  flex: 0 0 854px;
  width: 854px;
  margin-left: calc(var(--pui-space-128) * -1);   /* 14 — an overlap, not a gap: the primitive, never the section step */
}
.page-mafo .mafo-cross__scene pepper-illustration { display: block; aspect-ratio: 1000 / 687; }
@media (min-width: 1024px) { .page-mafo .mafo-cross__scene pepper-illustration { height: 587px; } }

/* Below 1024 the 570 + 854 pair can no longer sit side by side, so the scene
   drops under the copy at full width and drops its desktop overlap; its height
   follows its width (the picture's own ratio), so the framing survives. */
@media (max-width: 1023px) {
  .page-mafo .mafo-cross { flex-direction: column; align-items: flex-start; gap: var(--pui-space-40); }
  .page-mafo .mafo-cross__copy { flex: 0 1 auto; width: 100%; max-width: 100%; }
  .page-mafo :where(.mafo-cross__copy) > .pui-icon-list { width: 100%; }
  .page-mafo .mafo-cross__scene { flex: 0 1 auto; width: 100%; margin-left: 0; }
}
@media (max-width: 767px) {
  .page-mafo .mafo-cross { gap: var(--pui-space-32); }
  .page-mafo .mafo-cross__copy { gap: var(--pui-space-32); }
  .page-mafo :where(.mafo-cross__copy) > .pui-icon-list { gap: var(--pui-space-24); }
}

/* ===========================================================
   PRODUCT SHOWCASE — laptop drawn as CSS shapes (1:1 with the
   Figma layer stack) wrapping a cross-fading slide deck, with
   the red decoration blob bleeding out behind it
   =========================================================== */
/* Every part below is positioned in Figma pixels multiplied by --u, which is
   1/1296th of the section width. One container query drives the whole rig, so
   the laptop stays vector-sharp and correctly proportioned at any width
   instead of needing a redraw per breakpoint. */
.page-mafo .mafo-showcase {
  margin-top: var(--pui-layout-page-section-gap);
  container-type: inline-size;
}
.page-mafo .mafo-showcase__stage {
  --u: calc(100cqw / 1296);    /* 1 laptop design px */
  --bu: calc(100cqw / 770);    /* 1 browser-window design px */
  position: relative;
  height: calc(660.31 * var(--u));
}

/* Blob is absolute inside the stage, so it travels with the laptop instead of
   being pinned to the page. It is deliberately wider than the stage and starts
   above it — .page-mafo's overflow:clip keeps the overhang off the scrollbar. */
.page-mafo .mafo-showcase__blob {
  position: absolute;
  left: calc(-1.95 * var(--u));
  top: calc(-229.9 * var(--u));
  width: calc(1472.38 * var(--u));
  height: calc(1165.85 * var(--u));
  max-width: none;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.page-mafo .showcase-device {
  position: relative;
  z-index: 1;
  height: 100%;
}

/* --- lid + screen --- */
.page-mafo .laptop__lid {
  position: absolute;
  left: calc(142.56 * var(--u));
  top: 0;
  width: calc(1010.88 * var(--u));
  height: calc(605.88 * var(--u));
  background: #08080a;
  border: calc(1.296 * var(--u)) solid #33353a;
  border-radius: calc(31.104 * var(--u)) calc(31.104 * var(--u)) calc(5.184 * var(--u)) calc(5.184 * var(--u));
}
.page-mafo .showcase-screen {
  position: absolute;
  left: calc(155.52 * var(--u));
  top: calc(12.96 * var(--u));
  width: calc(984.96 * var(--u));
  height: calc(554.04 * var(--u));
  background: var(--pui-color-neutral-0);
  border-radius: calc(20.736 * var(--u)) calc(20.736 * var(--u)) 0 0;
  overflow: hidden;
  /* Keeps the slides' stacking to themselves — without it their z-index
     competes with the notch/chin/base and paints the screenshot over them. */
  isolation: isolate;
}

/* --- slide deck --- */
.page-mafo .showcase-slides { position: absolute; inset: 0; }
/* The screen cut-out is exactly 16:9 (984.96 x 554.04 = 760 x 427.5 Figma px),
   which is the slides' own aspect, so the slide fills it edge to edge and
   nothing is cropped. The earlier -5.19/+5.18 horizontal bleed existed only
   because the old product screenshots were 1980x1108 (1.787:1); with 1920x1080
   artboards that same bleed would shave the sidebar and the right-hand cards,
   whose content runs to the very edge of the design. */
.page-mafo .showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 900ms var(--pui-motion-easing);   /* D — the easing by name (CSS ease is the kit's standard curve); 900 ms is the slideshow's own cross-fade, three times the longest motion token — stated */
}
/* The outgoing slide holds full opacity underneath while the incoming one
   fades in over it. Fading both at once lets the white screen wash through
   the middle of the transition and ghosts the two dashboards together. */
.page-mafo .showcase-slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
.page-mafo .showcase-slide.is-active { opacity: 1; z-index: 2; }

/* --- webcam notch, with its sensor + lens --- */
.page-mafo .laptop__notch {
  position: absolute;
  left: calc(593.57 * var(--u));
  top: calc(11.66 * var(--u));
  width: calc(108.86 * var(--u));
  height: calc(28.51 * var(--u));
  background: #08080a;
  border-radius: 0 0 calc(12.96 * var(--u)) calc(12.96 * var(--u));
}
.page-mafo .laptop__notch::before,
.page-mafo .laptop__notch::after {
  content: "";
  position: absolute;
  top: calc(13.8 * var(--u));
  transform: translateY(-50%);
  border-radius: 50%;
}
.page-mafo .laptop__notch::before {          /* ambient-light sensor */
  left: calc(35.7 * var(--u));
  width: calc(7.6 * var(--u));
  height: calc(7.6 * var(--u));
  background: #17291e;
}
.page-mafo .laptop__notch::after {           /* camera lens */
  left: calc(59 * var(--u));
  width: calc(12.6 * var(--u));
  height: calc(12.6 * var(--u));
  background: #050914;
  border: calc(1.3 * var(--u)) solid #1c2e4a;
}

/* --- chin, base deck, opener notch, deck highlight --- */
.page-mafo .laptop__chin {
  position: absolute;
  left: calc(147.75 * var(--u));
  top: calc(567 * var(--u));
  width: calc(1000.51 * var(--u));
  height: calc(33.7 * var(--u));
  background: #08080a;
}
/* Two-layer background paints the deck gradient inside the border box and the
   metal edge gradient in the border itself — border-image can't do this while
   keeping the radius. */
.page-mafo .laptop__base {
  position: absolute;
  left: calc(51.84 * var(--u));
  top: calc(603.29 * var(--u));
  width: calc(1192.32 * var(--u));
  height: calc(49.25 * var(--u));
  background:
    linear-gradient(180deg, #54555a 0%, #2b2c30 20%, #1e1f22 50%, #2c2d32 80%, #4f5055 100%) padding-box,
    linear-gradient(90deg, #8e9099 0%, #48494f 50%, #1b1c1e 100%) border-box;
  border: solid transparent;
  border-width: calc(1.296 * var(--u)) calc(1.296 * var(--u)) calc(2.592 * var(--u)) calc(1.944 * var(--u));
  border-radius: calc(5.184 * var(--u)) calc(5.184 * var(--u)) calc(25.92 * var(--u)) calc(25.92 * var(--u));
  box-shadow: 0 calc(20.736 * var(--u)) calc(41.472 * var(--u)) calc(-5.184 * var(--u)) color-mix(in srgb, var(--pui-color-neutral-1000) 36%, transparent);
}
.page-mafo .laptop__opener {
  position: absolute;
  left: calc(565.05 * var(--u));
  top: calc(603.29 * var(--u));
  width: calc(165.89 * var(--u));
  height: calc(16.85 * var(--u));
  background: #161719;
  border: solid #2f3135;
  border-width: 0 calc(1.296 * var(--u)) calc(1.296 * var(--u));
  border-radius: 0 0 calc(12.96 * var(--u)) calc(12.96 * var(--u));
}
/* Figma draws this as a separate LINE over the deck's top border. Both are
   hairlines, so if they get their own y-bands the rasteriser can land them on
   different device rows and the lit lip reads as two stacked lines with a step
   where the shorter one starts. Giving this exactly the deck's border-top band
   (same top, same height) makes them rasterise as one row at any zoom or DPR —
   it still paints over the opener notch, which Figma's z-order also does. */
.page-mafo .laptop__highlight {
  position: absolute;
  /* Figma insets this 10.37 from each deck edge, which leaves a visible step
     where it stops against the deck's rim. Run it the full flat width of the
     deck top instead — out to the tangent points where the 5.184 corner curve
     starts (51.84 + 5.184 ... 1244.16 - 5.184). Any further and its square end
     would poke out over the curve. */
  left: calc(57.024 * var(--u));
  top: calc(603.29 * var(--u));
  width: calc(1181.952 * var(--u));
  height: calc(1.296 * var(--u));
  background: linear-gradient(90deg, #8d8f98 0%, #808486 55%, #212224 100%);
}
.page-mafo .laptop__foot {
  position: absolute;
  top: calc(647.35 * var(--u));
  width: calc(82.94 * var(--u));
  height: calc(12.96 * var(--u));
  background: #111112;
  border-radius: calc(6.48 * var(--u));
}
.page-mafo .laptop__foot--l { left: calc(129.6 * var(--u)); }
.page-mafo .laptop__foot--r { left: calc(1083.46 * var(--u)); }

/* --- Browser window (tablet / mobile wrapper) ------------------------------
   Same shapes-only build as the laptop, in its own 770-wide design space via
   --bu. Figma's mobile slider is the tablet one scaled to 48.035% (height,
   radius, stroke and toolbar all land on that factor), so one component and
   one unit cover both breakpoints — nothing is re-drawn per screen. Hidden on
   desktop; the slide deck underneath is shared with the laptop. */
.page-mafo .browser__bar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .page-mafo .showcase-slide { transition: none; }
}

/* ===========================================================
   MAFO DEMAND — stacked-card slider (sticky stack + GSAP scale)
   =========================================================== */
/* clears the fixed nav when the hero CTAs (or a direct #hash) land on a section */
.page-mafo .mafo-demand,
.page-mafo .mafo-supply { scroll-margin-top: 120px; }
.page-mafo .mafo-demand { margin-top: var(--pui-layout-page-section-gap); }
.page-mafo .demand-stack-outer { position: relative; margin-top: var(--pui-space-40); }
.page-mafo .demand-stack { position: relative; padding-bottom: var(--pui-space-40); }
.page-mafo :where(.demand-stack) > .pui-card {
  position: sticky;
  flex-direction: row;          /* the slide lays its two columns side by side (the Card stacks) */
  top: 110px;
  /* Top-weighted halo (-2 up-offset · blur 64 · +7 spread) so the seam reads
     clearly on the card stacked behind it. */
  box-shadow: var(--pui-elevation-modal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: var(--pui-space-32);
  margin-bottom: var(--pui-space-24);
  transform-origin: top center;
  will-change: transform;
}
.page-mafo :where(.demand-stack) > .pui-card:nth-child(2) { top: 130px; }
.page-mafo :where(.demand-stack) > .pui-card:nth-child(3) { top: 150px; }
.page-mafo :where(.demand-stack) > .pui-card:nth-child(4) { top: 170px; }
.page-mafo :where(.demand-stack) > .pui-card:nth-child(5) { top: 190px; }
.page-mafo :where(.demand-stack) > .pui-card:last-child { margin-bottom: 0; }
/* Left column is a fixed 635px zone with the 436px text block centred inside
   it (matches Figma Frame 622566/622421); right column fills the rest with the
   426px media card centred. */
.page-mafo .demand-card__text-col {
  width: 635px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-mafo .demand-card__text { width: 436px; max-width: 100%; }
.page-mafo .demand-card__media-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-mafo :where(.demand-card__text) > .pui-text--title-small {
  margin: 0 0 var(--pui-space-12);
  color: var(--pui-text-default);
}
.page-mafo :where(.demand-card__text) > .pui-text--body-medium {
  margin: 0;
  color: var(--pui-text-default);
}
.page-mafo :where(.demand-stack) .pui-card--soft {
  width: 426px;
  max-width: 100%;
}
/* Items: shared .bullet-list component (global-2026.css) — no per-page li/img/span rules. */
/* Last card (Validation Prediction) is height-matched to ECHO AI behind it by
   js/mafo.js so it covers it in the sticky stack. The media card itself keeps
   hugging its content (no stretch); the slide's content stays centred vertically
   via the default align-items:center on the card / text-col / media-col. */

/* ===========================================================
   CARD GRID — Supply + AI Decision (mafo-card, 3 per row)
   =========================================================== */
.page-mafo .mafo-supply { margin-top: var(--pui-layout-page-section-gap); }
.page-mafo .mafo-ai { margin-top: var(--pui-layout-page-section-gap); }
.page-mafo .mafo-cardgrid {
  margin-top: var(--pui-space-40);
  display: flex;
  flex-wrap: wrap;
  gap: var(--pui-space-24);
  align-items: stretch;
}
.page-mafo .mafo-ai .mafo-cardgrid { margin-top: var(--pui-space-32); }
/* 2-up row (Demand core features) — the 3rd card became the full-width fraud card. */
.page-mafo .mafo-cardgrid--2up > .pui-card { width: calc((100% - 24px) / 2); }
.page-mafo :where(.mafo-cardgrid) > .pui-card {
  width: calc((100% - 48px) / 3);
  /* A2 — the card's paint and column (surface/card, radius 16, padding 20, gap 12) are .pui-card — card.css quotes the site's card master (D45); `width` is the grid's, the frost stays the site's (stated) */
}
.page-mafo :where(.mafo-cardgrid, .swiper-slide) > .pui-card > .pui-card__slot {
  flex: 1 1 auto;
  /* A2 — the white slot (radius 8, padding 12, gap 12) is .pui-card__slot; `flex: 1 1 auto` stays — the slot fills the card in a row of equal heights */
}
/* Items: shared .bullet-list component (global-2026.css) — no per-page li/img/span rules. */

/* ===========================================================
   CORE FEATURES — overview summary-card block (Demand + Supply).
   Reuses .mafo-cardgrid + .mafo-card--summary; only the block
   heading / lead + its top spacing are new.
   =========================================================== */
.page-mafo .mafo-core { margin-top: var(--pui-space-40); }
.page-mafo .mafo-core .mafo-cardgrid { margin-top: var(--pui-space-16); }

/* ===========================================================
   GLOBAL DEMAND ACCESS — full-width card (header + grey lead bar +
   4 inline items). Reuses .mafo-card / __head / __slot / __lead;
   only the item grid below the lead is new.
   =========================================================== */
/* .mafo-card.mafo-gda (2 classes) out-specifies the ≤1023 `.mafo-card` half-width
   rule so the card stays full-width at every breakpoint; margin-top kept separate
   so the ≤767 override below still wins. */
.page-mafo :is(.mafo-core, .mafo-supply) > .pui-card { width: 100%; }
.page-mafo :where(.mafo-core, .mafo-supply) > .pui-card { margin-top: var(--pui-space-40); }
/* P2 — Finding 53: this list is a wrapping ROW of cards, not the Icon list's column; it relied on flex-direction's
   initial value, and .pui-icon-list supplies `column`. The direction is stated now. */
.page-mafo :where(.mafo-core > .pui-card, .mafo-supply > .pui-card) .pui-icon-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--pui-space-12); }
.page-mafo :where(.mafo-core > .pui-card, .mafo-supply > .pui-card) .pui-icon-list__row { width: calc((100% - 36px) / 4); }   /* 4 per row, 12px gaps */
/* Item styling: shared .icon-list component (global-2026.css) — no per-page item/icon/text rules. */
/* 3-up variant — Proactive Fraud Intelligence (Layer 1/2/3) reuses this block. */
.page-mafo .mafo-core > :where(.pui-card) .pui-icon-list__row { width: calc((100% - 24px) / 3); }
@media (max-width: 1023px) {
  .page-mafo :where(.mafo-core > .pui-card, .mafo-supply > .pui-card) .pui-icon-list__row { width: calc((100% - 12px) / 2); }   /* 2 per row */
  /* --3up is a 3-class selector, so it out-specifies the rule above — restate it. */
  .page-mafo .mafo-core > :where(.pui-card) .pui-icon-list__row { width: calc((100% - 12px) / 2); }
  /* Titles fit on one line at ≤1023 (1-2 up), so drop the desktop-only forced break. */
  .page-mafo .mafo-gda__br { display: none; }
}
@media (max-width: 767px) {
  .page-mafo :where(.mafo-core, .mafo-supply) > .pui-card { margin-top: var(--pui-space-16); }
  .page-mafo :where(.mafo-core > .pui-card, .mafo-supply > .pui-card) .pui-icon-list__row { width: 100%; }                      /* 1 per row */
  .page-mafo .mafo-core > :where(.pui-card) .pui-icon-list__row { width: 100%; }
}

/* ===========================================================
   SUPPLY SLIDER — desktop/tablet = plain grid (Swiper destroyed),
   mobile = Swiper one-card slider with arrow nav (js/mafo.js)
   =========================================================== */
.page-mafo .mafo-supply__slider { margin-top: var(--pui-space-24); }   /* match the 24px grid gap: GDA card → detail cards */
.page-mafo .mafo-slider__nav { display: none; }   /* arrows: mobile only */

/* ≥768: Swiper is destroyed, so the wrapper/slides are a plain grid */
@media (min-width: 768px) {
  .page-mafo .mafo-supply__swiper { overflow: visible; }
  .page-mafo .mafo-supply__swiper .swiper-wrapper {
    display: flex; flex-wrap: wrap; gap: var(--pui-space-24); height: auto; transform: none !important;
  }
  .page-mafo .mafo-supply__swiper .swiper-slide { width: calc((100% - 48px) / 3); height: auto; flex-shrink: 0; }
  .page-mafo .mafo-supply__swiper :where(.swiper-slide) > .pui-card { width: 100%; height: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .page-mafo .mafo-supply__swiper .swiper-wrapper { gap: var(--pui-space-12); align-items: flex-start; }
  .page-mafo .mafo-supply__swiper .swiper-slide { width: calc((100% - 12px) / 2); }
  .page-mafo .mafo-supply__slider { margin-top: var(--pui-space-12); }   /* match the tablet 12px grid gap */
}

/* The supply slider's arrows are the kit's Carousel arrow, the same component as the home reviews: rest, hover, focus and
   disabled are pepper-ui.css's (Swiper sets `disabled` on the button at an end, the kit's :disabled draws it) — 2026-10-16. */

/* ===========================================================
   WHY MAFO — Traditional vs MAFO Intelligence Layer
   =========================================================== */
.page-mafo .mafo-why { margin-top: var(--pui-layout-page-section-gap); }
.page-mafo .mafo-why__cols { display: flex; gap: var(--pui-space-64); align-items: flex-start; }
.page-mafo :where(.mafo-why__cols) > .pui-card {
  flex: 1 1 0;
  min-width: 0;
  /* the lift is the kit's --raised finish (elevation/card) on the card itself — 2026-10-05 */
}
.page-mafo :where(.mafo-why__cols) > .pui-card:first-child .pui-card__icon { background: var(--pui-color-neutral-300); }
/* Row item styling: shared .status-list component (global-2026.css) — no per-page img/span rules. */

/* ===========================================================
   CONTACT — multicolour gradient bleeds BEHIND a glass card
   =========================================================== */
.page-mafo .mafo-contact {
  position: relative;
  margin-top: var(--pui-layout-page-section-gap);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Gradient is LARGER than the card and centred slightly right-and-below it, so
   it bleeds well beyond the card on every side (matches Figma node 3279:1975 —
   1591×1035 vs the 1296×575 card). Never clipped: .mafo-contact has no overflow
   clip; the card's own overflow:hidden only clips the card's content. */
.page-mafo .mafo-contact__gradient {
  position: absolute;
  top: 79%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: 2300px;
  max-width: none;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.page-mafo .mafo-contact__card {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--pui-radius-32);
  padding: 66px 59px;
  background: color-mix(in srgb, var(--pui-color-neutral-0) 66%, transparent);
  backdrop-filter: blur(15.1px);
  -webkit-backdrop-filter: blur(15.1px);
  box-shadow: var(--pui-shadow-xxl-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pui-space-48);
  flex-wrap: wrap;
  overflow: hidden;
}
.page-mafo .mafo-contact__intro { flex: 1 1 460px; min-width: 300px; }
/* Type comes from the shared `.headline-small` class. */
.page-mafo :where(.mafo-contact__intro) > .pui-text--headline-small {
  margin: 0 0 10px;
}
.page-mafo :where(.mafo-contact__intro) > .pui-text--title-small {
  margin: 0;
  color: var(--pui-text-subtle);
}
/* "Email us: <address>" line — mirrors the echo-ai page's .cta-email
   (Poppins Medium 22 / neutral-600, 22px below the copy above it).
   Link colour + underline set explicitly: the .page-mafo `a` reset at the top of
   this file kills both, and layout.min.css adds
   `body a { text-decoration: none !important }` — hence the !important. */
.page-mafo :where(.mafo-contact__intro) > .pui-text--body-large {
  margin: 22px 0 0;
  color: var(--pui-text-muted);
}
.page-mafo :where(.mafo-contact__intro) > .pui-text--body-large a {
  color: inherit;
  text-decoration: underline !important;
  text-underline-position: from-font;
}
.page-mafo .mafo-contact__card > .form-card {
  flex: 0 0 444px;
  max-width: 100%;
  /* F — the card is the form's own (blocks/form-2026: .form-card.pui-card.pui-card--lined — the tint, the line, the radius and the inset are the component's); the page keeps its width in the row */
}
/* Form heading: shared `.ui-form__title` in global-2026.css (was a per-page fork). */

/* F — the form (.ui-form, the spam trap, the file control) is stated once, in global-2026.css § FORM; this page's copy went (2026-09-28). The form itself is blocks/form-2026; the paint is the kit's. */

/* ===========================================================
   TABLET (≤1023)
   =========================================================== */
@media (max-width: 1023px) {
  /* The per-section quote widths above are desktop-only — on tablet/mobile every
     quote block fills the container. */
  .page-mafo .mafo-supply .pui-insight-block,
  .page-mafo .mafo-ai .pui-insight-block { max-width: none; }

  /* ---- Showcase: swap the laptop chassis for the browser window ----
     Only the wrapper changes here — the slide deck, its sizing and its
     cross-fade are the shared desktop ones, just scaled by --bu. */
  .page-mafo .mafo-showcase__stage { height: calc(459.86 * var(--bu)); }
  .page-mafo .mafo-showcase__blob {
    left: calc(-88.72 * var(--bu));
    top: calc(-161.98 * var(--bu));
    width: calc(981.03 * var(--bu));
    height: calc(776.83 * var(--bu));
  }
  .page-mafo .laptop__foot,
  .page-mafo .laptop__lid,
  .page-mafo .laptop__notch,
  .page-mafo .laptop__chin,
  .page-mafo .laptop__base,
  .page-mafo .laptop__opener,
  .page-mafo .laptop__highlight { display: none; }

  .page-mafo .showcase-device {
    display: flex;
    flex-direction: column;
    border-radius: calc(19.0123 * var(--bu));
    overflow: hidden;
    box-shadow: 0 calc(19.0123 * var(--bu)) calc(38.0247 * var(--bu)) calc(-7.1296 * var(--bu)) var(--pui-color-alpha-black-14);
  }
  /* Frame stroke as an overlay, not a border: Figma lays the 770x459.86 chrome
     over the stroked frame, so the stroke must not eat into the toolbar and
     screen heights (26.14 + 0.59 + 433.13 has to add up to 459.86 exactly). */
  .page-mafo .showcase-device::after {
    content: "";
    position: absolute;
    inset: 0;
    border: calc(1.1883 * var(--bu)) solid var(--pui-illustration-chrome-line);   /* D — the browser window's chrome (var(--pui-illustration-chrome-line), var(--pui-illustration-chrome-bar), var(--pui-illustration-chrome-well), var(--pui-illustration-chrome-text), the three lights) is a device illustration; no token holds it — stated, request 20 */
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
  }

  .page-mafo .browser__bar {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: calc(26.14 * var(--bu));
    padding: 0 calc(8.3179 * var(--bu));
    background: var(--pui-illustration-chrome-bar);
    border-bottom: calc(0.59 * var(--bu)) solid var(--pui-illustration-chrome-line);
  }
  .page-mafo .browser__lights {
    display: flex;
    align-items: center;
    flex: 0 0 calc(40.4 * var(--bu));
    gap: calc(4.7531 * var(--bu));
  }
  .page-mafo .browser__lights i {
    width: calc(7.7238 * var(--bu));
    height: calc(7.7238 * var(--bu));
    border-radius: 50%;
  }
  .page-mafo .browser__lights i:nth-child(1) { background: var(--pui-illustration-chrome-light-red); }
  .page-mafo .browser__lights i:nth-child(2) { background: var(--pui-illustration-chrome-light-amber); }
  .page-mafo .browser__lights i:nth-child(3) { background: var(--pui-illustration-chrome-light-green); }

  .page-mafo .browser__nav,
  .page-mafo .browser__tools {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: calc(3.5648 * var(--bu));
  }
  .page-mafo .browser__nav   { padding: 0 calc(5.9414 * var(--bu)) 0 calc(3.5648 * var(--bu)); }
  .page-mafo .browser__tools { padding-left: calc(5.9414 * var(--bu)); }
  .page-mafo .browser__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(13.07 * var(--bu));
    height: calc(13.07 * var(--bu));
  }
  .page-mafo .browser__btn .pui-icon { width: auto; height: auto; }
  .page-mafo .browser__nav .browser__btn:nth-child(1) .pui-icon,
  .page-mafo .browser__nav .browser__btn:nth-child(2) .pui-icon {
    width: calc(5.9414 * var(--bu));
    height: calc(8.3179 * var(--bu));
  }
  .page-mafo .browser__nav .browser__btn:nth-child(3) .pui-icon {
    width: calc(7.7238 * var(--bu));
    height: calc(7.7238 * var(--bu));
  }
  .page-mafo .browser__tools .browser__btn:nth-child(1) .pui-icon,
  .page-mafo .browser__tools .browser__btn:nth-child(2) .pui-icon {
    width: calc(8.3179 * var(--bu));
    height: calc(8.3179 * var(--bu));
  }
  .page-mafo .browser__tools .browser__btn:nth-child(3) .pui-icon {
    width: calc(8.3179 * var(--bu));
    height: calc(5.9414 * var(--bu));
  }

  .page-mafo .browser__url {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: calc(15.4475 * var(--bu));
    padding: 0 calc(5.9414 * var(--bu));
    gap: calc(4.7531 * var(--bu));
    background: var(--pui-illustration-chrome-well);
    border-radius: calc(7.7238 * var(--bu));
  }
  .page-mafo :where(.browser__url) > .pui-icon { flex: 0 0 auto; }
  .page-mafo :where(.browser__url) > .pui-icon:first-child {
    width: calc(5.9414 * var(--bu));
    height: calc(7.1296 * var(--bu));
  }
  .page-mafo :where(.browser__url) > .pui-icon:last-child {
    width: calc(7.1296 * var(--bu));
    height: calc(7.1296 * var(--bu));
  }
  /* Browser chrome, so it takes the platform UI face rather than the page's
     Poppins — Figma specifies Inter, which the site does not load. */
  .page-mafo .browser__url-text {
    flex: 1 1 auto;
    min-width: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: var(--pui-font-weight-400);
    font-size: calc(7.1296 * var(--bu));
    line-height: 1;
    text-align: center;
    color: var(--pui-illustration-chrome-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* The screen stops being a positioned cut-out and simply fills what the
     toolbar leaves; the slides keep their own rules. */
  /* 770 x 433.13 = the Figma window's 1296 x 729 content area, also exactly
     16:9 — so the shared slide rule (inset 0 / cover) fills it without a crop
     here too, and nothing needs re-sizing per breakpoint. */
  .page-mafo .showcase-screen {
    position: relative;   /* stays the slides' containing block, or they anchor
                             to the device and slide up under the toolbar */
    left: auto;
    top: auto;
    width: auto;
    height: calc(433.13 * var(--bu));
    flex: 0 0 auto;
    border-radius: 0;
  }

  .page-mafo .container { width: 100%; max-width: 100%; padding-left: var(--pui-space-32); padding-right: var(--pui-space-32); }
  .page-mafo .mafo-main { padding-top: 96px; }


  /* HERO — logo+H1+buttons left, image right, sub full-width below the row */
  .page-mafo .mafo-hero__card { padding: var(--pui-space-16); border-radius: var(--pui-radius-16); gap: var(--pui-space-24); }
  .page-mafo .mafo-hero__top {
    grid-template-columns: 1fr 308px;
    column-gap: var(--pui-space-12);
    grid-template-areas:
      "logo    media"
      "title   media"
      "actions media"
      "sub     sub";
  }
  .page-mafo .mafo-hero__logo { width: 224px; margin-bottom: var(--pui-space-24); }
  .page-mafo :where(.mafo-hero__top) > .pui-text--headline-small { margin-bottom: var(--pui-space-24); font-size: var(--pui-font-size-32); }  /* hero H1 shrinks to 32 (section titles stay 40) */
  .page-mafo .mafo-hero__actions { margin: 0; align-self: end; }
  .page-mafo :where(.mafo-hero__top) > .pui-text--body-large { margin: var(--pui-space-32) 0 0; }
  .page-mafo :where(.mafo-hero__top) > .pui-media-host { width: 308px; }
  .page-mafo :where(.mafo-hero__top) > .pui-media-host img { aspect-ratio: 308 / 173; }
  .page-mafo .mafo-hero__logos { justify-content: space-between; gap: var(--pui-space-8); }

  .page-mafo :where(.mafo-chips) > .pui-card { width: calc((100% - 28px) / 2); }

  /* KEY FACTS — 4 narrow cards in ONE row, num + chip stacked vertically */
  .page-mafo .mafo-facts__grid { flex-wrap: nowrap; gap: var(--pui-space-16); }
  .page-mafo .mafo-facts__grid .pui-kpi-tile,
  .page-mafo .mafo-facts__grid .pui-kpi-tile:nth-child(2) { min-width: 167px; height: 149px; }
/* A2 — the tablet inset goes with the desktop one */

  .page-mafo .mafo-what__cap-col { flex: 1 1 100%; }
  .page-mafo :where(.mafo-what__cap-col) > .pui-card { width: 100%; }
  .page-mafo .mafo-what__card { flex-direction: column; align-items: stretch; gap: var(--pui-space-32); padding: var(--pui-space-32); }
  .page-mafo .mafo-what__intro { flex: none; max-width: 100%; padding: 0; }

  /* DEMAND — stays side-by-side (text 261 + media 404), just narrower */
  .page-mafo .demand-card__text-col { width: 261px; }
  .page-mafo .demand-card__text { width: 100%; }
  .page-mafo :where(.demand-stack) .pui-card--soft { width: 404px; }

  .page-mafo :where(.mafo-cardgrid) > .pui-card { width: calc((100% - 24px) / 2); }

  .page-mafo .mafo-why__cols { gap: var(--pui-space-24); }

  .page-mafo .mafo-contact__gradient { top: 54%; left: 50%; width: 300%; height: 200%; }
  .page-mafo .mafo-contact__card { padding: var(--pui-space-20); gap: var(--pui-space-24); }
  .page-mafo .mafo-contact__intro { flex: 1 1 100%; }
  .page-mafo .mafo-contact__card > .form-card { flex: 1 1 100%; }
}

/* ===========================================================
   TABLET ONLY (768–1023) — card grids fill the row with a 12px gap,
   short cards hug their content (do NOT leak to mobile or desktop)
   =========================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-mafo .mafo-cardgrid { gap: var(--pui-space-12); align-items: flex-start; }
  .page-mafo .mafo-cardgrid > .pui-card { width: calc((100% - 12px) / 2); }
}

/* ===========================================================
   MOBILE (≤767)
   =========================================================== */
@media (max-width: 767px) {
  .page-mafo .container { padding-left: var(--pui-space-16); padding-right: var(--pui-space-16); }
  .page-mafo .mafo-main { padding-top: var(--pui-space-80); }

  /* Title→content inside a block — mobile step (32 desktop / 32 tablet / 16 mobile) */
  .page-mafo :where(.mafo-main) section > .pui-text--headline-small { margin: 0 0 var(--pui-space-16); }
  .page-mafo section > .pui-heading-pair--section { margin-bottom: var(--pui-space-16); }

  /* Stacked pieces inside a block (sub→quote, quote→cards, sub→grid)
     — 16 on mobile, same as title→content */
  .page-mafo .pui-insight-block,
  .page-mafo .demand-stack-outer,
  .page-mafo .mafo-supply__slider,
  .page-mafo .mafo-ai .mafo-cardgrid { margin-top: var(--pui-space-16); }

  /* HERO — single column: logo → H1 → buttons → image → sub, then logos */
  .page-mafo .mafo-hero__card { padding: var(--pui-space-16); gap: var(--pui-space-24); }
  .page-mafo .mafo-hero__top {
    grid-template-columns: 1fr;
    column-gap: 0;
    grid-template-areas: "logo" "title" "actions" "media" "sub";
  }
  .page-mafo :where(.mafo-hero__top) > .pui-text--headline-small { margin-bottom: var(--pui-space-24); }
  .page-mafo .mafo-hero__actions { align-self: stretch; margin: 0 0 var(--pui-space-32); gap: var(--pui-space-8); }
  .page-mafo .mafo-hero__actions .pui-button { flex: 1 1 0; }   /* 2.4.2 — the hero's buttons carry pui-button now (D61) */
  .page-mafo :where(.mafo-hero__top) > .pui-media-host { width: 100%; margin-bottom: var(--pui-space-32); }
  .page-mafo :where(.mafo-hero__top) > .pui-media-host img,
  .page-mafo .mafo-hero__video { aspect-ratio: 337 / 189; }
  .page-mafo :where(.mafo-hero__top) > .pui-text--body-large { margin: 0; }
  /* logos flow left→right and are smaller so ~4 fit per row (Figma mobile strip) */
  .page-mafo .mafo-hero__logos { flex-wrap: wrap; justify-content: space-between; gap: 18px 16px; }
  .page-mafo .mafo-hero__logos img { height: auto; max-height: 16px; width: auto; }

  .page-mafo .mafo-chips { gap: var(--pui-space-16); margin-top: var(--pui-space-40); }
  .page-mafo :where(.mafo-chips) > .pui-card { width: 100%; min-height: 0; }

  /* KEY FACTS — 2×2, 16px row gap */
  .page-mafo .mafo-facts__grid { flex-wrap: wrap; gap: 16px 13px; }
  .page-mafo .mafo-facts__grid .pui-kpi-tile,
  .page-mafo .mafo-facts__grid .pui-kpi-tile:nth-child(2) { width: calc((100% - 13px) / 2); min-width: 0; height: 149px; }

  .page-mafo .mafo-what__card { padding: var(--pui-space-16); }
  /* #31 — ONE white box around all 7 items; flatten the per-column boxes so the
     seam gap equals the in-column gap (was box-pad + cols-gap + box-pad at the seam) */
  .page-mafo .mafo-cap__cols {
    flex-direction: column; gap: var(--pui-space-12);
    background: var(--pui-color-neutral-0); border-radius: var(--pui-radius-8); padding: var(--pui-space-12);
  }
  .page-mafo :where(.mafo-cap__cols) > .pui-icon-list { padding: 0; background: transparent; border-radius: 0; }


  /* DEMAND — simple block of cards, NO sticky-stacking on mobile */
  .page-mafo .demand-stack { padding-bottom: 0; }
  .page-mafo :where(.demand-stack) > .pui-card {
    position: static; top: auto; transform: none; will-change: auto;
    padding: var(--pui-space-20); margin-bottom: var(--pui-space-16);
    flex-direction: column; align-items: stretch; gap: var(--pui-space-24);
  }
  .page-mafo .demand-card__text-col { width: 100%; justify-content: flex-start; }
  .page-mafo .demand-card__media-col { width: 100%; justify-content: flex-start; }
  .page-mafo :where(.demand-stack) .pui-card--soft { width: 100%; padding: var(--pui-space-16); }

  /* SUPPLY — Swiper one-card slider (init by js/mafo.js); show the arrow nav */
  .page-mafo .mafo-supply__swiper :where(.swiper-slide) > .pui-card { width: 100%; height: auto; }
  .page-mafo .mafo-slider__nav { display: flex; justify-content: flex-end; gap: var(--pui-space-16); margin-top: var(--pui-space-24); }

  /* AI — vertical stack, one card per row; #33 tighten gap between cards (was 48) */
  .page-mafo .mafo-ai :where(.mafo-cardgrid) > .pui-card { width: 100%; }
  .page-mafo .mafo-ai .mafo-cardgrid { gap: var(--pui-space-24); }

  /* CORE FEATURES — one card per row on mobile (base grid is 3-up) */
  .page-mafo .mafo-core { margin-top: var(--pui-space-16); }
  .page-mafo .mafo-core :where(.mafo-cardgrid) > .pui-card { width: 100%; }
  .page-mafo .mafo-core .mafo-cardgrid { gap: var(--pui-space-24); }

  /* WHY — horizontal scroll, MAFO column FIRST (Figma mobile order).
     overflow-x:auto also clips the Y axis, which would cut the cards'
     0 32px 32px shadow — so pad the scroll viewport for shadow room and
     cancel it with net-zero negative margins (also bleeds the track to the
     screen edges) so the section spacing is unchanged. */
  .page-mafo .mafo-why__cols {
    flex-direction: row; flex-wrap: nowrap; gap: var(--pui-space-16);
    align-items: stretch;            /* both cards equal height */
    overflow-x: auto;
    padding: var(--pui-space-12) var(--pui-space-16) var(--pui-space-64);
    margin: -12px -16px -56px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .page-mafo :where(.mafo-why__cols) > .pui-card { flex: 0 0 283.36px; min-width: 283.36px; scroll-snap-align: start; }
  .page-mafo :where(.mafo-why__cols) > .pui-card:nth-child(2) { order: -1; }   /* MAFO Intelligence Layer first */                    /* #35 */
  .page-mafo :where(.mafo-why__cols) .pui-card__slot { padding: 0; }  /* #34 centre icon ↔ text */
  /* break "Limited validation visibility" onto 2 lines so the last item
     matches the MAFO card's 2-line last item (mobile only) */
  .page-mafo .mafo-br-mob { display: block; }

  .page-mafo .mafo-contact__gradient { top: 54%; left: 50%; width: 400%; }
  .page-mafo .mafo-contact__card { padding: var(--pui-space-16); gap: var(--pui-space-20); border-radius: 24px; }
  /* F — the card's inset on a phone is the form card's own (global-2026.css) */
}

/* C — the ink of every glyph the kit does not paint itself, bound by name (the file's colour → its token; 2026-09-25). Glyphs inside a
   kit slot (.pui-card__icon, .pui-badge, .pui-icon-button, .pui-input-group__icon, .pui-select__chevron, .pui-nav-link__caret, .pui-form-result__icon) take the kit's ink. */
.page-mafo .browser__btn .pui-icon, .page-mafo :where(.browser__url) > .pui-icon { color: var(--pui-illustration-chrome-text); }

/* STEP 12 (2026-09-28) — a design-system part carries the design system's classes only. This page reaches a part through the
   block that holds it (.page-mafo .mafo-chips > .pui-card), and states only what is the page's: a width in a row, a place in a grid. */
/* STEP 12 · TOKENS — the site's alias names became the design system's; a typed value that equals a token is the token */

/* 14 — a tablet keeps the desktop step here (the block never had a tablet line): space/128 by name, 768–1023 only */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-mafo .mafo-cross,
  .page-mafo .mafo-showcase { margin-top: var(--pui-space-128); }
}
