/* My Exports program page - the approved design's stylesheet (my-exports-html-version assets/css/pages/home.css), every
   rule scoped to .mx-page so the site's navbar and footer keep their own look. Re-create with
   database/data/my-exports/convert-from-html.cjs. */


@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700;1,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mx-page {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.mx-page {
  margin: 0;
  padding: 0;
  background-color: #f0fcfa;
  color: #0b0d18;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

.mx-page .app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
}

.mx-page .main-content-bg {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ==========================================================================
   Design tokens & Scoped styles for My Exports Page
   ========================================================================== */

.mx-page .my-exports-page {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Surfaces & ink — light (mint scheme from the reference design) */
  --bg: #f0fcfa;
  --bg-alt: #e8f8f4;
  --bg-elev: #ffffff;
  --surface-2: #f7fdfb;
  --ink: #0b0d18;
  --ink-2: #2b3340;
  --muted: #5b6270;
  --eyebrow: #4f535b;
  --line: #dcefea;
  --line-strong: #c3dad4;

  /* Teal brand */
  --teal: #2cc3b0;
  --teal-ink: #08696d;
  --teal-deep: #05302b;
  --teal-icon: #109a7b;
  --teal-line: #5a9b97;
  --teal-grad: linear-gradient(90deg, #58e0c9 0%, #3fd2bc 50%, #2cc3b0 100%);
  --mint: #e3f6f4;
  --mint-2: #e2faf4;

  /* Phase accents: fill, text ink, pastel surface, badge and progress track */
  --p1: #f5a623;
  --p1-ink: #c46a0a;
  --p1-soft: #fef8e8;
  --p1-badge: #ffe494;
  --p1-track: #fdebb4;
  --p2: #2cc3a6;
  --p2-ink: #0b7f5c;
  --p2-soft: #e9fcf7;
  --p2-badge: #b3f6e2;
  --p2-track: #baf3e5;
  --p3: #3384ef;
  --p3-ink: #1554d8;
  --p3-soft: #e7f4fd;
  --p3-badge: #bfe0ff;
  --p3-track: #b6dcfc;
  --p4: #a86afc;
  --p4-ink: #7a38d8;
  --p4-soft: #f3effe;
  --p4-badge: #ddc2fb;
  --p4-track: #e2d2fe;

  --success: #12a585;
  --focus: #0c7d80;
  --brand-grad: linear-gradient(135deg, #fcc72c 0%, #f9a825 55%, #ff9417 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 50, 50, 0.05), 0 1px 1px rgba(15, 50, 50, 0.03);
  --shadow: 0 1px 2px rgba(15, 50, 50, 0.04), 0 16px 34px -22px rgba(15, 60, 60, 0.32);
  --shadow-lg: 0 30px 60px -30px rgba(15, 60, 60, 0.38);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

.mx-page .my-exports-page[data-theme='dark'] {
  --bg: #08151a;
  --bg-alt: #0a1a1f;
  --bg-elev: #0f2228;
  --surface-2: #0c1d22;
  --ink: #eef6f5;
  --ink-2: #c7d6d6;
  --muted: #93a6a8;
  --eyebrow: #93a6a8;
  --line: #1b3339;
  --line-strong: #27464d;

  --teal-ink: #5eead4;
  --teal-icon: #5eead4;
  --teal-line: #3c8d86;
  --mint: rgba(94, 234, 212, 0.1);
  --mint-2: rgba(45, 212, 191, 0.12);

  --p1: #f5b041;
  --p1-ink: #fbbf24;
  --p1-soft: rgba(245, 166, 35, 0.09);
  --p1-badge: rgba(245, 166, 35, 0.22);
  --p1-track: rgba(245, 166, 35, 0.2);
  --p2: #34d3b4;
  --p2-ink: #5eead4;
  --p2-soft: rgba(44, 195, 166, 0.09);
  --p2-badge: rgba(44, 195, 166, 0.22);
  --p2-track: rgba(44, 195, 166, 0.2);
  --p3: #5b9cf5;
  --p3-ink: #93c5fd;
  --p3-soft: rgba(51, 132, 239, 0.1);
  --p3-badge: rgba(51, 132, 239, 0.24);
  --p3-track: rgba(51, 132, 239, 0.22);
  --p4: #b98afc;
  --p4-ink: #c4b5fd;
  --p4-soft: rgba(168, 106, 252, 0.1);
  --p4-badge: rgba(168, 106, 252, 0.24);
  --p4-track: rgba(168, 106, 252, 0.22);

  --success: #2dd4a7;
  --focus: #5eead4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 60px -22px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

/* Per-phase accent scoping: any element with .phase-N exposes the phase palette */
.mx-page .phase-1 { --accent: var(--p1); --accent-ink: var(--p1-ink); --accent-soft: var(--p1-soft); --accent-badge: var(--p1-badge); --accent-track: var(--p1-track); }
.mx-page .phase-2 { --accent: var(--p2); --accent-ink: var(--p2-ink); --accent-soft: var(--p2-soft); --accent-badge: var(--p2-badge); --accent-track: var(--p2-track); }
.mx-page .phase-3 { --accent: var(--p3); --accent-ink: var(--p3-ink); --accent-soft: var(--p3-soft); --accent-badge: var(--p3-badge); --accent-track: var(--p3-track); }
.mx-page .phase-4 { --accent: var(--p4); --accent-ink: var(--p4-ink); --accent-soft: var(--p4-soft); --accent-badge: var(--p4-badge); --accent-track: var(--p4-track); }

/* ==========================================================================
   Page layout & scoped resets
   ========================================================================== */
.mx-page .my-exports-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg, #f0fcfa);
}

.mx-page .my-exports-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
}

.mx-page .my-exports-page h1,
.mx-page .my-exports-page h2,
.mx-page .my-exports-page h3,
.mx-page .my-exports-page .tree-head h2,
.mx-page .my-exports-page .tree-phase-copy h3,
.mx-page .my-exports-page .cta-copy h2,
.mx-page .my-exports-page .section-head h2 {
  font-family: var(--font-display);
}

.mx-page .my-exports-page img,
.mx-page .my-exports-page svg {
  display: block;
  max-width: 100%;
}

.mx-page .my-exports-page button,
.mx-page .my-exports-page input {
  font: inherit;
  color: inherit;
}

.mx-page .my-exports-page a {
  color: inherit;
}

.mx-page .my-exports-page h1,
.mx-page .my-exports-page h2,
.mx-page .my-exports-page h3,
.mx-page .my-exports-page h4,
.mx-page .my-exports-page p {
  overflow-wrap: break-word;
}

/* Ampersand inside display headings (see common/Amp.jsx) */
.mx-page .my-exports-page .amp {
  font-family: var(--font-body) !important;
  font-weight: 700;
  font-size: 0.86em;
  letter-spacing: 0;
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */
.mx-page .my-exports-page .container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .mx-page .my-exports-page .container {
    width: min(1200px, 100% - 64px);
  }
}

.mx-page .my-exports-page .section {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
}

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

/* ==========================================================================
   Shared components
   ========================================================================== */
.mx-page .my-exports-page .eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.mx-page .my-exports-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background-color 0.2s,
    border-color 0.2s, color 0.2s;
}

.mx-page .my-exports-page .btn svg {
  flex: none;
  transition: transform 0.2s var(--ease-out);
}

.mx-page .my-exports-page .btn:hover svg:last-child {
  transform: translateX(3px);
}

.mx-page .my-exports-page .btn:active {
  transform: translateY(1px);
}

.mx-page .my-exports-page .btn-primary {
  border: 0;
  background: var(--teal-grad);
  color: var(--teal-deep);
  box-shadow: 0 12px 26px -14px rgba(20, 170, 150, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mx-page .my-exports-page .btn-primary:hover {
  box-shadow: 0 16px 32px -14px rgba(20, 170, 150, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.mx-page .my-exports-page .btn-ghost,
.mx-page .my-exports-page .btn-outline {
  background: var(--bg-elev);
  border-color: var(--teal-line);
  color: var(--ink);
}

.mx-page .my-exports-page .btn-ghost:hover,
.mx-page .my-exports-page .btn-outline:hover {
  border-color: var(--teal-ink);
  box-shadow: 0 10px 24px -16px rgba(15, 110, 110, 0.6);
}

.mx-page .my-exports-page .btn-ghost:hover svg:last-child,
.mx-page .my-exports-page .btn-outline:hover svg:last-child {
  transform: none;
}

.mx-page .my-exports-page .btn-outline {
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.94rem;
}

.mx-page[data-theme='dark'] .my-exports-page .btn-ghost,
.mx-page[data-theme='dark'] .my-exports-page .btn-outline {
  background: transparent;
}

.mx-page .my-exports-page .bar {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: var(--accent-track, var(--line));
  overflow: hidden;
}

.mx-page .my-exports-page .bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--accent, var(--teal));
  transition: width 0.6s var(--ease-out);
}

/* Scroll reveal */
.mx-page [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.mx-page [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .mx-page [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


.mx-page .hero {
  --hero-panel: linear-gradient(180deg, #f1f9f5 0%, #f8fcfc 28%, #fafdfd 62%, #f2faf6 100%);
  --hero-ink: #071a36;
  --hero-em: #07806a;
  --hero-green: #01856d;
  --hero-green-hover: #017560;
  --hero-green-deep: #0e6d5d;
  --hero-sun: #dcbc3a;
  --hero-lead: #5f6670;
  --hero-pill-bg: #e9f7f2;
  --hero-pill-icon-bg: #c3efd0;
  --hero-pill-icon: #0a4a33;
  --hero-line-bg: #ffffff;
  --hero-line-border: #c2d6cf;
  --hero-tile: #e1f4f0;
  --hero-tile-hi: #f4fbf8;
  --hero-label: #232b36;
  --hero-col-divider: #e3eeec;

  /* Illustration palette */
  --art-ink: #0b6b55;
  --art-mid: #2e9c74;
  --art-light: #7fcf9b;
  --art-leaf: #9fd36c;
  --art-sun: #f0b429;

  /* Stats strip */
  --hero-strip: #ffffff;
  --hero-divider: #e9eeed;
  --hero-tile-ink: #109a7b;
  --hero-stat-ink: #0b0d18;
  --hero-stat-label: #6b7079;

  position: relative;
  color: var(--hero-ink);
}

.mx-page[data-theme='dark'] .hero {
  --hero-panel: linear-gradient(180deg, #0c1e23 0%, #08151a 100%);
  --hero-ink: #f2f8f7;
  --hero-em: #5eead4;
  --hero-green: #0f9d80;
  --hero-green-hover: #12b08f;
  --hero-green-deep: #2dd4a7;
  --hero-lead: #a6b7b8;
  --hero-pill-bg: rgba(94, 234, 212, 0.1);
  --hero-pill-icon-bg: rgba(94, 234, 212, 0.18);
  --hero-pill-icon: #99f6e4;
  --hero-line-bg: transparent;
  --hero-line-border: #3c8d86;
  --hero-tile: rgba(45, 212, 191, 0.12);
  --hero-tile-hi: #12302f;
  --hero-label: #d6e4e3;
  --hero-col-divider: var(--line);

  --art-ink: #5eead4;
  --art-mid: #2cc3a6;
  --art-light: #8de4c1;

  --hero-strip: var(--bg-elev);
  --hero-divider: var(--line);
  --hero-tile-ink: #5eead4;
  --hero-stat-ink: #f2f8f7;
  --hero-stat-label: #93a6a8;
}

/* ==========================================================================
   Full-screen stage. One unit (--u) equals one pixel of the 1672×941 design,
   scaled so the whole composition fits the viewport without scrolling.
   The copy column takes 35% of the width (--panel); the photo fills the other 65%.
   ========================================================================== */
.mx-page .hero-stage {
  --u: min(100cqw / 1672, 100cqh / 941);
  --panel: 36cqw;

  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 540px;
  container-type: size;
  overflow: hidden;
  background: var(--hero-panel);
}

/* ---------- Photo: fills the area right of the panel, top to bottom ---------- */
.mx-page .hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--panel);
  overflow: hidden;
}

/* Cover the whole area so the artwork always touches the top and bottom of the
   first screen; when the area is narrower than the 3:2 artwork, the outer left
   and right edges are trimmed evenly. */
.mx-page .hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ---------- Copy: centred in the 35% panel ---------- */
.mx-page .hero-inner {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vertically centred in the panel */
.mx-page .hero-copy {
  position: relative;
  width: calc(500 * var(--u));
}

.mx-page .hero-pill {
  --pill-h: max(36px, calc(48 * var(--u)));
  display: inline-flex;
  align-items: center;
  gap: calc(19 * var(--u));
  height: var(--pill-h);
  padding-right: calc(23 * var(--u));
  border-radius: 999px;
  background: var(--hero-pill-bg);
  color: var(--hero-ink);
  font-size: max(13px, calc(16 * var(--u)));
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.mx-page .hero-pill-icon {
  width: var(--pill-h);
  height: var(--pill-h);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hero-pill-icon-bg);
  color: var(--hero-pill-icon);
}

.mx-page .hero-pill-icon svg {
  width: 54%;
  height: 54%;
}

.mx-page .hero h1 {
  margin: calc(41 * var(--u)) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(64 * var(--u));
  line-height: calc(69 * var(--u));
  letter-spacing: -0.02em;
  color: var(--hero-ink);
  white-space: nowrap;
}

.mx-page .hero h1 em {
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--hero-em);
}

.mx-page .hero-rule {
  display: block;
  width: calc(106 * var(--u));
  height: max(3px, calc(4 * var(--u)));
  margin-top: calc(34 * var(--u));
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hero-green-deep) 0 58%, var(--hero-sun) 58% 100%);
}

.mx-page .hero-lead {
  max-width: calc(460 * var(--u));
  margin: calc(26 * var(--u)) 0 0;
  font-size: max(15px, calc(19 * var(--u)));
  line-height: 1.45;
  color: var(--hero-lead);
}

.mx-page .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: calc(16 * var(--u));
  margin-top: calc(33 * var(--u));
}

.mx-page .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--u));
  height: max(44px, calc(52 * var(--u)));
  padding: 0 calc(20 * var(--u));
  border-radius: 999px;
  font-size: max(12.5px, calc(17 * var(--u)));
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.mx-page .hero-btn svg {
  flex: none;
  width: max(14px, calc(19 * var(--u)));
  height: max(14px, calc(19 * var(--u)));
  transition: transform 0.2s var(--ease-out);
}

.mx-page .hero-btn:active {
  transform: translateY(1px);
}

.mx-page .hero-btn-primary {
  min-width: calc(222 * var(--u));
  background: var(--hero-green);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(1, 133, 109, 0.75);
}

.mx-page .hero-btn-primary:hover {
  background: var(--hero-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -14px rgba(1, 133, 109, 0.85);
}

.mx-page .hero-btn-primary:hover svg {
  transform: translateX(3px);
}

.mx-page .hero-btn-line {
  min-width: calc(219 * var(--u));
  background: var(--hero-line-bg);
  border: 1.5px solid var(--hero-line-border);
  color: var(--hero-ink);
}

.mx-page .hero-btn-line:hover {
  border-color: var(--hero-green);
  box-shadow: 0 10px 24px -16px rgba(15, 110, 110, 0.6);
}

/* ---------- Phase row: four columns spanning the whole panel ---------- */
.mx-page .hero-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: calc(540 * var(--u));
  margin: calc(45 * var(--u)) 0 0 calc(-20 * var(--u));
  padding: 0;
  list-style: none;
}

.mx-page .hero-phases li {
  position: relative;
}

.mx-page .hero-phases li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(30 * var(--u));
  height: calc(80 * var(--u));
  width: 1px;
  background: var(--hero-col-divider);
}

.mx-page .hero-phase {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10 * var(--u));
  padding: 0;
  border: 0;
  background: none;
  color: var(--hero-label);
  cursor: pointer;
}

.mx-page .hero-phase-tile {
  width: calc(68 * var(--u));
  height: calc(68 * var(--u));
  display: grid;
  place-items: center;
  border-radius: calc(16 * var(--u));
  background: var(--hero-tile);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.mx-page .hero-phase-tile svg {
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
}

.mx-page .hero-phase-label {
  max-width: max(84px, calc(100 * var(--u)));
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 500;
  line-height: 1.38;
  text-align: center;
  text-wrap: balance;
  transition: color 0.2s;
}

.mx-page .hero-phase:hover .hero-phase-tile {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -12px rgba(1, 133, 109, 0.55);
}

.mx-page .hero-phase:hover .hero-phase-label {
  color: var(--hero-green);
}

/* ---------- Stats strip (just below the fold) ---------- */
.mx-page .hero-stats {
  position: relative;
  background: var(--hero-strip);
  border-block: 1px solid var(--hero-divider);
  margin-bottom: clamp(48px, 6vh, 72px);
  scroll-margin-top: 16px;
}

.mx-page .hero .hero-stats-list {
  width: min(1400px, 100% - 2 * clamp(16px, 4vw, 60px));
  display: flex;
  margin-block: 0;
  padding: 0 16px 0 44px;
  list-style: none;
}

.mx-page .hero-stat {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 78px;
}

.mx-page .hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: var(--hero-divider);
}

.mx-page .hero-stat-icon {
  width: 58px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--hero-tile);
  color: var(--hero-tile-ink);
}

