/* ============================================================================
   MACKDATA — Design System (aboard-faithful)
   Calm paper-stack: #fafafa canvas + blue-family pastel cards. No saturated
   bands. Huge tight display type. Thin monoline icons. Generous whitespace.
   Prefix: .mk-*   Tokens: --mk-*
   ========================================================================== */

/* ---------------------------------------------------------------- Tokens --- */
:root {
  --mk-canvas:        #fafafa;   /* off-white desk surface */
  --mk-surface:       #ffffff;   /* white panels */
  --mk-ink:           #101828;   /* headings + text (near-black, warm) */
  --mk-graphite:      #667085;   /* secondary text */
  --mk-ash:           #98a2b3;   /* tertiary */
  --mk-hairline:      #ececf0;   /* soft dividers / card borders */

  --mk-blue:          #2563eb;   /* the lone saturated voice */
  --mk-blue-dark:     #1d4ed8;
  --mk-blue-deep:     #1e3a8a;
  --mk-blue-bright:   #4c6ef5;
  --mk-sky-tint:      #eff6ff;   /* soft blue wash for pills / tinted buttons */

  /* Pastel washes — blue family (rotate for rhythm) */
  --mk-wash-sky:      #e6f2fe;
  --mk-wash-powder:   #dce8ff;
  --mk-wash-indigo:   #e7e9ff;
  --mk-wash-slate:    #f1f4f9;
  --mk-wash-butter:   #fdf1cf;   /* the one warm wash, used sparingly */

  --mk-accent-amber:  #f59e0b;

  --mk-shadow-panel:  0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --mk-shadow-float:  0 8px 30px rgba(16,24,40,.12);

  --mk-font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
             'Segoe UI', Roboto, sans-serif;

  --mk-max-width: 1160px;
  --mk-radius-card: 28px;
  --mk-radius-pill: 99px;
}

