/* ==========================================================================
   Manax redesign — additional styles (loaded after style.css)
   ========================================================================== */

:root {
  --mx-primary:        #003261;
  --mx-blue:           #4D84E1;
  --mx-blue-300:       #39AACF;
  --mx-green:          #1ECA59;
  --mx-green-300:      #30B6A6;
  --mx-line:           #BFE5F1;
  --mx-callout-bg:     #F2FCFF;
  --mx-gray-text:      #394755;
  --mx-gray-muted:     #6b7480;
  --mx-card-bg:        #F4F5F7;
  --mx-pay:            linear-gradient(135deg, #7c5cff 0%, #4b3bff 100%);
  --mx-gradient:       linear-gradient(90deg, #39AACF 5%, #1ECA59 100%);
  --mx-footer-gradient:linear-gradient(135deg, #2a8cc4 0%, #27b7a7 55%, #2dcf72 100%);
  --mx-radius-lg:      30px;
  --mx-radius-md:      20px;
  --mx-radius-sm:      14px;
  --mx-shadow-card:    0 10px 30px rgba(0, 50, 97, 0.08);
  /* Fixed header reserves flow space via body padding-top. Two states:
     initial (large, transparent) and scrolled (compact, frosted-glass). */
  --mx-header-h:          185px;
  --mx-header-h-scrolled: 80px;
  --mx-header-ease:       cubic-bezier(.2, .6, .2, 1);
  --mx-header-dur:        320ms;
}
@media (max-width: 767.98px) {
  :root {
    --mx-header-h:          96px;
    --mx-header-h-scrolled: 68px;
  }
}

/* Reserve flow space for the fixed header */
body { padding-top: var(--mx-header-h); }
/* Nav anchors shouldn't land under the scrolled-state header */
#about, #stories, #subscribe, #footer {
  scroll-margin-top: calc(var(--mx-header-h-scrolled) + 16px);
}

/* Layout helpers ---------------------------------------------------------- */
/* Content column matches the hero illustration (parallax-box max-width = 1320px) */
.mx-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 8px;
  padding-right: 8px;
}
/* Text-heavy sections get larger gutters so reading measure stays comfortable */
.mx-container--text {
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 767.98px) {
  .mx-container { padding-left: 20px; padding-right: 20px; }
  .mx-container--text { padding-left: 20px; padding-right: 20px; }
}

.mx-section { padding: 72px 0; }
@media (max-width: 767.98px) {
  .mx-section { padding: 48px 0; }
}

/* Header ------------------------------------------------------------------ */
.mx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  transition:
    background-color var(--mx-header-dur) var(--mx-header-ease),
    backdrop-filter  var(--mx-header-dur) var(--mx-header-ease),
    -webkit-backdrop-filter var(--mx-header-dur) var(--mx-header-ease),
    box-shadow       var(--mx-header-dur) var(--mx-header-ease);
}
.mx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  /* Horizontal padding mirrors manax.swiss/pay (.nav { padding: 86px 72px 85px }) —
     overrides the 8px gutter from .mx-container so logo/Pay align with /pay/ */
  padding: 48px 72px;
  transition: padding var(--mx-header-dur) var(--mx-header-ease);
}
.mx-header__logo img {
  display: block;
  width: auto;
  height: 89px;               /* matches .logo-img height on manax.swiss/pay */
  flex-shrink: 0;
  transition: height var(--mx-header-dur) var(--mx-header-ease);
}
.mx-nav {
  display: flex;
  align-items: center;
  justify-content: center;    /* center items between logo and Pay button */
  gap: 48px;                  /* mirrors .nav-menu li { padding: 0 24px } on /pay/ */
  flex: 1;
}
.mx-nav a {
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
  color: var(--mx-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease, color 0.2s ease;
}
.mx-nav a:hover { opacity: 0.7; }

/* Scrolled state — frosted-glass backdrop appears, header compresses */
.mx-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow:
    0 1px 0 rgba(0, 50, 97, 0.06),
    0 8px 24px rgba(0, 50, 97, 0.05);
}
/* Scrolled state: shrink only the vertical padding — horizontal padding stays
   inherited from the base rule so the logo/Pay never get flush to viewport edge
   at narrower widths (where .mx-container fills the viewport). */