.mx-page .hero-stat-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mx-page .hero-stat-text strong {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 22px;
  color: var(--hero-stat-ink);
  font-variant-numeric: tabular-nums;
}

.mx-page .hero-stat-text span {
  font-size: 0.875rem;
  line-height: 20px;
  color: var(--hero-stat-label);
}

@media (max-width: 1180px) {
  .mx-page .hero-stat {
    gap: 16px;
  }
}

/* ==========================================================================
   Phones and portrait tablets: copy first, photo underneath at its own 3:2
   shape (a tall column beside the copy would crop away most of the artwork)
   ========================================================================== */
@media (max-width: 768px), (max-aspect-ratio: 1/1) {
  .mx-page .hero-stage {
    --u: min(1px, (100vw - 32px) / 509);

    height: auto;
    min-height: 0;
    container-type: normal;
    display: flex;
    flex-direction: column;
    padding-top: 88px;
  }

  .mx-page .hero-inner {
    order: 1;
    position: relative;
    inset: auto;
    display: block;
    width: min(1200px, 100% - 32px);
    margin-inline: auto;
    padding: 0;
  }

  .mx-page .hero-copy {
    width: auto;
    max-width: calc(509 * var(--u));
  }

  .mx-page .hero h1 {
    white-space: normal;
  }

  .mx-page .hero-phases {
    width: 100%;
    margin-left: 0;
  }

  .mx-page .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1536 / 1024;
    margin-top: 32px;
  }

  .mx-page .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 960px), (max-aspect-ratio: 1/1) {
  .mx-page .hero .hero-stats-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .mx-page .hero-stat {
    justify-content: flex-start;
    padding: 12px 0 12px 8px;
  }

  .mx-page .hero-stat + .hero-stat::before {
    display: none;
  }

  .mx-page .hero-stat:nth-child(n + 3) {
    border-top: 1px solid var(--hero-divider);
  }
}