/* ------------------------------------------------------------------ Base --- */
.mk-site {
  margin: 0;
  background: var(--mk-canvas);
  color: var(--mk-ink);
  font-family: var(--mk-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.mk-site *, .mk-site *::before, .mk-site *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.mk-site h1, .mk-site h2, .mk-site h3, .mk-site h4, .mk-site h5, .mk-site h6 {
  margin: 0; color: var(--mk-ink); font-weight: 600; text-wrap: balance;
}
.mk-site p { margin: 0; text-wrap: pretty; }
.mk-site img { max-width: 100%; height: auto; display: block; }
.mk-site a { color: inherit; text-decoration: none; }
.mk-site ul, .mk-site ol { margin: 0; padding: 0; list-style: none; }
.mk-i { display: block; flex-shrink: 0; }

/* ---------------------------------------------------------------- Layout --- */
.mk-container { width: 100%; max-width: var(--mk-max-width); margin-inline: auto; padding-inline: 24px; }
.mk-container--wide { max-width: 1280px; }
.mk-section { padding-block: 124px; }
.mk-section--tight { padding-block: 72px; }
/* In-page anchors (e.g. /#integrations) land below the fixed nav. */
.mk-site section[id] { scroll-margin-top: 84px; }

/* Section sheets: break up the long canvas without hard color bands. A sheet is
   a section on its own rounded surface, inset slightly from the viewport edges.
   --tint = soft blue-gray (white panels pop on it). The margin below a sheet stands in for the gap the next section
   (padding-top:0) would otherwise get from this section's bottom padding. */
.mk-section.mk-sheet {
  padding-block: 112px; margin: 0 clamp(10px, 1.6vw, 24px) 124px;
  /* Cap at 1872px on very wide screens so a sheet reads as a card, not a band. */
  margin-inline: max(clamp(10px, 1.6vw, 24px), calc((100% - 1872px) / 2));
  border-radius: clamp(24px, 3vw, 40px);
}
.mk-sheet--tint {
  background: linear-gradient(180deg, #eef3fb 0%, #f4f6fb 100%);
  border: 1px solid rgba(37, 99, 235, .06);
}
.mk-center { text-align: center; }
.mk-measure { max-width: 720px; margin-inline: auto; }
.mk-measure-sm { max-width: 560px; margin-inline: auto; }
/* Keep a short headline on one line where there is room; wrap normally on phones. */
@media (min-width: 900px) { .mk-oneline { white-space: nowrap; } }
.mk-stack { display: flex; flex-direction: column; }

/* ------------------------------------------------------------ Typography --- */
.mk-display-xl {
  font-size: clamp(46px, 7.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.mk-display {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 700;
}
.mk-heading-lg {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 700;
}
.mk-heading {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.mk-subheading { font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; font-weight: 600; }
.mk-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--mk-graphite); font-weight: 400; }
.mk-body { font-size: 17px; line-height: 1.65; color: var(--mk-graphite); }
.mk-body-sm { font-size: 15px; line-height: 1.6; color: var(--mk-graphite); }
.mk-ink { color: var(--mk-ink); }
.mk-muted { color: var(--mk-graphite); }
.mk-strong { font-weight: 600; color: var(--mk-ink); }

.mk-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-blue);
  margin-bottom: 18px;
}

/* Announcement pill (aboard signature) */
.mk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--mk-radius-pill);
  background: var(--mk-sky-tint);
  color: var(--mk-blue);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mk-badge .mk-i { color: var(--mk-blue); }

/* ----------------------------------------------------------------- Pills --- */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px;
  border-radius: var(--mk-radius-pill);
  font-size: 16px; font-weight: 600; line-height: 1;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.mk-btn .mk-i { width: 18px; height: 18px; }
.mk-btn:focus-visible { outline: 2px solid var(--mk-blue); outline-offset: 3px; }
/* Note: .mk-site a { color: inherit } is 0,1,1 — button color rules are scoped
   under .mk-site so they win (0,2,0) and text colors apply correctly. */
.mk-site .mk-btn--filled { background: var(--mk-blue); color: #fff; }
.mk-site .mk-btn--filled:hover { background: var(--mk-blue-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,99,235,.30); }
.mk-site .mk-btn--tint { background: var(--mk-sky-tint); color: var(--mk-blue); }
.mk-site .mk-btn--tint:hover { background: #dbeafe; transform: translateY(-2px); }
.mk-site .mk-btn--ghost { background: transparent; color: var(--mk-ink); border-color: var(--mk-hairline); }
.mk-site .mk-btn--ghost:hover { border-color: var(--mk-ink); transform: translateY(-2px); }
.mk-btn--sm { padding: 11px 22px; font-size: 15px; }
.mk-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.mk-btn-row.mk-center { justify-content: center; }

/* Inline text link */
.mk-link {
  color: var(--mk-blue); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 1px solid transparent; transition: border-color .2s ease, gap .2s ease;
}
.mk-link .mk-i { width: 16px; height: 16px; }
.mk-link:hover { border-bottom-color: var(--mk-blue); gap: 10px; }

/* --------------------------------------------------------- Pastel cards --- */
.mk-wash { border-radius: var(--mk-radius-card); padding: 48px; }
.mk-wash--lg { padding: clamp(40px, 6vw, 88px); }
.mk-wash--sky    { background: var(--mk-wash-sky); }
.mk-wash--powder { background: var(--mk-wash-powder); }
.mk-wash--indigo { background: var(--mk-wash-indigo); }
.mk-wash--slate  { background: var(--mk-wash-slate); }
.mk-wash--butter { background: var(--mk-wash-butter); }

/* White product panel inside a wash */
.mk-panel {
  background: var(--mk-surface);
  border-radius: 16px;
  box-shadow: var(--mk-shadow-panel);
}

/* Hero dashboard media — teased in a big powder card, scroll scales it up.
   Card is near full-bleed & reactive (viewport-relative); the dashboard image
   stays capped so lots of powder shows around it — the aboard look. */
.mk-hero-media { width: min(1680px, 94vw); margin-inline: auto; }
.mk-hero-card {
  background: var(--mk-wash-powder);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(24px, 6vw, 96px);
  padding-bottom: clamp(48px, 8vw, 120px);
  overflow: hidden;
}
/* Mack waving beside the dashboard, standing on the card's bottom edge. */
.mk-hero-card { position: relative; }
.mk-hero-mack {
  position: absolute; z-index: 2; bottom: 0; right: clamp(8px, 4vw, 72px);
  width: clamp(110px, 17vw, 270px); pointer-events: none;
}
.mk-site .mk-hero-mack img { width: 100%; filter: drop-shadow(0 16px 22px rgba(16, 24, 40, .2)); }
.mk-hero-dash {
  display: block;
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .18);
  transform-origin: top center;
  will-change: transform;
}
/* JS on + motion ok: start small (teased), scroll grows it to full size */
html.js .mk-hero-dash { transform: scale(0.66); }
@media (prefers-reduced-motion: reduce) { html.js .mk-hero-dash { transform: none; } }

/* Quiet card on canvas — barely-there, lots of air */
.mk-card {
  background: var(--mk-surface);
  border: 1px solid var(--mk-hairline);
  border-radius: 20px;
  padding: 36px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mk-card:hover { transform: translateY(-4px); box-shadow: var(--mk-shadow-panel); }

/* Feature column — thin icon, no chrome, centered (aboard signature) */
.mk-feature { display: flex; flex-direction: column; gap: 14px; }
.mk-feature--center { align-items: center; text-align: center; }
.mk-feature__icon { color: var(--mk-ink); }
.mk-feature__icon .mk-i { width: 34px; height: 34px; stroke-width: 1.5; }
.mk-feature h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

/* Source line-item (data sources) — thin icon in a soft dot + label */
.mk-source { display: flex; align-items: center; gap: 13px; padding: 6px 0; }
.mk-source__dot {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--mk-sky-tint); color: var(--mk-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.mk-source__dot .mk-i { width: 20px; height: 20px; }
.mk-source span { font-weight: 500; color: var(--mk-ink); font-size: 16px; }

/* Value / checklist row — quiet */
.mk-value-row { display: flex; align-items: flex-start; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--mk-hairline); }
.mk-value-row:last-child { border-bottom: 0; }
.mk-check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mk-sky-tint); color: var(--mk-blue);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.mk-check .mk-i { width: 15px; height: 15px; }

/* --------------------------------------------------------------- Grids --- */
.mk-grid { display: grid; gap: 28px; }
.mk-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mk-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
/* Let columns shrink below their content's intrinsic width — without this a wide,
   non-wrapping child (e.g. the logo marquee track) blows the 1fr column out and
   squeezes the other column. */
.mk-split > * { min-width: 0; }
.mk-split--top { align-items: start; }

/* --------------------------------------------------------------- Navbar --- */
.mk-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 76px; z-index: 900;
  background: rgba(250,250,250,.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--mk-hairline);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, height .3s ease;
}
.mk-nav.is-scrolled {
  height: 66px;
}
.mk-nav__inner {
  height: 100%; width: 100%; padding-inline: clamp(20px, 3vw, 44px);
  /* Bar stays full width; logo/links/buttons stay near the content on wide screens. */
  max-width: calc(var(--mk-max-width) + 240px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.mk-nav__logo img { height: 28px; width: auto; }
.mk-nav__links { display: flex; align-items: center; justify-content: center; gap: 30px; }
.mk-nav__link {
  font-size: 15px; font-weight: 500; color: var(--mk-graphite);
  transition: color .2s ease; display: inline-flex; align-items: center; gap: 6px;
}
.mk-nav__link .mk-i { width: 15px; height: 15px; }
.mk-nav__link:hover, .mk-nav__link.is-active { color: var(--mk-ink); }
.mk-nav__link.is-active { color: var(--mk-blue); }
.mk-nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }

.mk-dd { position: relative; }
.mk-dd__panel {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px; background: var(--mk-surface);
  border: 1px solid var(--mk-hairline); border-radius: 18px;
  box-shadow: var(--mk-shadow-float); padding: 8px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.mk-dd:hover .mk-dd__panel, .mk-dd.is-open .mk-dd__panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mk-dd__item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 12px; font-size: 15px; color: var(--mk-graphite);
  transition: background .2s ease, color .2s ease;
}
.mk-dd__item .mk-i { width: 18px; height: 18px; color: var(--mk-blue); }
.mk-dd__item:hover, .mk-dd__item.is-active { background: var(--mk-sky-tint); color: var(--mk-blue); }
.mk-dd__item.is-active { font-weight: 600; }

.mk-nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--mk-ink); }
.mk-mobile {
  display: none; position: fixed; top: 66px; left: 0; width: 100%;
  max-height: calc(100vh - 66px); overflow-y: auto;
  background: var(--mk-surface); border-bottom: 1px solid var(--mk-hairline);
  z-index: 899; padding: 16px 24px 28px;
}
.mk-mobile.is-open { display: block; }
/* Burger shows ☰ closed and ✕ open (aria-expanded is toggled in mack-animations.js). */
.mk-burger__open, .mk-burger__close { display: inline-flex; transition: transform .3s ease, opacity .2s ease; }
.mk-burger__close { display: none; }
.mk-nav__burger[aria-expanded="true"] .mk-burger__open { display: none; }
.mk-nav__burger[aria-expanded="true"] .mk-burger__close { display: inline-flex; animation: mk-spin-in .3s ease; }
@keyframes mk-spin-in { from { transform: rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* Login + Book a Demo side by side at the bottom of the menu. */
.mk-mobile__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 12px 4px; }
.mk-mobile__actions .mk-btn { width: 100%; justify-content: center; }
.mk-mobile__link { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 12px; font-size: 18px; font-weight: 500; color: var(--mk-ink); }
.mk-mobile__link .mk-i { width: 20px; height: 20px; color: var(--mk-blue); }
.mk-mobile__link:hover { background: var(--mk-sky-tint); }
.mk-mobile__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 13px 12px; border-radius: 12px;
  font-size: 18px; font-weight: 500; color: var(--mk-ink); cursor: pointer; font-family: inherit;
}
.mk-mobile__toggle .mk-i { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.mk-mobile__toggle[aria-expanded="true"] .mk-i { transform: rotate(180deg); }
/* Industries sub-list: animates its height open/closed (0fr -> 1fr). */
.mk-mobile__sub {
  display: grid; grid-template-rows: 0fr; opacity: 0; padding-left: 14px;
  transition: grid-template-rows .38s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.mk-mobile__sub.is-open { grid-template-rows: 1fr; opacity: 1; }
.mk-mobile__subin { min-height: 0; overflow: hidden; }

/* ------------------------------------------------------------ Logo stream - */
.mk-logos { width: 100%; overflow: hidden; white-space: nowrap; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); }
.mk-logos__track { display: inline-flex; align-items: center; animation: mk-scroll 42s linear infinite; will-change: transform; }
.mk-logos:hover .mk-logos__track { animation-play-state: paused; }
.mk-logos__item { flex-shrink: 0; margin: 0 46px; display: flex; align-items: center; justify-content: center; }
/* Heights are tuned for optical balance, not raw box size: pure wordmarks get a
   shorter box, while icon/stacked/padded logos get a taller box so every visible
   mark reads at a consistent size. All are vertically centered by the track. */
.mk-logos__item img { height: 34px; width: auto; max-width: 150px; object-fit: contain; opacity: .8; transition: opacity .3s ease; }
.mk-logos__item img[src*="callrail"]             { height: 30px; }
.mk-logos__item img[src*="Successware"]          { height: 30px; }
.mk-logos__item img[src*="storis"]               { height: 40px; }
.mk-logos__item img[src*="salesforce"]           { height: 46px; }
.mk-logos__item img[src*="CallTrackingMetrics"]  { height: 44px; }
.mk-logos__item img[src*="callsource"]           { height: 50px; }
@keyframes mk-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------------------------------------------------- Chat mockup bubbles -- */
.mk-chat { display: flex; flex-direction: column; gap: 14px; }
.mk-chat__row { display: flex; }
.mk-chat__row--me { justify-content: flex-end; }
.mk-chat__bubble { max-width: 80%; padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.mk-chat__bubble--me { background: var(--mk-blue); color: #fff; border-bottom-right-radius: 6px; }
.mk-chat__bubble--bot { background: #f4f6fa; color: var(--mk-ink); border-bottom-left-radius: 6px; }
.mk-chat__bubble--bot ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }

/* ------------------------------------------------------------------ FAQ --- */
.mk-faq { display: flex; flex-direction: column; }
.mk-faq__item { border-bottom: 1px solid var(--mk-hairline); }
.mk-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 4px; cursor: pointer; font-weight: 600; font-size: 19px; color: var(--mk-ink); letter-spacing: -0.01em; }
.mk-faq__q .mk-i { width: 20px; height: 20px; color: var(--mk-blue); transition: transform .3s ease; }
.mk-faq__item.is-open .mk-faq__q .mk-i { transform: rotate(180deg); }
.mk-faq__a { max-height: 0; overflow: hidden; opacity: 0; padding: 0 4px; color: var(--mk-graphite); transition: max-height .35s ease, opacity .3s ease, padding .3s ease; }
.mk-faq__a p, .mk-faq__a ul { max-width: 75ch; }
.mk-faq__item.is-open .mk-faq__a { max-height: 400px; opacity: 1; padding: 0 4px 26px; }
/* Long-form variant: real headings in the question row keep the row's type, and
   panels open tall enough for multi-paragraph content. */
.mk-site .mk-faq__q h2, .mk-site .mk-faq__q h3 { font: inherit; letter-spacing: inherit; color: inherit; }
.mk-faq--long .mk-faq__item.is-open .mk-faq__a { max-height: 2400px; }

/* ---------------------------------------------------------------- Footer --- */
.mk-footer { background: var(--mk-canvas); border-top: 1px solid var(--mk-hairline); padding-block: 72px 36px; }
.mk-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
/* The Mackdata wordmark PNG is very wide (7.3:1), so size it by WIDTH with
   height:auto — sizing by height lets max-width:100% clamp the width and squish
   it. Sits at the normal container inset (aligned with the copyright row). */
.mk-site .mk-footer__logo { width: 300px; max-width: 100%; height: auto; margin-bottom: 20px; }
.mk-footer__title { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--mk-ink); margin-bottom: 18px; }
.mk-footer__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.mk-footer__list a, .mk-footer__list li { color: var(--mk-graphite); display: inline-flex; align-items: center; gap: 9px; }
.mk-footer__list a:hover { color: var(--mk-blue); }
.mk-footer__list .mk-i { width: 16px; height: 16px; color: var(--mk-ash); }
.mk-footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--mk-hairline); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--mk-ash); }
.mk-footer__bottom a { color: var(--mk-graphite); }
.mk-footer__bottom a:hover { color: var(--mk-blue); }