.mx-header.is-scrolled .mx-header__inner {
  padding-top: 14px;
  padding-bottom: 14px;
}
.mx-header.is-scrolled .mx-header__logo img { height: 52px; }

.mx-btn-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 26px;
  border-radius: 58px;         /* explicit pill, mirrors /pay/ .nav-holding */
  background: var(--mx-pay);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(76, 60, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.mx-btn-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(76, 60, 255, 0.38);
  filter: brightness(1.05);
}

/* Hamburger button — hidden on desktop, absolute-centered on mobile.
   Absolute positioning is deliberate: with flex `space-between` and auto
   margins the burger sat at the midpoint of free space between logo (~148px)
   and Pay (~74px), which is not the viewport centre. `left: 50%` + translate
   places it at the optical centre regardless of sibling widths. */
.mx-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mx-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--mx-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile menu overlay — full-screen frosted sheet under the fixed header */
.mx-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;                     /* under the header (z:60) so the burger stays tappable */
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: calc(var(--mx-header-h-scrolled) + 48px) 24px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  display: none;                   /* desktop: hidden from a11y tree too */
}
.mx-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}
.mx-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mx-mobile-menu__nav a {
  font-size: 32px;
  font-weight: 700;
  color: var(--mx-primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}
body.mx-menu-open { overflow: hidden; }

@media (max-width: 1199.98px) {
  /* Shrink /pay/-style 72px gutter on mid-width viewports so nav doesn't crowd */
  .mx-header__inner { padding: 48px 32px; }
}
@media (max-width: 767.98px) {
  .mx-nav { display: none; }
  .mx-header__inner { position: relative; padding: 24px 24px; gap: 16px; }  /* 24px min safe-area */
  .mx-burger {
    display: flex;
    position: absolute;
    left: calc(50% + 36px);
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .mx-mobile-menu { display: block; }
  .mx-header__logo img { height: 48px; width: auto; }
  .mx-btn-pay { height: 38px; padding: 0 22px; font-size: 15px; border-radius: 58px; }
  .mx-header.is-scrolled .mx-header__inner { padding-top: 12px; padding-bottom: 12px; }
  .mx-header.is-scrolled .mx-header__logo img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .mx-header,
  .mx-header__inner,
  .mx-header__logo img { transition: none; }
}

/* Hero overrides ---------------------------------------------------------- */
.mx-hero { padding-top: 22px; padding-bottom: 72px; }
@media (max-width: 767.98px) {
  .mx-hero { padding-top: 14px; padding-bottom: 40px; }
}

/* Intro lead -------------------------------------------------------------- */
.mx-lead {
  max-width: 900px;
  font-size: 56px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--mx-primary);
}
@media (max-width: 1023.98px) {
  .mx-lead { font-size: 40px; line-height: 1.2; }
}
@media (max-width: 767.98px) {
  .mx-lead { font-size: 28px; line-height: 1.25; letter-spacing: -0.3px; }
}

/* Section titles ---------------------------------------------------------- */
.mx-h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--mx-primary);
  letter-spacing: -0.5px;
  margin: 0 0 32px;
}
@media (max-width: 767.98px) {
  .mx-h2 { font-size: 26px; margin-bottom: 24px; }
}

/* Research — sticky pin + horizontal scroll ------------------------------ */
/* Lead → research rhythm (2026-04-24):
   - Desktop: keep the earlier "halved" layout (#about pad-bottom 36, research
     pad-top 0) — the pin-inner's own padding-top already provides 152px of
     breathing space before the heading when sticky, so the section gaps would
     otherwise feel excessive.
   - Mobile: use the default .mx-section 48/0 padding so the gap mirrors the
     hero → lead rhythm (~88-96px); user explicitly asked for more air there.
   `padding-bottom: 0` on the pin section stays at all widths so Stories can
   pull up via `margin-top: -200px` without a visible seam. */