@media (max-width: 520px) {
  .mx-page .hero-ctas {
    flex-direction: column;
  }

  .mx-page .hero-btn {
    width: 100%;
  }

  .mx-page .hero-stat {
    gap: 12px;
    padding-left: 0;
  }

  .mx-page .hero-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .mx-page .hero-stat-icon svg {
    width: 22px;
    height: 22px;
  }
}


/* ==========================================================================
   Program tree — "Export Program" banner and four phase columns.
   One unit (--u) equals one pixel of the 1787px-wide design, so the block keeps
   the design's proportions from laptops up to large desktops. It is also capped
   by the viewport height so the whole block fits one screen; the phase columns
   then stretch to fill whatever height is left.
   ========================================================================== */
.mx-page .tree-section {
  scroll-margin-top: 80px;
  --u: clamp(0.66px, min(100vw / 1787, 100svh / 1016), 1.12px);
  --tree-ink: #0b0d18;
  --tree-text: #232731;
  --tree-muted: #4e5360;
  --tree-line: #e2e6eb;
  --tree-card: #ffffff;
  --tree-card-border: #e2e6eb;
  --tree-badge: #eceef2;
  /* Content column, and how far the heading and cards sit inside it */
  --inner-w: min(1680px, calc(100% - 2 * clamp(16px, 3.5vw, 48px)));
  --inset: 0px;

  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(60 * var(--u)) 0 calc(60 * var(--u));
  background: linear-gradient(180deg, #f5f9fc 0, #fafcfe calc(420 * var(--u)), #fcfdfe 100%);
  color: var(--tree-ink);
  font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
}

.mx-page .tree-section,
.mx-page .tree-section * {
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

/* Per-phase palette */
.mx-page .tree-phase.phase-1 {
  --tp-bar: #eeb85c;
  --tp-bar-end: #f7e7c9;
  --tp-tint: #fdf6ea;
  --tp-icon: #a5670f;
  --tp-kicker: #a8762c;
  --tp-open-bg: #fdf9f1;
  --tp-open-border: #f1e3c4;
  --tp-badge: #f9e8c8;
  --tp-spine: #e4e6ea;
  --tp-dot: #9a9ea7;
  --tp-id: #1d2230;
}

.mx-page .tree-phase.phase-2 {
  --tp-bar: #45b59e;
  --tp-bar-end: #c3ebe0;
  --tp-tint: #eefaf6;
  --tp-icon: #127b6a;
  --tp-kicker: #1f8a70;
  --tp-open-bg: #f3fbf8;
  --tp-open-border: #cbeee3;
  --tp-badge: #d2f0e7;
  --tp-spine: #bfe7dc;
  --tp-dot: #3fb59d;
  --tp-id: #1d8a72;
}

.mx-page .tree-phase.phase-3 {
  --tp-bar: #2170e0;
  --tp-bar-end: #bcd6f7;
  --tp-tint: #eef5ff;
  --tp-icon: #1a6be4;
  --tp-kicker: #1c5fc7;
  --tp-open-bg: #f4f8fe;
  --tp-open-border: #cfe0f7;
  --tp-badge: #d6e6fb;
  --tp-spine: #c8defa;
  --tp-dot: #2a7de8;
  --tp-id: #2368d6;
}

.mx-page .tree-phase.phase-4 {
  --tp-bar: #8b5bdd;
  --tp-bar-end: #dccdf6;
  --tp-tint: #f6f2fd;
  --tp-icon: #5a21b9;
  --tp-kicker: #4b2f96;
  --tp-open-bg: #f9f6fe;
  --tp-open-border: #e2d7f7;
  --tp-badge: #e6dcfb;
  --tp-spine: #ddd3f3;
  --tp-dot: #8d5ce6;
  --tp-id: #6c3fc4;
}

/* ---------- Banner art: right edge lines up with the cards so the block is centred ----------
   Fades into the page on the left; short bottom fade keeps the ships and cranes crisp */
.mx-page .tree-banner-art {
  position: absolute;
  top: calc(24 * var(--u));
  right: calc((100% - var(--inner-w)) / 2 + var(--inset));
  width: min(calc(1100 * var(--u)), 60vw);
  height: calc(300 * var(--u));
  overflow: hidden;
  border-radius: calc(18 * var(--u));
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.7) 12%, #000 22%),
    linear-gradient(180deg, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.7) 12%, #000 22%),
    linear-gradient(180deg, #000 86%, transparent 100%);
  mask-composite: intersect;
}

/* Slightly above centre so the aircraft and the ships' hulls both stay in frame */
.mx-page .tree-banner-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 40%;
}

/* ---------- Heading ---------- */
.mx-page .tree-section .tree-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: var(--inner-w);
  margin-inline: auto;
}