/* ---------------------------------------------------- Scroll reveal states - */
/* Landed mid-page: blocks above the viewport start finished (mack-animations.js
   adds .mk-instant for a frame so their entrance transitions don't visibly run). */
.mk-instant, .mk-instant * { transition: none !important; animation-delay: 0s !important; }
[data-reveal] { opacity: 0; will-change: transform, opacity; }
[data-reveal="up"]    { transform: translateY(26px); }
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(0.96); }
.no-js [data-reveal] { opacity: 1; transform: none; }
.mk-static [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Scroll "blow up": charts scale up from small as they enter (see initBlowup). */
/* Loose collage: cards are offset, sized and overlapped unevenly on purpose. */
.mk-chart-stack { display: flex; flex-direction: column; }
.mk-chart-stack > * { position: relative; box-shadow: var(--mk-shadow-panel); }
.mk-chart-stack > :nth-child(1) { width: 94%; align-self: flex-start; z-index: 1; }
.mk-chart-stack > :nth-child(2) { width: 88%; align-self: flex-end; margin-top: -18px; z-index: 2; box-shadow: var(--mk-shadow-float); }
.mk-chart-stack > :nth-child(3) { width: 90%; margin-left: 3%; margin-top: -14px; z-index: 3; box-shadow: var(--mk-shadow-float); }
@media (max-width: 820px) {
  .mk-chart-stack { gap: 16px; }
  .mk-chart-stack > * { width: 100% !important; margin: 0 !important; }
}
html.js [data-blowup] { opacity: 0; transform: translateY(48px) scale(0.78); transform-origin: center center; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { html.js [data-blowup] { opacity: 1; transform: none; } }
.mk-static [data-blowup] { opacity: 1 !important; transform: none !important; }

/* anime.js entrance reveals — start hidden; JS pops them in on scroll.
   Reveal at rest without JS / with reduced motion / in static screenshot mode. */
[data-anime] { opacity: 0; will-change: transform, opacity; }
.no-js [data-anime] { opacity: 1; }
.mk-static [data-anime] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { html.js [data-anime] { opacity: 1; } }

/* Terminal copy: per-char color reveal (see initTerminalCopy in mack-animations.js).
   The JS drives color via GSAP; this just smooths each step so the sweep reads
   as a soft "type-in" rather than a hard flip. SplitText inserts the .char spans. */
.mk-site [data-terminal-copy] .char { transition: color 150ms ease-out; }
.mk-site [data-terminal-copy] .word { white-space: nowrap; }

/* Promise section: tagline centered with generous breathing room above and
   below — fills most of the viewport but not a full screen. */
.mk-section--promise {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-block: clamp(90px, 12vh, 180px);
}
.mk-promise__content { position: relative; z-index: 1; }

/* Burst image layer (JS: initBurst) — items fan out from center in a triangle. */
.mk-promise-burst { display: none; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
html.js .mk-promise-burst { display: block; }
.mk-promise-burst__img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(240px, 26vw, 380px);
  height: auto;
  opacity: 0;
  border-radius: 14px;
  box-shadow: var(--mk-shadow-float);
  will-change: transform, opacity;
}
.mk-promise-burst__img--feature { width: clamp(320px, 33vw, 500px); }
/* Apex (Customer Journey): height-capped so it always clears the title below
   and never reaches the section's clipped top edge. */
.mk-promise-burst__img--apex { max-height: 26vh; width: auto; }

/* Why-Mackdata card grid: break out wider than the container so each title
   fits on one line at full heading size. */
.mk-why-grid { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 1200px) { .mk-why-grid { max-width: var(--mk-max-width); } }

/* ---------------------------------------------------- Mack 3D icon ---------
   WebGL canvas (three.js) is injected into this box by mack-3d.js. It spins on
   hover. Fixed square so layout is stable whether or not the model loads. */
.mk-mack-3d {
  width: clamp(150px, 20vw, 220px);
  aspect-ratio: 1 / 1;
  cursor: grab;
  touch-action: pan-y;
}
.mk-mack-3d:active { cursor: grabbing; }

/* ------------------------------------------------------- Video (demo) ------
   Product/demo video framed in a soft pastel card, matching the aboard look. */
.mk-video {
  margin: 48px auto 0;
  max-width: 1160px;
  padding: clamp(12px, 1.8vw, 22px);
  background: var(--mk-wash-powder);
  border-radius: var(--mk-radius-card);
}
/* Grow-from-center on scroll (JS: initScaleIn). Pre-scaled before JS runs so
   there's no flash of full size. */
html.js [data-scale-in] { transform: scale(0.72); transform-origin: center center; will-change: transform; }
@media (prefers-reduced-motion: reduce) { html.js [data-scale-in] { transform: none; } }
.mk-video__el {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--mk-radius-card) - 12px);
  background: #000;
  box-shadow: var(--mk-shadow-panel);
}