@media (min-width: 768px) {
  #about.mx-section { padding-bottom: 36px; }
  .mx-section.mx-research { padding-top: 0; }
}
.mx-section.mx-research { padding-bottom: 0; }

.mx-research { position: relative; }

.mx-research__pin {
  position: relative;
  /* Height is set by JS on desktop to convert vertical scroll → horizontal */
}
.mx-research__pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--mx-header-h-scrolled) + 72px);
  gap: 48px;
  overflow: hidden;
}
.mx-research__aside {
  flex: 0 0 auto;
  width: 100%;
  padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.mx-research__aside .mx-h2 {
  margin-bottom: 0;
}
.mx-research__track {
  flex: 0 0 auto;
  width: max-content;               /* natural row width; pin-inner clips the overflow */
  display: flex;
  gap: 20px;
  padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1200px) / 2 + 24px));
  will-change: transform;
}

.mx-research__card {
  position: relative;
  flex: 0 0 480px;
  height: 480px;
  padding: 36px;
  border-radius: var(--mx-radius-md);
  background: var(--mx-card-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;                 /* cards aren't links — show plain arrow, not pointer */
  transition:
    box-shadow 0.35s cubic-bezier(.2,.7,.2,1),
    background 0.35s ease,
    color 0.35s ease;
  color: var(--mx-primary);
  overflow: hidden;
}
.mx-research__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      480px circle at var(--mx, 50%) var(--my, 50%),
      rgba(30, 202, 89, 0.55),         /* --mx-green #1ECA59, cursor highlight */
      transparent 55%
    ),
    var(--mx-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}
.mx-research__card > * { position: relative; z-index: 1; }
.mx-research__card:hover {
  box-shadow: var(--mx-shadow-card);
  color: #fff;
}
.mx-research__card:hover::after { opacity: 1; }

.mx-research__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.mx-research__num {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 10px;
}
.mx-research__arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(0, 50, 97, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);     /* SVG is drawn as ↗ — rotate it to → at rest */
  transition: background 0.35s ease, transform 0.35s ease;
}
.mx-research__arrow svg { width: 20px; height: 20px; }
.mx-research__card:hover .mx-research__arrow {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(0deg);      /* counter-clockwise: → → ↗ */
}
.mx-research__title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0;
}

/* Mobile fallback: vertical stacking, no pin, no horizontal scroll.
   Hover is replaced by a scroll-position "spotlight": the card whose vertical
   centre is closest to viewport centre gets .is-spotlight (JS-controlled),
   mimicking the desktop cursor-hover feel without needing a pointer. */
@media (max-width: 767.98px) {
  .mx-research__pin { height: auto !important; }
  .mx-research__pin-inner {
    position: static;
    height: auto;
    overflow: visible;
    justify-content: flex-start;
    padding-top: 0;
    gap: 16px;
  }
  .mx-research__aside {
    padding: 0 20px;
  }
  .mx-research__track {
    flex-direction: column;           /* stack cards vertically so none go off-screen */
    width: 100%;
    overflow: visible;
    padding: 4px 20px 24px;
    gap: 20px;                         /* a bit more air between cards for the spotlight rhythm */
    transform: none !important;
    scrollbar-width: none;
  }
  .mx-research__track::-webkit-scrollbar { display: none; }
  .mx-research__card {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 220px;
    padding: 24px;
  }
  .mx-research__title { font-size: 22px; }

  /* Neutralise touch-hover on mobile — spotlight drives all the state changes */
  .mx-research__card:hover { box-shadow: none; color: var(--mx-primary); }
  .mx-research__card:hover::after { opacity: 0; }

  /* Static down-pointing arrow (↓), no rotation on hover/spotlight */
  .mx-research__arrow,
  .mx-research__card:hover .mx-research__arrow,
  .mx-research__card.is-spotlight .mx-research__arrow {
    width: 44px;
    height: 44px;
    transform: rotate(135deg);        /* SVG ↗ rotated 135° → ↓ */
    transition: background 0.35s ease;
  }
  .mx-research__card:hover .mx-research__arrow {
    background: rgba(0, 50, 97, 0.08);
  }

  /* Spotlight = desktop hover look, applied as a class by scroll JS */
  .mx-research__card.is-spotlight {
    box-shadow: var(--mx-shadow-card);
    color: #fff;
  }
  .mx-research__card.is-spotlight::after { opacity: 1; }
  .mx-research__card.is-spotlight .mx-research__arrow {
    background: rgba(255, 255, 255, 0.22);
  }
}