.mx-page .tree-head {
  flex: none;
  padding-left: var(--inset);
  margin-bottom: calc(34 * var(--u));
}

.mx-page .tree-eyebrow {
  position: relative;
  display: inline-block;
  padding-bottom: calc(10 * var(--u));
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2b303a;
}

/* Short accent bar that runs on as a hairline */
.mx-page .tree-eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(196 * var(--u));
  height: max(2px, calc(3 * var(--u)));
  border-radius: 2px;
  background: linear-gradient(90deg, #e69e29 0 46%, #e8ebee 46% 100%);
}

.mx-page .tree-head h2 {
  margin: calc(16 * var(--u)) 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, calc(58 * var(--u)), 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0b0d18;
}

.mx-page .tree-lead {
  max-width: calc(680 * var(--u));
  margin: calc(14 * var(--u)) 0 0;
  font-size: clamp(15px, calc(17 * var(--u)), 17px);
  line-height: 1.55;
  color: #262a33;
  font-weight: 450;
}

.mx-page .tree-stats {
  display: flex;
  flex-wrap: wrap;
  margin: calc(30 * var(--u)) 0 0;
  padding: 0;
  list-style: none;
}

.mx-page .tree-stats li {
  display: flex;
  align-items: center;
  gap: calc(19 * var(--u));
  padding: 0 calc(30 * var(--u));
}

.mx-page .tree-stats li:first-child {
  padding-left: calc(6 * var(--u));
}

.mx-page .tree-stats li + li {
  border-left: 1px solid #e2e5e9;
}

.mx-page .tree-stat-icon {
  flex: none;
  width: max(26px, calc(34 * var(--u)));
  height: max(26px, calc(34 * var(--u)));
  color: #24262b;
}

.mx-page .tree-stat-text {
  display: grid;
}

.mx-page .tree-stat-text strong {
  font-family: var(--font-display);
  font-size: max(17px, calc(20 * var(--u)));
  font-weight: 700;
  line-height: 1.15;
  color: var(--tree-ink);
  font-variant-numeric: tabular-nums;
}

.mx-page .tree-stat-text span {
  font-size: max(11.5px, calc(12.5 * var(--u)));
  line-height: 1.3;
  color: #5a5d63;
}

/* ---------- Phase columns ---------- */
/* Takes the rest of the screen; the columns stretch down to the section's bottom edge.
   Inset to line up with the heading, with wide gutters so the cards stay narrow and airy */
.mx-page .tree-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(24 * var(--u));
  padding-inline: var(--inset);
}

/* Columns stretch to equal height, as in the design */
.mx-page .tree-phase {
  position: relative;
  overflow: hidden;
  padding-bottom: calc(22 * var(--u));
  border: 1px solid var(--tree-card-border);
  border-radius: calc(14 * var(--u));
  background: var(--tree-card);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 40px -28px rgba(16, 24, 40, 0.24);
}