/* ---------------------------------------------- Industry sticky cards ------
   Codegrid "serious business" stacked-card look, done with native CSS sticky
   (no JS pinning) so the scroll is perfectly smooth — each full-bleed, full-
   height band sticks to the top and the next slides up and covers it.
   Tone runs light -> medium-dark across the blue family, top to bottom. */
/* Industry cards — three standalone cards (revamped, aboard). Whole card is a
   link; base chrome (border, radius, padding, hover lift) comes from .mk-card. */
.mk-icard { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.mk-icard__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--mk-sky-tint); color: var(--mk-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.mk-icard__icon .mk-i { width: 26px; height: 26px; }
.mk-icard__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--mk-ink); }
.mk-icard__title a { color: inherit; transition: color .2s ease; }
.mk-icard__title a:hover { color: var(--mk-blue); }
.mk-icard__body { color: var(--mk-graphite); line-height: 1.65; }
.mk-site .mk-icard__quote {
  margin-top: 4px; padding-left: 16px;
  border-left: 2px solid var(--mk-blue);
  font-style: italic; font-weight: 600;
  color: var(--mk-ink); line-height: 1.6;
}
/* Scoped under .mk-site so the blue wins over `.mk-site a { color: inherit }`
   (0,1,1) now that the link is an <a>; the arrow uses currentColor. */
.mk-site .mk-icard__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 10px;
  font-weight: 600; color: var(--mk-blue);
  transition: gap .2s ease;
}
.mk-icard__link:hover { gap: 12px; }
/* Align the five rows (icon / title / body / quote / link) across all three
   cards via subgrid, so each quote — and its accent bar — starts at the same
   height no matter how long the body copy runs. Positioning only; the quote's
   look is unchanged. */