/* Updates / blog ---------------------------------------------------------- */
.mx-updates {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Desktop: pull Updates up to overlap with the end of the pinned research scroll,
   start invisible, and fade in once the horizontal rail is nearly finished
   (pin JS toggles .is-revealed at progress >= 0.9). */
@media (min-width: 768px) {
  .mx-section--updates {
    margin-top: -200px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
    will-change: opacity, transform;
  }
  .mx-section--updates.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stories heading — sized to match the intro lead (`.mx-lead`), not the
   standard `.mx-h2`. User wants "Stories" to read as a hero-weight title. */
.mx-section--updates .mx-h2 {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -1px;
}
@media (max-width: 1023.98px) {
  .mx-section--updates .mx-h2 { font-size: 40px; line-height: 1.2; letter-spacing: -0.5px; }
}
@media (max-width: 767.98px) {
  .mx-section--updates .mx-h2 { font-size: 28px; line-height: 1.25; letter-spacing: -0.3px; }
}
.mx-update {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 32px;
  align-items: start;              /* auto-layout top alignment */
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  color: var(--mx-primary);
  transition: transform 0.3s ease;
}
.mx-update:hover { transform: translateY(-2px); }
.mx-update:hover .mx-update__title { color: var(--mx-blue-300); }
.mx-update:hover .mx-update__image img { transform: scale(1.08); }

.mx-update__body {
  padding-top: 4px;                /* optical alignment with the image top */
}
.mx-update__meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--mx-gray-muted);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.mx-update__title {
  font-size: 30px;                 /* matches .mx-research__title size */
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.2px;
  max-width: 600px;                /* keeps titles to ~2 lines and leaves consistent air before the 330px thumb */
  text-wrap: balance;              /* evens line lengths where the browser supports it */
  transition: color 0.3s ease;
}
.mx-update__image {
  width: 330px;
  height: 330px;
  border-radius: var(--mx-radius-md);
  overflow: hidden;
  background: #eef2f7;
  justify-self: end;
}
.mx-update__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1023.98px) {
  .mx-update { grid-template-columns: 1fr 260px; gap: 24px; }
  .mx-update__image { width: 260px; height: 260px; }
}
@media (max-width: 640px) {
  .mx-updates { gap: 20px; }
  .mx-update {
    grid-template-columns: 1fr 3fr;     /* thumbnail : title = 1 : 3 */
    grid-template-areas: "img body";
    gap: 14px;
    align-items: center;
  }
  .mx-update__image {
    grid-area: img;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }
  .mx-update__body { grid-area: body; padding-top: 0; }
  .mx-update__meta { font-size: 12px; margin-bottom: 4px; }
  .mx-update__title { font-size: 22px; line-height: 1.25; }   /* matches mobile .mx-research__title */
}