/* Accent bar along the top edge, fading out towards the right */
.mx-page .tree-phase::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: max(2px, calc(3.5 * var(--u)));
  background: linear-gradient(90deg, var(--tp-bar) 0, var(--tp-bar) 62%, var(--tp-bar-end) 100%);
}

/* Photo across the top of the card; the copy sits below it on plain white, never over the art */
.mx-page .tree-phase-head {
  position: relative;
  padding: calc(18 * var(--u)) calc(17 * var(--u)) 0;
  background: var(--tree-card);
}

.mx-page .tree-phase-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.1;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: calc(10 * var(--u));
  background: var(--tp-tint);
}

/* Keeps the tip of the growth arrow in frame */
.mx-page .phase-2 .tree-phase-art {
  object-position: 50% 30%;
}

.mx-page .tree-phase-copy {
  min-width: 0;
  padding-top: calc(20 * var(--u));
}

.mx-page .tree-phase-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tp-kicker);
}

.mx-page .tree-phase-copy h3 {
  margin: calc(8 * var(--u)) 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, calc(21 * var(--u)), 22px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #0b0d18;
}

.mx-page .tree-phase-copy p {
  margin: calc(8 * var(--u)) 0 0;
  font-size: clamp(12px, calc(13 * var(--u)), 13px);
  line-height: 1.55;
  color: #404552;
}

.mx-page .tree-phase-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  margin: 0;
  padding: calc(18 * var(--u)) 0 0;
  font-size: clamp(13px, calc(14 * var(--u)), 14px);
  line-height: 1.4;
  color: #232731;
}

.mx-page .tree-phase-meta strong {
  font-weight: 700;
  color: var(--tree-ink);
}

.mx-page .tree-phase-sep {
  width: 1px;
  height: calc(15 * var(--u));
  background: #d3d6dc;
}

/* ---------- Module accordions ---------- */
/* minmax(0, 1fr) lets long module titles truncate instead of pushing rows past the card edge */
.mx-page .tree-modules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(15 * var(--u));
  padding: calc(25 * var(--u)) calc(17 * var(--u)) 0;
}

.mx-page .tree-module {
  scroll-margin-top: 16px;
}

.mx-page .tree-module-head {
  width: 100%;
  min-height: calc(49 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  padding: calc(8 * var(--u)) calc(15 * var(--u)) calc(8 * var(--u)) calc(13 * var(--u));
  border: 1px solid var(--tree-line);
  border-radius: calc(11 * var(--u));
  background: var(--tree-card);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.mx-page .tree-module-head:hover {
  border-color: var(--tp-open-border);
  box-shadow: 0 6px 16px -12px rgba(16, 24, 40, 0.3);
}

.mx-page .tree-module.is-open .tree-module-head {
  border-color: var(--tp-open-border);
  background: var(--tp-open-bg);
}

.mx-page .tree-module-num {
  flex: none;
  width: calc(32 * var(--u));
  height: calc(32 * var(--u));
  margin-right: calc(6 * var(--u));
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tree-badge);
  font-size: clamp(12px, calc(13 * var(--u)), 13px);
  font-weight: 700;
  color: #11141d;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s;
}

.mx-page .tree-module.is-open .tree-module-num {
  background: var(--tp-badge);
}

/* Wraps onto a second line in the narrow columns rather than truncating */
.mx-page .tree-module-title {
  flex: 1;
  min-width: 0;
  font-size: clamp(13px, calc(14 * var(--u)), 14px);
  font-weight: 600;
  line-height: 1.35;
  color: #0e111a;
}

.mx-page .tree-module-count {
  flex: none;
  font-size: clamp(11px, calc(12 * var(--u)), 12px);
  white-space: nowrap;
  color: #505664;
}

.mx-page .tree-module-chev {
  flex: none;
  width: max(15px, calc(17 * var(--u)));
  height: max(15px, calc(17 * var(--u)));
  color: #1f232b;
  transition: transform 0.25s var(--ease-out);
}

.mx-page .tree-module.is-open .tree-module-chev {
  transform: rotate(180deg);
}

/* ---------- Topics: dots on a vertical spine ---------- */
.mx-page .tree-module-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}

.mx-page .tree-module.is-open .tree-module-body {
  grid-template-rows: 1fr;
}

.mx-page .tree-module-clip {
  min-height: 0;
  overflow: hidden;
}

.mx-page .tree-topics {
  --spine: calc(40 * var(--u));
  --dot: max(4px, calc(5 * var(--u)));

  position: relative;
  margin: 0;
  padding: calc(8 * var(--u)) 0 calc(6 * var(--u));
  list-style: none;
}

.mx-page .tree-topics::before {
  content: '';
  position: absolute;
  left: var(--spine);
  top: 0;
  bottom: calc(10 * var(--u));
  width: 1px;
  background: var(--tp-spine);
}

.mx-page .tree-topic-row {
  position: relative;
  width: 100%;
  min-height: calc(24.5 * var(--u));
  display: flex;
  align-items: center;
  padding: 0 calc(8 * var(--u)) 0 calc(65 * var(--u));
  border-radius: 6px;
  transition: background-color 0.15s;
}

.mx-page .tree-topic-row::before {
  content: '';
  position: absolute;
  left: calc(var(--spine) + 0.5px - var(--dot) / 2);
  top: 50%;
  width: var(--dot);
  height: var(--dot);
  margin-top: calc(var(--dot) / -2);
  border-radius: 50%;
  background: var(--tp-dot);
}

.mx-page .tree-topic-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.mx-page .tree-topic-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  padding: calc(3 * var(--u)) 0;
  color: inherit;
}

.mx-page .tree-topic-id {
  flex: none;
  width: calc(48 * var(--u));
  font-size: clamp(12px, calc(13 * var(--u)), 13px);
  font-weight: 600;
  color: var(--tp-id);
  font-variant-numeric: tabular-nums;
}

.mx-page .tree-topic-name {
  min-width: 0;
  font-size: clamp(13px, calc(14 * var(--u)), 14px);
  line-height: 1.35;
  color: #1a1e26;
  transition: color 0.15s;
}

.mx-page .tree-topic,
.mx-page .tree-topic * {
  text-decoration: none !important;
}

.mx-page .tree-topic-btn:hover .tree-topic-name {
  color: var(--tp-icon);
  text-decoration: none !important;
}

.mx-page .tree-topic.is-done .tree-topic-name {
  text-decoration: none !important;
  color: #2b2f38;
}

.mx-page .tree-topic-check-btn,
.mx-page .tree-topic-check-wrap {
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
}

.mx-page .tree-topic-check-btn:hover,
.mx-page .tree-topic-btn:hover .tree-topic-check-wrap {
  background: rgba(0, 0, 0, 0.05);
}