.mk-icards { grid-template-rows: auto auto 1fr auto auto; row-gap: 16px; }
.mk-icards .mk-icard {
  display: grid;
  grid-template-rows: subgrid;   /* inherits the parent's 5 rows + 16px row-gap */
  grid-row: span 5;
  height: auto;
}
/* Sit each quote at the TOP of its (equalized) row so the tops line up, but keep
   its natural text height — don't let the grid stretch the accent bar taller. */
.mk-icards .mk-icard__quote { align-self: start; }
@media (max-width: 820px) {
  /* Single column below 820: drop the shared row tracks so cards don't overlap. */
  .mk-icards { grid-template-rows: none; row-gap: 28px; }
  .mk-icards .mk-icard { display: flex; grid-row: auto; }
}

/* -------------------------------------------- Interactive timeline --------
   Left-rail journey timeline. WITHOUT JS (or reduced motion) it renders as a
   static, fully-revealed timeline: every node filled, every card visible, rail
   solid blue — so content is never hidden. mack-animations.js adds `.is-interactive`
   which dims un-revealed steps and reveals them one click at a time. Space for
   every card is always reserved, so nothing reflows as steps appear. */
.mk-timeline { position: relative; max-width: 720px; margin-inline: auto; }
.mk-timeline__step { position: relative; display: flex; gap: 22px; padding-bottom: 30px; }
.mk-timeline__step:last-child { padding-bottom: 0; }
/* connector rail behind the nodes */
.mk-timeline__step::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: var(--mk-blue); z-index: 0;
}
.mk-timeline__step:last-child::before { display: none; }
.mk-timeline__node {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mk-blue); border: 2px solid var(--mk-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.mk-timeline__node .mk-i { width: 22px; height: 22px; }
.mk-timeline__card { flex: 1; min-width: 0; padding-top: 3px; }
.mk-timeline__controls { display: none; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.mk-timeline__done { text-align: center; margin-top: 20px; }
.mk-timeline [hidden] { display: none !important; }

/* Interactive: reveal one step per click. Un-revealed steps collapse entirely
   (display:none) so the controls sit directly below the latest revealed step
   and travel down with each click — no scrolling back up. Extra padding gives
   the Next/Replay button room to breathe below the timeline. */
.mk-timeline.is-interactive { padding-bottom: 44px; }
.mk-timeline.is-interactive .mk-timeline__controls { display: flex; }
.mk-timeline.is-interactive .mk-timeline__step:not(.is-active) { display: none; }
/* The connector draws in real time: collapsed to nothing on the current (last)
   step, it grows downward (scaleY 0 → 1) once the next step reveals. */
.mk-timeline.is-interactive .mk-timeline__step::before {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .5s ease;
}
.mk-timeline.is-interactive .mk-timeline__step.is-active:not(.is-current)::before {
  transform: scaleY(1);
}

/* ------------------------------------------------------- Blog post cards --- */
.mk-post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mk-post__media {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--mk-wash-powder);
}
.mk-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mk-post:hover .mk-post__media img { transform: scale(1.05); }
.mk-post__media--empty { display: flex; align-items: center; justify-content: center; color: var(--mk-blue); }
.mk-post__body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.mk-post__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mk-graphite); }
.mk-post__meta .mk-i { width: 15px; height: 15px; }
/* Scoped under .mk-site so margin-top wins over `.mk-site h2/p { margin:0 }`
   (0,1,1) — otherwise these gaps get reset to zero. */
.mk-site .mk-post__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-top: 22px; }
.mk-post__title a { color: var(--mk-ink); transition: color .2s ease; }
.mk-post__title a:hover { color: var(--mk-blue); }
.mk-site .mk-post__excerpt { color: var(--mk-graphite); margin-top: 20px; flex: 1; }
.mk-site .mk-post__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  color: var(--mk-blue); font-weight: 600; transition: gap .2s ease;
}
.mk-post__link:hover { gap: 12px; }
.mk-post__link .mk-i { width: 17px; height: 17px; }

/* Pagination (WP paginate_links, type=list) as pills */
.mk-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.mk-pagination ul.page-numbers li { margin: 0; line-height: 1; }
.mk-site .mk-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 15px;
  border: 1px solid var(--mk-hairline); border-radius: var(--mk-radius-pill);
  color: var(--mk-ink); font-weight: 600; background: var(--mk-surface);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.mk-site .mk-pagination a.page-numbers:hover { border-color: var(--mk-blue); color: var(--mk-blue); }
.mk-site .mk-pagination .page-numbers.current { background: var(--mk-blue); border-color: var(--mk-blue); color: #fff; }
.mk-pagination .page-numbers .mk-i { width: 18px; height: 18px; }

/* ---------------------------------------------------------- Pricing cards --- */
.mk-price { display: flex; flex-direction: column; height: 100%; }
.mk-price__tier { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mk-blue); }
.mk-price__amount { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mk-price__num { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--mk-ink); }
.mk-price__per { font-size: 14px; color: var(--mk-graphite); }
.mk-price__feats { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--mk-hairline); display: flex; flex-direction: column; gap: 12px; }
.mk-price__feat { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--mk-ink); }
.mk-site .mk-price__note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--mk-hairline); font-size: 14px; line-height: 1.55; color: var(--mk-graphite); }

/* Pricing table — modern white card; scrolls horizontally on narrow screens. */
.mk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mk-hairline);
  border-radius: 20px;
  background: var(--mk-surface);
  box-shadow: var(--mk-shadow-panel);
}
.mk-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.mk-table thead th {
  text-align: left; padding: 22px 26px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mk-graphite); background: var(--mk-canvas);
  border-bottom: 1px solid var(--mk-hairline); white-space: nowrap;
}
.mk-table tbody td {
  padding: 26px; font-size: 15px; line-height: 1.55; color: var(--mk-graphite);
  border-bottom: 1px solid var(--mk-hairline); vertical-align: top;
}
.mk-table tbody tr:last-child td { border-bottom: 0; }
.mk-table__plan { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--mk-ink); }
.mk-table__price { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--mk-ink); }
.mk-table__per { display: block; margin-top: 3px; font-size: 13px; color: var(--mk-graphite); }
/* Add-ons column — set off by a hairline; compact lines so rows keep their height */
.mk-table th.mk-table__addons-col,
.mk-table td.mk-table__addons-col { border-left: 1px solid var(--mk-hairline); min-width: 260px; }
/* Starter + Growth share one rowspan cell, centered across both rows */
.mk-table td.mk-table__addons-col--shared { vertical-align: middle; }
.mk-table__addons { display: flex; flex-direction: column; gap: 18px; }
.mk-table__addons-col--shared .mk-table__addons { gap: 26px; }
.mk-table__addon { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--mk-graphite); }
.mk-table__addon strong { font-size: 15px; font-weight: 600; color: var(--mk-ink); white-space: nowrap; }