/* Final CTA + compact footer bar — /pay/-style layout, blue→teal→green ---- */
.mx-cta {
  position: relative;
  background: var(--mx-footer-gradient);
  color: #fff;
  padding: 140px 0 0;
  overflow: hidden;
}
.mx-cta__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 96px;
}
.mx-cta__head { display: block; margin-bottom: 40px; }
.mx-cta__h {
  margin: 0;
  font-size: clamp(32px, 6.8vw, 86px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.075em;
  color: #fff;
  max-width: 1200px;
}
.mx-cta__h em { font-style: normal; color: inherit; font-weight: 700; }
.mx-cta__sub {
  margin: 36px 0 0;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  max-width: 560px;
}

/* Waitlist / subscribe form */
.mx-waitlist {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
  position: relative;
}
.mx-waitlist__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mx-waitlist__input {
  flex: 1;
  min-width: 260px;
  padding: 20px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mx-waitlist__input::placeholder { color: rgba(255, 255, 255, 0.55); }
.mx-waitlist__input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.mx-waitlist__btn {
  padding: 20px 36px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--mx-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.mx-waitlist__btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.mx-waitlist__btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.mx-waitlist__note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.mx-waitlist__error,
.mx-waitlist__success {
  display: none;
  margin: 0;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
}
.mx-waitlist__error {
  background: rgba(233, 95, 85, 0.18);
  border: 1px solid rgba(233, 95, 85, 0.5);
  color: #ffe1de;
}
.mx-waitlist__success {
  background: rgba(162, 240, 192, 0.18);
  border: 1px solid rgba(162, 240, 192, 0.45);
  color: #e5ffef;
}
.mx-waitlist.is-error .mx-waitlist__error { display: block; }
.mx-waitlist.is-sent .mx-waitlist__row,
.mx-waitlist.is-sent .mx-waitlist__note { display: none; }
.mx-waitlist.is-sent .mx-waitlist__success { display: block; }

/* Logo + nav row inside the CTA */
.mx-cta__logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 40px 0 48px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.mx-cta__logo img {
  display: block;
  width: auto;
  height: 68px;
  filter: brightness(0) invert(1);
}
.mx-cta__nav {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.mx-cta__nav li { padding: 0 28px; }
.mx-cta__nav a {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.mx-cta__nav a:hover { color: #fff; }

/* Regulatory / legal block */
.mx-cta__regulatory {
  padding: 56px 0 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  max-width: 1100px;
}
.mx-cta__regulatory p { margin: 0 0 14px; }
.mx-cta__regulatory p:last-child { margin: 0; }
.mx-cta__regulatory strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* Compact bottom bar */
.mx-foot {
  background: linear-gradient(135deg, #1e7ab0 0%, #1d9e90 55%, #1eb360 100%);
  color: #fff;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.mx-foot__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.mx-foot__email {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.mx-foot__email:hover { opacity: 0.75; }

@media (max-width: 1023.98px) {
  .mx-cta { padding: 96px 0 0; }
  .mx-cta__inner,
  .mx-foot__inner { padding: 0 48px; }
  .mx-cta__h { font-size: clamp(32px, 7vw, 68px); letter-spacing: -0.055em; }
  .mx-cta__logo-row { padding: 32px 0 24px; margin-top: 20px; }
  .mx-cta__nav li { padding: 0 18px; }
  .mx-cta__nav a { font-size: 20px; }
}

@media (max-width: 767.98px) {
  .mx-cta { padding: 72px 0 0; }
  .mx-cta__inner,
  .mx-foot__inner { padding: 0 20px; }
  .mx-cta__head { margin-bottom: 32px; }
  .mx-cta__sub { font-size: 17px; margin-top: 24px; }
  .mx-waitlist { margin-top: 32px; gap: 16px; }
  .mx-waitlist__row { flex-direction: column; }
  .mx-waitlist__input,
  .mx-waitlist__btn { width: 100%; min-width: 0; }
  .mx-waitlist__input { text-align: center; }
  .mx-waitlist__note { text-align: center; }
  .mx-cta__logo-row { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 0 24px; margin-top: 20px; }
  .mx-cta__logo img { height: 52px; }
  .mx-cta__nav { flex-wrap: wrap; width: 100%; justify-content: flex-start; gap: 4px 0; }
  .mx-cta__nav li { padding: 0 16px 0 0; }
  .mx-cta__nav a { font-size: 16px; line-height: 28px; }
  .mx-cta__regulatory { padding: 36px 0 44px; max-width: none; }
  .mx-cta__regulatory p { font-size: 12px; }
  .mx-foot { padding: 24px 0; }
  .mx-foot__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Cookie banner ----------------------------------------------------------- */
.mx-cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  right: 20px;
  max-width: 520px;
  z-index: 100;
  background: var(--mx-footer-gradient);
  color: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 50, 97, 0.25);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.mx-cookie.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mx-cookie__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.mx-cookie__text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}
.mx-cookie__text a {
  color: #fff;
  text-decoration: underline;
  font-size: inherit;
  font-weight: 500;
}
.mx-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mx-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mx-cookie__btn--primary {
  background: #fff;
  color: var(--mx-primary);
}
.mx-cookie__btn--primary:hover { transform: translateY(-1px); }
.mx-cookie__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.mx-cookie__btn--ghost:hover { background: rgba(255, 255, 255, 0.15); }

@media (max-width: 575.98px) {
  .mx-cookie { padding: 20px; left: 12px; right: 12px; bottom: 12px; }
  .mx-cookie__btn { flex: 1; padding: 0 14px; }
}

/* Parallax hero — kill the old centered logo above, shrink padding */
.mx-hero .parallax-box { max-width: 1320px; }

/* Hero headline — fade-in on page load */
.parallax-box__text {
  animation: mx-hero-fade 1s ease-out both;
}
@keyframes mx-hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* "your" SVG — slow, smooth gradient shift via hue-rotate */
.parallax-box__text img {
  animation: mx-your-shimmer 6s ease-in-out infinite;
}
@keyframes mx-your-shimmer {
  0%, 100% { filter: hue-rotate(-25deg) saturate(1);    }
  50%      { filter: hue-rotate(25deg)  saturate(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .parallax-box__text img { animation: none; }
}

/* Hero text — mobile: bigger type, tighter line-height, locked to 3 lines.
   `.mx-hero-line` spans (one per line in the HTML) carry `white-space: nowrap`
   so the browser can't wrap "Providing sustainable" onto two lines on narrow
   viewports. Font-size scales with viewport via clamp so even at 320px-wide
   devices each segment still fits horizontally. */
@media (max-width: 767.98px) {
  .parallax-box__text {
    font-size: clamp(32px, 8.6vw, 44px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    padding-top: 40px;
  }
  .parallax-box__text .mx-hero-line {
    display: inline-block;
    white-space: nowrap;
  }
  .parallax-box__text img.inline {
    width: 3em;                    /* scales with the hero font-size */
    min-width: 0;
    height: auto;
    vertical-align: middle;
  }
}

/* Reveal on scroll — applied to sections & rows via IntersectionObserver */
.mx-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}
.mx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .mx-reveal, .parallax-box__text {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Article / blog page --------------------------------------------------- */
.mx-article__back-bar {
  position: sticky;
  top: calc(var(--mx-header-h-scrolled) + 8px);   /* sit just below the compressed fixed header */
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 18px 16px;
  pointer-events: none;          /* clicks pass through — only the pill itself is clickable */
}
.mx-article__back-bar > * { pointer-events: auto; }

.mx-article {
  padding-top: 40px;
  padding-bottom: 150px;           /* halved (was 300) — Read next now sits closer to article end */
}

.mx-article__head {
  max-width: 900px;
  margin: 0 auto;
}
.mx-article__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.65);     /* --mx-card-bg with alpha — lets the blur show */
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: var(--mx-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.mx-article__back:hover {
  background: rgba(191, 229, 241, 0.75);     /* --mx-line with alpha */
  transform: translateX(-2px);
}
.mx-article__back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.25s ease;
}
.mx-article__back:hover .mx-article__back-icon {
  transform: translateX(-2px);
}

.mx-article__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mx-gray-muted);
  letter-spacing: 0.04em;
}
.mx-article__meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  opacity: 0.5;
}
.mx-article__title {
  margin-top: 18px;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--mx-primary);
  letter-spacing: -1px;
}

.mx-article__cover {
  margin: 56px auto 56px;
  max-width: 1200px;
  padding: 0 24px;
  animation: mx-hero-fade 1s ease-out both;    /* same 1s fade-in as the main-page hero */
}
.mx-article__cover img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--mx-radius-lg);
  display: block;
}

.mx-article__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.85;               /* 1.65 → 1.85 for a more airy read */
  color: var(--mx-gray-text);
}
.mx-article__body > * + * { margin-top: 50px; }   /* 44 → 50 between blocks */
.mx-article__body > h2 + * { margin-top: 68px; }  /* 60 → 68 extra breathing below subhead */
.mx-article__body p { margin: 0; }
.mx-article__body .lead {
  font-size: 22px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--mx-primary);
}
.mx-article__body h2 {
  margin-top: 100px !important;    /* 88 → 100 — more air before a new section */
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--mx-primary);
  letter-spacing: -0.3px;
}
.mx-article__body ul {
  padding-left: 22px;
  margin: 0;
}
.mx-article__body ul li {
  list-style: disc;
  margin-bottom: 12px;             /* 6 → 12 */
  line-height: 1.7;
}
.mx-article__body blockquote {
  margin: 40px 0;                  /* 32 → 40 */
  padding: 24px 28px;
  border-left: 3px solid var(--mx-blue-300);
  background: var(--mx-callout-bg);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1.65;               /* 1.5 → 1.65 */
  color: var(--mx-primary);
  font-weight: 500;
}