.mx-page .tree-topic-check {
  width: 14px;
  height: 14px;
  color: var(--tp-dot);
}

.mx-page .tree-topic-check-empty {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px dashed var(--tp-dot);
  opacity: 0;
  transition: opacity 0.15s;
}

.mx-page .tree-topic-row:hover .tree-topic-check-empty,
.mx-page .tree-topic-btn:hover .tree-topic-check-empty {
  opacity: 0.5;
}

/* ---------- Responsive ---------- */
/* Short laptop screens (1280–1536 wide, ~650–800 tall): trim the spacing, keep the intro to two
   lines and use slightly wider photos so the whole block still fits one screen */
@media (min-width: 1181px) and (max-height: 820px) {
  .mx-page .tree-section {
    padding: calc(44 * var(--u)) 0 calc(34 * var(--u));
  }

  .mx-page .tree-head {
    margin-bottom: calc(32 * var(--u));
  }

  .mx-page .tree-head h2 {
    margin-top: calc(10 * var(--u));
  }

  .mx-page .tree-lead {
    max-width: max(calc(650 * var(--u)), 500px);
    font-size: 14px;
  }

  .mx-page .tree-stats {
    margin-top: calc(20 * var(--u));
  }

  .mx-page .tree-banner-art {
    top: calc(18 * var(--u));
    height: calc(262 * var(--u));
  }

  .mx-page .tree-phase {
    padding-bottom: calc(16 * var(--u));
  }

  .mx-page .tree-phase-art {
    aspect-ratio: 2.6;
  }

  .mx-page .tree-phase-copy {
    padding-top: calc(14 * var(--u));
  }

  .mx-page .tree-phase-meta {
    padding-top: calc(12 * var(--u));
  }

  .mx-page .tree-modules {
    gap: calc(10 * var(--u));
    padding-top: calc(16 * var(--u));
  }
}

@media (max-width: 1180px) {
  .mx-page .tree-section {
    --u: 1px;
    --inner-w: min(100% - 2 * clamp(16px, 3.5vw, 32px), 1180px);
    --inset: 0px;
  }

  .mx-page .tree-lead br {
    display: none;
  }

  /* Keep the banner art clear of the intro text on narrower screens */
  .mx-page .tree-banner-art {
    width: 45vw;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, #000 74%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, #000 74%, transparent 100%);
  }

  .mx-page .tree-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .mx-page .tree-section {
    --u: 0.92px;
    padding-top: 0;
  }

  .mx-page .tree-banner-art {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 150px;
    margin-bottom: -28px;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }

  .mx-page .tree-banner-art img {
    object-position: 72% center;
  }

  .mx-page .tree-head h2 {
    font-size: 42px;
  }

  .mx-page .tree-stats {
    flex-wrap: nowrap;
  }

  .mx-page .tree-stats li {
    gap: 10px;
    padding: 0 12px;
  }

  .mx-page .tree-stats li:first-child {
    padding-left: 0;
  }

  .mx-page .tree-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mx-page .tree-phase-copy h3 {
    white-space: normal;
  }
}

/* ---------- Dark theme ---------- */
.mx-page[data-theme='dark'] .tree-section {
  --tree-ink: #eef6f5;
  --tree-text: #a9b9ba;
  --tree-muted: #93a6a8;
  --tree-line: #1f3a40;
  --tree-card: #0f2228;
  --tree-card-border: #1b3339;
  --tree-badge: #18323a;
  background: var(--bg);
}

.mx-page[data-theme='dark'] .tree-eyebrow,
.mx-page[data-theme='dark'] .tree-lead,
.mx-page[data-theme='dark'] .tree-phase-meta,
.mx-page[data-theme='dark'] .tree-topic-name {
  color: #c7d6d6;
}

.mx-page[data-theme='dark'] .tree-stat-icon,
.mx-page[data-theme='dark'] .tree-module-num,
.mx-page[data-theme='dark'] .tree-module-chev {
  color: #eef6f5;
}