/* ============================================================================
   HOMEPAGE — Customer-journey story components (SaaS redesign)
   Data flows: scattered sources -> Mackdata -> one journey -> scored touchpoints
   -> real revenue. All on canvas; color enters only via pastel cards + the blue
   hub/outcome nodes (kept scarce). Nothing saturated full-bleed.
   ========================================================================== */

/* --- Product screenshot frame (large real UI, softly floated) ------------- */
.mk-shot {
  background: var(--mk-surface);
  border: 1px solid var(--mk-hairline);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--mk-shadow-float);
}
.mk-shot img { display: block; width: 100%; }
/* A shot sitting inside a pastel wash gets a little inset breathing room. */
.mk-wash > .mk-shot { margin: 0; }

/* --- Sources -> identity graph (The Problem) --------------------------------
   Product-style sync view: a "Connected sources" panel on the left, a resolved
   customer profile on the right. mack-animations.js draws a wire from each
   source row's port to the hub's port (so alignment holds at any size) and
   runs data packets along them; counts tick while the section is in view. */
.mk-graph {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) clamp(72px, 12vw, 150px) minmax(0, 1fr);
  max-width: 1000px; margin-inline: auto; text-align: left;
}
.mk-graph__panel {
  position: relative; z-index: 1; background: var(--mk-surface);
  border: 1px solid var(--mk-hairline); border-radius: 20px; box-shadow: var(--mk-shadow-panel);
}
.mk-graph__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--mk-hairline);
  font-size: 13px; font-weight: 600; color: var(--mk-graphite); letter-spacing: .01em;
}
.mk-graph__live { display: inline-flex; align-items: center; gap: 7px; color: var(--mk-blue); }
.mk-graph__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mk-blue); }
@media (prefers-reduced-motion: no-preference) {
  html.js .mk-graph__live i { animation: mk-live 1.8s ease-out infinite; }
}
@keyframes mk-live {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,.45); }
  100% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
}

.mk-graph__src {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--mk-hairline);
}
.mk-graph__src:last-child { border-bottom: 0; }
.mk-graph__src-icon {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--mk-hairline);
  background: var(--mk-canvas); color: var(--mk-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.mk-graph__src-name { font-size: 15px; font-weight: 600; color: var(--mk-ink); line-height: 1.25; }
.mk-graph__src-name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--mk-graphite); }
.mk-graph__src-count {
  font-size: 13px; font-weight: 500; color: var(--mk-graphite);
  font-variant-numeric: tabular-nums; transition: color .5s ease;
}
.mk-graph__src-count.is-tick { color: var(--mk-blue); transition-duration: .1s; }

.mk-graph__port {
  position: absolute; top: 50%; right: -5px; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--mk-surface); border: 2px solid #bfd0f6;
}
.mk-graph__port--in { right: auto; left: -5px; border-color: var(--mk-blue); }

.mk-graph__wires svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
}
.mk-graph__wires path { fill: none; stroke-linecap: round; }
.mk-graph__wires .mk-wire { stroke: #d6e1f8; stroke-width: 1.5; }
.mk-graph__wires .mk-pkt { stroke: var(--mk-blue); stroke-width: 2.5; stroke-dasharray: 7 93; stroke-dashoffset: 100; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.js .mk-graph__wires .mk-pkt { opacity: 1; animation: mk-pkt 2.6s cubic-bezier(.45,0,.55,1) infinite; }
}
@keyframes mk-pkt {
  0% { stroke-dashoffset: 100; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: 7; opacity: 0; }
}

.mk-graph__hub { box-shadow: var(--mk-shadow-float); }
.mk-graph__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--mk-ink); }
.mk-graph__brand .mk-i { color: var(--mk-blue); }
.mk-graph__badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: var(--mk-radius-pill); background: var(--mk-sky-tint); color: var(--mk-blue); font-size: 12.5px;
}
.mk-graph__profile { display: flex; align-items: center; gap: 14px; padding: 18px 20px 14px; }
.mk-graph__avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--mk-wash-powder); color: var(--mk-blue-deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.mk-graph__who { font-size: 16px; font-weight: 600; color: var(--mk-ink); line-height: 1.3; }
.mk-graph__who small { display: block; font-size: 13px; font-weight: 400; color: var(--mk-graphite); }
.mk-graph__ids { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px; }
.mk-graph__id {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border: 1px solid var(--mk-hairline); border-radius: 10px; font-size: 13.5px; color: var(--mk-ink);
}
.mk-graph__id .mk-i { color: var(--mk-blue); }
.mk-graph__id em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--mk-blue); }
.mk-graph__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 18px 20px 0; padding-top: 16px; border-top: 1px solid var(--mk-hairline);
}
.mk-graph__stats b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--mk-ink); }
.mk-graph__stats span { font-size: 12.5px; color: var(--mk-graphite); }
.mk-graph__foot {
  display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 14px 20px;
  background: var(--mk-sky-tint); border-radius: 0 0 19px 19px;
  font-size: 14.5px; font-weight: 600; color: var(--mk-ink);
}
.mk-graph__foot .mk-i { color: var(--mk-blue); }