@media (max-width: 767.98px) {
  .mx-article { padding-top: 32px; padding-bottom: 60px; }
  .mx-article__title { font-size: 34px; letter-spacing: -0.4px; }
  .mx-article__meta { margin-top: 32px; }
  .mx-article__cover { margin: 32px auto; padding: 0 16px; }
  .mx-article__cover img { border-radius: 20px; max-height: none; aspect-ratio: 4 / 3; }
  .mx-article__body { font-size: 17px; }
  .mx-article__body .lead { font-size: 19px; }
  .mx-article__body h2 { font-size: 24px; margin-top: 76px !important; }  /* 64 → 76 on mobile */
}

/* Read next — article suggestions at the end of blog.html --------------- */
.mx-more {
  padding: 40px 0 120px;
}
.mx-more__h {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--mx-primary);
  letter-spacing: -0.3px;
  margin: 0 0 32px;
}
.mx-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mx-more__card {
  display: block;
  text-decoration: none;
  color: var(--mx-primary);
  transition: transform 0.3s ease;
}
.mx-more__card:hover { transform: translateY(-3px); }
.mx-more__card:hover .mx-more__title { color: var(--mx-blue-300); }
.mx-more__card:hover .mx-more__image img { transform: scale(1.06); }
.mx-more__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--mx-radius-md);
  overflow: hidden;
  background: #eef2f7;
  margin-bottom: 18px;
}
.mx-more__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.mx-more__meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--mx-gray-muted);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.mx-more__title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.1px;
  transition: color 0.3s ease;
}

@media (max-width: 1023.98px) {
  .mx-more__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .mx-more__title { font-size: 18px; }
}
@media (max-width: 640px) {
  .mx-more { padding: 24px 0 72px; }
  .mx-more__h { font-size: 26px; margin-bottom: 20px; }
  .mx-more__grid { grid-template-columns: 1fr; gap: 28px; }
  /* Match the Stories (index) mobile layout: square thumb on the left (1fr),
     title/meta on the right (3fr). Keeps the two blocks visually consistent. */
  .mx-more__card {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 14px;
    align-items: center;
  }
  .mx-more__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    margin-bottom: 0;
  }
  .mx-more__meta { font-size: 12px; margin-bottom: 4px; }
  .mx-more__title { font-size: 22px; line-height: 1.25; }
}