.mx-page[data-theme='dark'] .tree-phase {
  --tp-tint: color-mix(in srgb, var(--tp-bar) 14%, #0f2228);
  --tp-icon: color-mix(in srgb, var(--tp-bar) 70%, #ffffff);
  --tp-kicker: color-mix(in srgb, var(--tp-bar) 75%, #ffffff);
  --tp-id: color-mix(in srgb, var(--tp-bar) 75%, #ffffff);
  --tp-open-bg: color-mix(in srgb, var(--tp-bar) 10%, #0f2228);
  --tp-open-border: color-mix(in srgb, var(--tp-bar) 35%, #0f2228);
  --tp-badge: color-mix(in srgb, var(--tp-bar) 28%, #0f2228);
  --tp-spine: color-mix(in srgb, var(--tp-bar) 35%, #0f2228);
}

/* ==========================================================================
   Directional scroll-reveal entrance animations
   Content flies in from different directions and aligns in position
   ========================================================================== */
.mx-page .tree-banner-art[data-reveal] {
  opacity: 0;
  transform: translateY(-50px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.mx-page .tree-banner-art[data-reveal].is-visible {
  opacity: 1;
  transform: none !important;
  will-change: auto !important;
}

.mx-page .tree-head[data-reveal] {
  opacity: 0;
  transform: translateX(-70px) translateY(-20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 80ms;
}
.mx-page .tree-head[data-reveal].is-visible {
  opacity: 1;
  transform: none !important;
  will-change: auto !important;
}

/* Phase 1: flies in from the left */
.mx-page .tree-phase[data-reveal='phase-1'] {
  opacity: 0;
  transform: translateX(-100px) translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 120ms;
}
.mx-page .tree-phase[data-reveal='phase-1'].is-visible {
  opacity: 1;
  transform: none !important;
  will-change: auto !important;
}

/* Phase 2: flies in from bottom-left */
.mx-page .tree-phase[data-reveal='phase-2'] {
  opacity: 0;
  transform: translateY(90px) translateX(-35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 200ms;
}
.mx-page .tree-phase[data-reveal='phase-2'].is-visible {
  opacity: 1;
  transform: none !important;
  will-change: auto !important;
}

/* Phase 3: flies in from bottom-right */
.mx-page .tree-phase[data-reveal='phase-3'] {
  opacity: 0;
  transform: translateY(90px) translateX(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 280ms;
}
.mx-page .tree-phase[data-reveal='phase-3'].is-visible {
  opacity: 1;
  transform: none !important;
  will-change: auto !important;
}

/* Phase 4: flies in from the right */
.mx-page .tree-phase[data-reveal='phase-4'] {
  opacity: 0;
  transform: translateX(100px) translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 360ms;
}
.mx-page .tree-phase[data-reveal='phase-4'].is-visible {
  opacity: 1;
  transform: none !important;
  will-change: auto !important;
}

/* Once entrance animation has completed, completely remove transition so elements
   render in native root pixel grid without any compositor layer overhead */
.mx-page .tree-banner-art[data-reveal].is-settled,
.mx-page .tree-head[data-reveal].is-settled,
.mx-page .tree-phase[data-reveal].is-settled {
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .mx-page .tree-banner-art[data-reveal],
.mx-page .tree-head[data-reveal],
.mx-page .tree-phase[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   Closing "Ready to make your first shipment?" card.
   One unit (--k) equals one pixel of the 1840px-wide reference card, so the copy,
   illustration and ERS card keep the reference proportions at any width.
   ========================================================================== */
.mx-page .cta-section {
  --cta-ink: #07142b;
  --cta-text: #5f6573;
  --cta-teal: #0b7f6c;
  --cta-eyebrow: #0e8a78;
  --cta-card: #ffffff;
  --cta-pill: #ecf4f8;
  --cta-pill-ink: #555e79;
  --cta-track: #e9f1f6;

  padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 9vw, 120px);
  background: var(--bg);
}

.mx-page[data-theme='dark'] .cta-section {
  --cta-ink: var(--ink);
  --cta-text: var(--muted);
  --cta-teal: var(--teal-ink);
  --cta-eyebrow: var(--teal-ink);
  --cta-card: var(--bg-elev);
  --cta-pill: rgba(94, 234, 212, 0.08);
  --cta-pill-ink: var(--muted);
  --cta-track: var(--line);
}

.mx-page .cta-section .cta-container {
  width: min(1400px, 100% - 2 * clamp(16px, 4vw, 60px));
  container-type: inline-size;
}

.mx-page .cta-card {
  --k: calc(100cqw / 1840);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: calc(600 * var(--k)) minmax(0, 1fr) calc(640 * var(--k));
  align-items: center;
  min-height: calc(566 * var(--k));
  padding: calc(60 * var(--k)) calc(40 * var(--k)) calc(54 * var(--k)) calc(66 * var(--k));
  border-radius: max(20px, calc(34 * var(--k)));
  background: var(--cta-card);
  color: var(--cta-ink);
  box-shadow: 0 2px 6px rgba(15, 60, 60, 0.04), 0 30px 70px -40px rgba(15, 80, 80, 0.3);
}

/* Soft teal bands in the top-right and bottom-right corners */
.mx-page .cta-card::before,
.mx-page .cta-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.mx-page .cta-card::before {
  top: 0;
  left: calc(1340 * var(--k));
  width: calc(500 * var(--k));
  height: calc(200 * var(--k));
  background: linear-gradient(115deg, rgba(190, 234, 230, 0.95) 0%, rgba(222, 246, 243, 0.8) 55%, rgba(240, 252, 250, 0) 100%);
  clip-path: polygon(38% 0, 96% 0, 60% 100%, 2% 100%);
}

.mx-page .cta-card::after {
  right: 0;
  bottom: 0;
  width: calc(250 * var(--k));
  height: calc(110 * var(--k));
  background: linear-gradient(135deg, rgba(214, 243, 240, 0.9), rgba(190, 236, 231, 0.95));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.mx-page[data-theme='dark'] .cta-card::before,
.mx-page[data-theme='dark'] .cta-card::after {
  opacity: 0.12;
}

/* ---------- Copy ---------- */
.mx-page .cta-copy {
  position: relative;
  z-index: 3;
}

.mx-page .cta-eyebrow {
  display: block;
  font-size: max(11px, calc(15 * var(--k)));
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cta-eyebrow);
}

.mx-page .cta-copy h2 {
  margin: calc(22 * var(--k)) 0 0;
  font-family: var(--font-display);
  font-size: max(30px, calc(64 * var(--k)));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--cta-ink);
}

.mx-page .cta-copy h2 em {
  font-style: italic;
  color: var(--cta-teal);
}

.mx-page .cta-lead {
  max-width: calc(560 * var(--k));
  margin: calc(16 * var(--k)) 0 0;
  font-size: max(15px, calc(22 * var(--k)));
  line-height: 1.5;
  color: var(--cta-text);
}

.mx-page .cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(16 * var(--k)) calc(24 * var(--k));
  margin-top: calc(38 * var(--k));
}

.mx-page .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(18 * var(--k));
  min-height: max(46px, calc(70 * var(--k)));
  padding: 0 max(22px, calc(38 * var(--k)));
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #038a7a 0%, #02756a 100%);
  color: #ffffff;
  font-size: max(15px, calc(22 * var(--k)));
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 calc(16 * var(--k)) calc(30 * var(--k)) calc(-14 * var(--k)) rgba(2, 121, 108, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.mx-page .cta-btn-arrow {
  flex: none;
  width: max(18px, calc(24 * var(--k)));
  height: max(18px, calc(24 * var(--k)));
  transition: transform 0.2s var(--ease-out);
}

.mx-page .cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 calc(20 * var(--k)) calc(34 * var(--k)) calc(-14 * var(--k)) rgba(2, 121, 108, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mx-page .cta-btn:hover .cta-btn-arrow {
  transform: translateX(3px);
}

.mx-page .cta-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cta-text);
  cursor: pointer;
}

.mx-page .cta-reset:hover {
  color: var(--cta-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mx-page .cta-done {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-ink);
  font-weight: 700;
}

/* ---------- Illustration ---------- */
.mx-page .cta-art {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: start;
  width: calc(710 * var(--k));
  max-width: none;
  height: auto;
  margin: 0 0 calc(-54 * var(--k)) calc(-201 * var(--k));
}

/* ==========================================================================
   ERS Assessment Card (Replaces old Progress Panel)
   ========================================================================== */
.mx-page .cta-ers-card {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
  user-select: none;
}

.mx-page[data-theme='dark'] .cta-ers-card {
  background: #0f2228;
  border-color: #1b3339;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}

.mx-page .cta-ers-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.04);
}

/* 1. Header */
.mx-page .cta-ers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mx-page .cta-ers-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mx-page .cta-ers-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #10b981;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

.mx-page .cta-ers-brand-text {
  display: flex;
  flex-direction: column;
}

.mx-page .cta-ers-title {
  margin: 0;
  font-family: var(--font-body), system-ui, sans-serif !important;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.mx-page[data-theme='dark'] .cta-ers-title {
  color: #f1f5f9;
}

.mx-page .cta-ers-subtitle {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

.mx-page[data-theme='dark'] .cta-ers-subtitle {
  color: #94a3b8;
}

.mx-page .cta-ers-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e6f9f3;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mx-page[data-theme='dark'] .cta-ers-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.mx-page .cta-ers-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* 2. Body */
.mx-page .cta-ers-body {
  display: grid;
  grid-template-columns: 140px 1px 1fr;
  align-items: center;
  gap: 18px;
  padding: 4px 0;
}

/* Left Gauge */
.mx-page .cta-ers-gauge-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mx-page .cta-ers-gauge-wrap {
  position: relative;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
}

.mx-page .cta-ers-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mx-page .cta-ers-gauge-track {
  fill: none;
  stroke: #e8eff5;
  stroke-width: 9;
}

.mx-page[data-theme='dark'] .cta-ers-gauge-track {
  stroke: #1b3339;
}

.mx-page .cta-ers-gauge-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.mx-page .cta-ers-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.mx-page .cta-ers-sprout-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e6f9f3;
  display: grid;
  place-items: center;
}

.mx-page[data-theme='dark'] .cta-ers-sprout-badge {
  background: rgba(16, 185, 129, 0.16);
}

.mx-page .cta-ers-gauge-status {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  white-space: nowrap;
}

.mx-page[data-theme='dark'] .cta-ers-gauge-status {
  color: #f1f5f9;
}

/* Divider */
.mx-page .cta-ers-divider {
  width: 1px;
  height: 100%;
  min-height: 124px;
  background: #eef2f6;
}

.mx-page[data-theme='dark'] .cta-ers-divider {
  background: #1b3339;
}

/* Right Column Info */
.mx-page .cta-ers-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mx-page .cta-ers-status-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mx-page .cta-ers-status-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mx-page .cta-ers-pulse-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e6f9f3;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mx-page[data-theme='dark'] .cta-ers-pulse-icon {
  background: rgba(16, 185, 129, 0.16);
}

.mx-page .cta-ers-status-labels {
  display: flex;
  flex-direction: column;
}

.mx-page .cta-ers-status-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  line-height: 1.2;
}

.mx-page .cta-ers-status-value {
  font-size: 18px;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.25;
}

.mx-page[data-theme='dark'] .cta-ers-status-value {
  color: #60a5fa;
}

.mx-page .cta-ers-status-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e8eff5;
  overflow: hidden;
  margin-top: 2px;
}

.mx-page[data-theme='dark'] .cta-ers-status-bar {
  background: #1b3339;
}

.mx-page .cta-ers-status-fill {
  height: 100%;
  border-radius: inherit;
  background: #10b981;
  transition: width 0.6s ease;
}

.mx-page .cta-ers-status-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.3;
}

.mx-page[data-theme='dark'] .cta-ers-status-desc {
  color: #94a3b8;
}

/* Begin Row */
.mx-page .cta-ers-begin-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mx-page .cta-ers-cone-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.mx-page .cta-ers-cone-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fef3c7;
  display: grid;
  place-items: center;
}

.mx-page .cta-ers-cone-svg {
  width: 18px;
  height: 18px;
}

.mx-page .cta-ers-cone-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
  text-align: center;
}

.mx-page[data-theme='dark'] .cta-ers-cone-label {
  color: #94a3b8;
}

.mx-page .cta-ers-begin-text {
  display: flex;
  flex-direction: column;
}

.mx-page .cta-ers-begin-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.mx-page[data-theme='dark'] .cta-ers-begin-title {
  color: #f1f5f9;
}

.mx-page .cta-ers-begin-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.25;
  margin-top: 2px;
}

.mx-page[data-theme='dark'] .cta-ers-begin-desc {
  color: #94a3b8;
}

/* 3. Bottom Button */
.mx-page .cta-ers-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mx-page .cta-ers-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -6px rgba(79, 70, 229, 0.6);
}

.mx-page .cta-ers-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.mx-page .cta-ers-doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mx-page .cta-ers-btn-text {
  display: flex;
  flex-direction: column;
}

.mx-page .cta-ers-btn-text strong {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.mx-page .cta-ers-btn-text span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.25;
  margin-top: 2px;
}

.mx-page .cta-ers-arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.mx-page .cta-ers-action-btn:hover .cta-ers-arrow-circle {
  transform: translateX(2px);
}

/* ---------- Responsive container queries ---------- */
@container (max-width: 1100px) {
  .mx-page .cta-card {
    --k: 0.62px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding: 44px 36px 36px;
  }

  .mx-page .cta-card::after {
    display: none;
  }

  .mx-page .cta-lead {
    max-width: 52ch;
  }

  .mx-page .cta-art {
    align-self: auto;
    justify-self: center;
    width: min(100%, 520px);
    margin: 0;
  }

  .mx-page .cta-ers-card {
    align-self: auto;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }
}

@container (max-width: 560px) {
  .mx-page .cta-card {
    gap: 24px;
    padding: 32px 20px 22px;
  }

  .mx-page .cta-btn {
    white-space: normal;
    text-align: left;
  }

  .mx-page .cta-ers-card {
    padding: 20px 16px;
  }

  .mx-page .cta-ers-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mx-page .cta-ers-divider {
    display: none;
  }

  .mx-page .cta-ers-gauge-col {
    padding-bottom: 8px;
  }
}


.mx-page .to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-grad);
  color: var(--teal-deep);
  box-shadow: 0 12px 26px -12px rgba(20, 170, 150, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
}

.mx-page .to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mx-page .to-top:hover {
  transform: translateY(-2px);
}


/* Sized by --ring-size so a parent can scale the ring with CSS */
.mx-page .ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--ring-size);
  height: var(--ring-size);
}

.mx-page .ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mx-page .ring-track {
  fill: none;
  stroke: var(--accent-track, var(--mint));
}

.mx-page .ring-fill {
  fill: none;
  stroke: var(--accent, var(--teal));
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s var(--ease-out), stroke 0.3s;
}

/* A zero-length arc would still draw its round cap as a dot */
.mx-page .ring.is-empty .ring-fill {
  opacity: 0;
}

.mx-page .ring.is-complete .ring-fill {
  stroke: var(--success);
}

.mx-page .ring-label {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.mx-page .ring.is-complete .ring-label {
  color: var(--success);
}


.mx-page .section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.mx-page .section-head h2 {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.mx-page .section-head p {
  margin: 0;
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
}


/* ---------- On the FEED WORLD site (not in the design) ---------- */
/* The site sets its own font on every element (global.css "*"): the page uses the design's */
.mx-page * {
  font-family: inherit;
}
/* The hero starts below the site's fixed navbar */
.mx-page .hero {
  padding-top: 88px;
}
@media (max-width: 768px) {
  .mx-page .hero {
    padding-top: 80px;
  }
}
/* Lessons a learner has completed */
.mx-page .tree-topic.is-done .tree-topic-check-empty {
  background: #16a34a;
  border-color: #16a34a;
}
.mx-page #tree,
.mx-page .tree-module {
  scroll-margin-top: 90px;
}