@media (max-width: 860px) {
  .mk-graph { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .mk-graph__panel { min-width: 0; }
  .mk-graph__wires { height: 44px; display: flex; justify-content: center; }
  .mk-graph__wires::before { content: ""; width: 2px; background: #d6e1f8; }
  .mk-graph__wires svg, .mk-graph__port { display: none; }
}

/* --- Attribution scoring: last-click vs Mackdata multi-touch -------------- */
.mk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.mk-scorecard {
  background: var(--mk-surface); border: 1px solid var(--mk-hairline);
  border-radius: 22px; padding: 34px; display: flex; flex-direction: column;
}
.mk-scorecard--hl { background: var(--mk-wash-powder); border-color: transparent; }
.mk-scorecard__label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mk-graphite); }
.mk-scorecard--hl .mk-scorecard__label { color: var(--mk-blue); }
.mk-site .mk-scorecard__title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-top: 7px; }
.mk-score { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.mk-score__row { display: grid; grid-template-columns: 88px 1fr 44px; align-items: center; gap: 14px; }
.mk-score__name { font-size: 15px; font-weight: 600; color: var(--mk-ink); }
.mk-score__track { height: 12px; border-radius: 99px; background: #e7ecf4; overflow: hidden; }
.mk-scorecard--hl .mk-score__track { background: rgba(255,255,255,.7); }
.mk-score__fill {
  /* display:block is load-bearing: this is a <span>, and an inline box ignores
     width/height, so the fill rendered as nothing at any value. The track above
     escapes that only because it's a grid item and gets blockified. */
  display: block; height: 100%; border-radius: 99px;
  background: var(--mk-blue); width: var(--val, 0%);
  min-width: 0; max-width: 100%;
}
.mk-score__fill--muted { background: var(--mk-ash); }
html.js .mk-score__fill { width: 0; transition: width 1s cubic-bezier(.16,1,.3,1); }
.mk-static .mk-score__fill, .no-js .mk-score__fill { width: var(--val, 0%) !important; }
.mk-score__pct { font-size: 15px; font-weight: 700; color: var(--mk-ink); text-align: right; font-variant-numeric: tabular-nums; }
.mk-scorecard__foot {
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--mk-ink); font-size: 15px;
}
.mk-scorecard__foot { border-top: 1px solid var(--mk-hairline); margin-top: 26px; }
.mk-scorecard--hl .mk-scorecard__foot { border-top-color: rgba(16,24,40,.10); }
.mk-scorecard__foot .mk-i { width: 18px; height: 18px; color: var(--mk-blue); }

/* --- Outcome flow: calls -> leads -> booked -> completed -> revenue -------- */
.mk-flow { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mk-flow__step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 24px; border-radius: 18px; min-width: 138px;
  background: var(--mk-surface); border: 1px solid var(--mk-hairline);
}
.mk-flow__step .mk-i { width: 26px; height: 26px; color: var(--mk-blue); }
.mk-flow__k { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--mk-ink); line-height: 1; }
.mk-flow__l { font-size: 12.5px; color: var(--mk-graphite); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.mk-flow__step--end { background: var(--mk-blue); border-color: transparent; box-shadow: 0 14px 34px rgba(37,99,235,.28); }
.mk-flow__step--end .mk-i, .mk-flow__step--end .mk-flow__k { color: #fff; }
.mk-flow__step--end .mk-flow__l { color: rgba(255,255,255,.82); }
.mk-flow__arrow { color: var(--mk-ash); line-height: 0; }
.mk-flow__arrow .mk-i { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .mk-compare { grid-template-columns: 1fr; }
}

/* Ask Mack chat, played live (data-chat-live — see initChats). */
.mk-chat-live .mk-chat__row { position: relative; }
.mk-chat-live.is-armed .mk-chat__row { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.mk-chat-live.is-armed .mk-chat__row.is-shown { opacity: 1; transform: none; }
.mk-typing { display: inline-flex; align-items: center; gap: 4px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: #f4f6fa; }
.mk-typing i { width: 6px; height: 6px; border-radius: 50%; background: #98a2b3; animation: mk-dot 1s ease-in-out infinite; }
.mk-typing i:nth-child(2) { animation-delay: .15s; }
.mk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mk-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.mk-chat-live .mk-chat__row.is-typing .mk-chat__bubble { display: none; }

/* ------------------------------------------------------- Booking modal --- */
/* "Book a Demo" modal (assets/js/mack-booking.js): Google's appointment page in
   a site-styled sheet. Not scoped to .mk-site so legacy pages get it too. */
.mk-book { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; pointer-events: none; }
.mk-book.is-open { visibility: visible; pointer-events: auto; }
.mk-book__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.mk-book__panel {
  position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); height: min(760px, calc(100vh - 48px));
  background: #fff; border-radius: 24px; box-shadow: 0 24px 70px rgba(16, 24, 40, .28); overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.mk-book.is-open .mk-book__backdrop { opacity: 1; }
.mk-book.is-open .mk-book__panel { opacity: 1; transform: none; }
.mk-book__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 14px 26px; border-bottom: 1px solid #ececf0; }
.mk-book__k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #2563eb; }
.mk-book__title { margin: 2px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #101828; }
.mk-book__close {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ececf0; background: #fff; color: #101828;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.mk-book__close:hover { background: #f4f6fa; border-color: #dfe3ea; }
.mk-book__close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.mk-book__body { position: relative; flex: 1; min-height: 0; }
.mk-book__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s ease; }
.mk-book.is-loaded .mk-book__frame { opacity: 1; }
.mk-book__spin {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 3px solid #e6f2fe; border-top-color: #2563eb; animation: mk-book-spin .8s linear infinite;
}
.mk-book.is-loaded .mk-book__spin { display: none; }
@keyframes mk-book-spin { to { transform: rotate(360deg); } }
html.mk-book-open, html.mk-book-open body { overflow: hidden; }
@media (max-width: 640px) {
  .mk-book { padding: 0; align-items: flex-end; }
  .mk-book__panel { width: 100%; height: calc(100% - 28px); border-radius: 22px 22px 0 0; transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-mobile, .mk-mobile > *, .mk-mobile__sub { transition: none !important; }
  .mk-book__panel, .mk-book__backdrop, .mk-book__frame { transition: none; }
}

/* --------------------------------------------- Full-screen product shots - */
/* [data-zoom] shots get a full-screen button (mack-animations.js initZoom). The
   enlarged image sits in a frame sized to it, so the ✕ can be centred exactly on
   the image's top-right corner at any viewport size. */
.mk-shot--zoom { position: relative; cursor: zoom-in; }
.mk-shot__expand {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--mk-hairline);
  background: rgba(255, 255, 255, .94); color: var(--mk-ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(16, 24, 40, .1); transition: transform .2s ease, color .2s ease;
}
.mk-shot--zoom:hover .mk-shot__expand { transform: scale(1.06); color: var(--mk-blue); }
.mk-shot__expand:focus-visible { outline: 2px solid var(--mk-blue); outline-offset: 2px; }

.mk-zoom { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 40px; visibility: hidden; }
.mk-zoom.is-open { visibility: visible; }
.mk-zoom__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; cursor: zoom-out; }
.mk-zoom__frame { position: relative; line-height: 0; opacity: 0; transform: scale(.97); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.mk-zoom__img { display: block; max-width: min(1600px, calc(100vw - 80px)); max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(16, 24, 40, .35); }
.mk-zoom.is-open .mk-zoom__backdrop, .mk-zoom.is-open .mk-zoom__frame { opacity: 1; transform: none; }
.mk-zoom__close {
  position: absolute; top: 0; right: 0; transform: translate(50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ececf0; background: #fff; color: #101828;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(16, 24, 40, .25);
}
.mk-zoom__close:hover { background: #f4f6fa; }
.mk-zoom__close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
html.mk-zoom-open, html.mk-zoom-open body { overflow: hidden; }
@media (max-width: 640px) {
  .mk-zoom { padding: 24px; }
  .mk-zoom__img { max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); border-radius: 12px; }
  .mk-zoom__close { width: 36px; height: 36px; }
}

/* ------------------------------------------------------ Industry hero --- */
/* Industry / market pages: copy on the left, that page's Mack on the right,
   standing on a pastel card with his head rising above its top edge.
   Mascot art lives in assets/img/mascots/ (transparent WebP cutouts). */
.mk-hero-split {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.mk-hero-split__title { font-size: clamp(34px, 4.2vw, 52px); }
.mk-hero-mascot {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  padding: 0 7% 30px;
}
.mk-hero-mascot::before {
  content: ""; position: absolute; inset: 24% 0 0;
  background: var(--mk-wash-powder); border-radius: var(--mk-radius-card);
}
.mk-site .mk-hero-mascot img {
  position: relative; width: auto; max-width: 100%; max-height: 480px;
  filter: drop-shadow(0 18px 22px rgba(16, 24, 40, .16));
}
/* Wide scenes (e.g. Mack with the van) fill the card width instead. */
.mk-hero-mascot--wide { padding: 0 5% 30px; }
.mk-hero-mascot--wide::before { inset: 34% 0 0; }
.mk-site .mk-hero-mascot--wide img { width: 100%; max-height: none; }
/* Art cropped at the bottom edge: sit it flush on the card's edge. Small source
   art (e.g. the attribution Mack) is capped so it isn't upscaled into blur. */
.mk-hero-mascot--flush { padding-bottom: 0; }
.mk-site .mk-hero-mascot--small img { max-height: 380px; }
@media (max-width: 960px) {
  .mk-hero-split { grid-template-columns: 1fr; }
  .mk-hero-split__art { width: 100%; max-width: 480px; margin-inline: auto; }
  .mk-site .mk-hero-mascot img { max-height: 340px; }
}

/* ------------------------------------------------------------- Responsive - */
/* Large monitors (1800px+): a slightly wider content column so 1440p / 4K
   screens don't feel sparse; everything keyed to --mk-max-width follows. */
@media (min-width: 1800px) {
  :root { --mk-max-width: 1240px; }
}
@media (max-width: 960px) {
  .mk-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .mk-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .mk-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .mk-nav__links { display: none; }
  .mk-nav__right .mk-nav__link { display: none; }
  .mk-nav__inner { grid-template-columns: 1fr auto; }
  .mk-nav__burger { display: inline-flex; }
  /* The menu has its own Book a Demo, so the header keeps just logo + burger. */
  .mk-nav__right .mk-btn { display: none; }
  .mk-nav__logo img { height: 32px; }
  /* Menu slides + fades open/closed; links settle in one after another. */
  .mk-mobile {
    display: block; visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .28s ease, transform .38s cubic-bezier(.2,.7,.2,1), visibility 0s linear .38s;
  }
  .mk-mobile.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .mk-mobile > * { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .35s ease; }
  .mk-mobile.is-open > * { opacity: 1; transform: none; }
  .mk-mobile.is-open > :nth-child(2) { transition-delay: .03s; } .mk-mobile.is-open > :nth-child(3) { transition-delay: .06s; }
  .mk-mobile.is-open > :nth-child(4) { transition-delay: .09s; } .mk-mobile.is-open > :nth-child(5) { transition-delay: .12s; }
  .mk-mobile.is-open > :nth-child(6) { transition-delay: .15s; } .mk-mobile.is-open > :nth-child(7) { transition-delay: .18s; }
  .mk-mobile.is-open > :nth-child(8) { transition-delay: .21s; } .mk-mobile.is-open > :nth-child(9) { transition-delay: .24s; }
  /* The Industries list is also a direct child: keep its height animation. */
  .mk-mobile > .mk-mobile__sub { opacity: 0; transition: grid-template-rows .38s cubic-bezier(.2,.7,.2,1), opacity .3s ease, transform .35s ease; transition-delay: 0s; }
  .mk-mobile.is-open > .mk-mobile__sub { opacity: 0; transition-delay: 0s; }
  .mk-mobile.is-open > .mk-mobile__sub.is-open { opacity: 1; }
  /* Calls -> Leads -> ... -> Revenue reads top to bottom. */
  .mk-flow { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .mk-flow__step { width: min(100%, 280px); }
  .mk-flow__arrow { transform: rotate(90deg); }
  /* Full screen adds nothing on a phone-sized image. */
  .mk-shot__expand { display: none; }
  .mk-shot--zoom { cursor: default; }
  .mk-grid--3, .mk-grid--2 { grid-template-columns: 1fr; }
  .mk-section { padding-block: 84px; }
  .mk-section.mk-sheet { padding-block: 72px; margin-bottom: 84px; }
}
@media (max-width: 560px) {
  /* Long button labels wrap instead of running off a narrow screen. */
  .mk-btn { max-width: 100%; white-space: normal; text-align: center; }
  .mk-site { font-size: 16px; }
  .mk-container { padding-inline: 20px; }
  .mk-grid--4 { grid-template-columns: 1fr; }
  .mk-footer__grid { grid-template-columns: 1fr; }
  .mk-wash { padding: 28px; }
  .mk-card { padding: 26px; }
}
