:root {
  --mrai-shell-page: 1280px;
  --mrai-shell-ink: #171717;
  --mrai-shell-muted: #75757b;
  --mrai-shell-line: #dedee4;
  --mrai-shell-orange: #ff7417;
}

/* Prevent the page's legacy header from flashing before the shared shell mounts. */
header.site-header:not(.mrai-shell-header) {
  visibility: hidden !important;
}

.mrai-shell-header,
.mrai-shell-header *,
.mrai-shell-footer,
.mrai-shell-footer * {
  box-sizing: border-box;
}

.mrai-shell-header a,
.mrai-shell-footer a {
  text-decoration: none;
}

.mrai-shell-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: 64px;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - var(--mrai-shell-page)) / 2));
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  color: var(--mrai-shell-ink);
  border: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mrai-shell-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  color: var(--mrai-shell-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.mrai-shell-brand > img:first-child {
  width: 28px;
  height: auto;
  margin-right: 9px;
  display: block;
}

.mrai-shell-brand .mrai-shell-wordmark {
  width: 50.4px;
  height: 14px;
  margin: 0;
  display: block;
}

.mrai-shell-desktop-nav {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.2vw, 46px);
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Arial, Helvetica, sans-serif;
  transform: translateX(-88px);
}

.mrai-shell-desktop-nav > a,
.mrai-shell-products-trigger {
  position: relative;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2a2a2a;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -.02em;
  cursor: pointer;
}

.mrai-shell-products-trigger {
  padding-right: 1px;
}

.mrai-shell-desktop-nav > a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -7px;
  left: 0;
  height: 2px;
  display: block;
  background: var(--mrai-shell-orange);
  transition: right .18s cubic-bezier(.23, 1, .32, 1);
}

.mrai-shell-desktop-nav > a:hover::after,
.mrai-shell-desktop-nav > a:focus-visible::after {
  right: 0;
}

.mrai-shell-products-trigger svg {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: #555;
  stroke-width: 1.6;
  transition: transform .16s ease;
}

.mrai-shell-products.is-open .mrai-shell-products-trigger svg {
  transform: rotate(180deg);
}

.mrai-shell-products {
  position: relative;
}

.mrai-shell-products-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 342px;
  padding: 10px;
  display: grid;
  gap: 2px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px) scale(.98);
  transform-origin: top center;
  transition: opacity .18s cubic-bezier(.23, 1, .32, 1), transform .18s cubic-bezier(.23, 1, .32, 1), visibility .18s;
}

.mrai-shell-products:hover .mrai-shell-products-dropdown,
.mrai-shell-products:focus-within .mrai-shell-products-dropdown,
.mrai-shell-products.is-open .mrai-shell-products-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.mrai-shell-product-link {
  min-height: 62px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--mrai-shell-ink);
  border-radius: 12px;
  transition: background-color .16s ease;
}

.mrai-shell-product-link:hover,
.mrai-shell-product-link.is-active {
  background: #f4f4f4;
}

.mrai-shell-product-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #3e3e42;
  border-radius: 12px;
  background: #f5f5f5;
}

.mrai-shell-product-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
}

.mrai-shell-product-copy strong,
.mrai-shell-product-copy small {
  display: block;
}

.mrai-shell-product-copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.mrai-shell-product-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #79797e;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mrai-shell-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Arial, Helvetica, sans-serif;
}

.mrai-shell-language {
  position: relative;
}

.mrai-shell-language-trigger {
  height: 42px;
  min-height: 42px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mrai-shell-ink);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  cursor: pointer;
}

.mrai-shell-language-trigger .mrai-shell-globe {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}

.mrai-shell-language-trigger .mrai-shell-language-chevron {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.mrai-shell-language-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  width: 180px;
  padding: 8px;
  display: grid;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.mrai-shell-language.is-open .mrai-shell-language-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mrai-shell-language-option {
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--mrai-shell-ink);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.mrai-shell-language-option:hover {
  background: #f4f4f4;
}

.mrai-shell-language-option svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--mrai-shell-orange);
  stroke-width: 1.8;
  opacity: 0;
}

.mrai-shell-language-option[aria-checked="true"] svg {
  opacity: 1;
}

.mrai-shell-action {
  min-width: 88px;
  height: 38px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mrai-shell-ink);
  border: 1px solid rgba(23, 23, 23, .18);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}

.mrai-shell-action:hover {
  border-color: rgba(23, 23, 23, .38);
}

.mrai-shell-action.is-primary {
  color: #fff;
  border-color: var(--mrai-shell-ink);
  background: var(--mrai-shell-ink);
}

.mrai-shell-action:active {
  transform: scale(.97);
}

.mrai-shell-mobile-language,
.mrai-shell-menu-trigger,
.mrai-shell-mobile-nav {
  display: none;
}

.mrai-shell-header :focus-visible,
.mrai-shell-footer :focus-visible {
  outline: 3px solid rgba(255, 116, 23, .3);
  outline-offset: 3px;
}

.mrai-shell-footer {
  position: relative;
  z-index: 30;
  isolation: isolate;
  width: 100%;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  border: 0;
  background: #0a0a0a;
  font-family: Inter, Arial, sans-serif;
}

.mrai-shell-footer-main {
  position: relative;
  z-index: 1;
  width: min(100%, var(--mrai-shell-page));
  min-height: 430px;
  margin: 0 auto;
  padding: 144px 0 180px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(600px, 1fr);
  align-items: start;
  gap: 40px;
}

.mrai-shell-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mrai-shell-footer .mrai-shell-brand {
  color: #fff;
  font-size: 24px;
}

.mrai-shell-footer .mrai-shell-brand > img:first-child {
  width: 32px;
  margin-right: 10px;
}

.mrai-shell-footer .mrai-shell-wordmark {
  width: 57.6px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.mrai-shell-footer-slogan {
  margin: 38px 0 0;
  color: #fff;
  /* Match the homepage's rendered global Inter font override. */
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.mrai-shell-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 54px;
  transform: translateX(-40px);
}

.mrai-shell-footer-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.mrai-shell-footer-column h2 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .42);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.mrai-shell-footer-column a {
  width: max-content;
  max-width: 100%;
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
  transition: color .18s ease, transform .18s ease;
}

.mrai-shell-footer-column a:hover {
  color: var(--mrai-shell-orange);
  transform: translateX(2px);
}

.mrai-shell-footer-mascot {
  position: absolute;
  z-index: 0;
  right: clamp(48px, 5vw, 96px);
  bottom: -36px;
  width: clamp(170px, 9.5vw, 190px);
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, .42)) drop-shadow(0 0 34px rgba(48, 139, 255, .16));
}

@media (max-width: 980px) {
  .mrai-shell-footer-slogan {
    margin-top: 24px;
  }
  .mrai-shell-footer-main {
    width: min(calc(100% - 64px), 760px);
    padding-bottom: 360px;
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .mrai-shell-footer-links {
    gap: 40px;
    transform: none;
  }
  .mrai-shell-footer-mascot {
    right: auto;
    bottom: 12px;
    left: 50%;
    width: 210px;
    transform: translateX(-50%);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .mrai-shell-header {
    grid-template-columns: 215px minmax(min-content, 1fr) auto;
  }
  .mrai-shell-desktop-nav {
    min-width: min-content;
    width: min-content;
  }
  .mrai-shell-actions {
    min-width: min-content;
    width: auto;
  }
}

@media (max-width: 1180px) {
  html:has(.mrai-shell-header.is-open),
  html:has(.mrai-shell-header.is-open) body {
    overflow: hidden;
  }

  .mrai-shell-header {
    height: 80px;
    min-height: 80px;
    padding: 0 10px 0 16px;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 28px;
    background: #fff;
  }

  .mrai-shell-desktop-nav,
  .mrai-shell-actions {
    display: none;
  }

  .mrai-shell-mobile-language,
  .mrai-shell-menu-trigger {
    position: relative;
    z-index: 1002;
    display: block;
  }

  /* Keep the brand visible above the full-screen mobile navigation. */
  .mrai-shell-header.is-open .mrai-shell-brand {
    position: relative;
    z-index: 1002;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mrai-shell-header.is-open .mrai-shell-brand > img:first-child,
  .mrai-shell-header.is-open .mrai-shell-brand .mrai-shell-wordmark {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .mrai-shell-mobile-language {
    justify-self: end;
    margin-right: -8px;
  }

  .mrai-shell-mobile-language .mrai-shell-language-trigger {
    height: 44px;
    min-height: 44px;
    padding: 0 2px;
  }

  .mrai-shell-menu-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mrai-shell-menu-trigger span,
  .mrai-shell-menu-trigger::before,
  .mrai-shell-menu-trigger::after {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 1.5px;
    display: block;
    background: var(--mrai-shell-ink);
    content: "";
    transition: transform .18s cubic-bezier(.23, 1, .32, 1), opacity .15s ease;
  }

  .mrai-shell-menu-trigger::before { top: 14px; }
  .mrai-shell-menu-trigger span { top: 21px; }
  .mrai-shell-menu-trigger::after { top: 28px; }

  .mrai-shell-header.is-open .mrai-shell-menu-trigger::before {
    transform: translateY(7px) rotate(45deg);
  }
  .mrai-shell-header.is-open .mrai-shell-menu-trigger span { opacity: 0; }
  .mrai-shell-header.is-open .mrai-shell-menu-trigger::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mrai-shell-mobile-nav {
    position: fixed;
    z-index: 1001;
    inset: 0;
    width: auto;
    height: 100dvh;
    min-height: 100svh;
    padding: 112px 24px 28px;
    display: flex;
    flex-direction: column;
    color: var(--mrai-shell-ink);
    background: #fff;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s cubic-bezier(.23, 1, .32, 1), transform .2s cubic-bezier(.23, 1, .32, 1), visibility .2s;
  }

  .mrai-shell-header.is-open .mrai-shell-mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mrai-shell-mobile-nav > a,
  .mrai-shell-mobile-products {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--mrai-shell-line);
  }

  .mrai-shell-mobile-nav > a {
    min-height: 54px;
    display: flex;
    align-items: center;
    color: var(--mrai-shell-ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
  }

  .mrai-shell-mobile-products-toggle {
    width: 100%;
    min-height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--mrai-shell-ink);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
  }

  .mrai-shell-mobile-products-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    transition: transform .2s ease;
  }

  .mrai-shell-mobile-products.is-expanded .mrai-shell-mobile-products-toggle svg {
    transform: rotate(180deg);
  }

  .mrai-shell-mobile-products-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
  }

  .mrai-shell-mobile-products.is-expanded .mrai-shell-mobile-products-list {
    max-height: 620px;
    padding: 2px 0 14px;
    opacity: 1;
  }

  .mrai-shell-mobile-products-list .mrai-shell-product-link {
    min-height: 54px;
    padding: 8px 0;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    border-radius: 0;
    background: transparent;
  }

  .mrai-shell-mobile-products-list .mrai-shell-product-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .mrai-shell-mobile-products-list .mrai-shell-product-icon svg {
    width: 17px;
    height: 17px;
  }

  .mrai-shell-mobile-products-list .mrai-shell-product-copy strong {
    font-size: 15px;
    font-weight: 400;
  }

  .mrai-shell-mobile-products-list .mrai-shell-product-copy small {
    font-size: 12px;
  }

  .mrai-shell-mobile-actions {
    margin-top: auto;
    padding-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mrai-shell-mobile-actions .mrai-shell-action {
    width: 100%;
    height: 48px;
  }
}

@media (max-width: 620px) {
  .mrai-shell-mobile-nav {
    padding: 112px 24px 28px;
  }
  .mrai-shell-language-trigger {
    font-size: 14px;
  }
  .mrai-shell-footer {
    min-height: 0;
  }
  .mrai-shell-footer-main {
    width: calc(100% - 40px);
    min-height: 0;
    padding: 44px 0 280px;
    gap: 48px;
  }
  .mrai-shell-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
    column-gap: 28px;
  }
  .mrai-shell-footer-column:last-child {
    grid-column: 1 / -1;
  }
  .mrai-shell-footer-slogan {
    margin-top: 18px;
    font-size: 16px;
  }
  .mrai-shell-footer-mascot {
    bottom: 0;
    width: 176px;
  }
}

/* Homepage-style overlay header for the video first screens. */
.mrai-shell-header--overlay {
  transition: color .18s cubic-bezier(.23, 1, .32, 1),
    background-color .18s cubic-bezier(.23, 1, .32, 1),
    box-shadow .18s cubic-bezier(.23, 1, .32, 1),
    backdrop-filter .18s cubic-bezier(.23, 1, .32, 1);
}

.mrai-shell-header--overlay ~ main {
  padding-top: 0 !important;
}

.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) {
  color: #fff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-wordmark {
  filter: brightness(0) invert(1);
}

.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-desktop-nav > a,
.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-products-trigger,
.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-language-trigger {
  color: #fff;
}

.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-products-trigger svg {
  stroke: #fff;
}

.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-menu-trigger span,
.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-menu-trigger::before,
.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-menu-trigger::after {
  background: #fff;
}

.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-action:not(.is-primary) {
  color: #fff;
  border-color: rgba(255, 255, 255, .72);
  background: rgba(12, 12, 12, .12);
}

.mrai-shell-header--overlay:not(.is-scrolled):not(.is-open) .mrai-shell-action.is-primary {
  color: #171717;
  border-color: #fff;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .mrai-shell-header,
  .mrai-shell-header *,
  .mrai-shell-footer * {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Ten feature entries remain reachable on short desktop screens. */
.mrai-shell-products-dropdown { max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }

/* Bridge the one-pixel gap between the feature trigger and its menu. */
.mrai-shell-products::before { content: ""; position: absolute; top: calc(100% - 1px); left: 50%; width: 84px; height: 12px; transform: translateX(-50%); }

/* Five entries per column; mobile disclosure keeps its existing single column. */
@media (min-width: 1181px) {
.mrai-shell-products-dropdown {
  left: 50%;
  width: var(--mrai-feature-menu-width, min(680px, calc(100vw - 48px)));
  box-sizing: border-box;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(60px, auto));
  grid-auto-flow: row;
  column-gap: 24px;
  row-gap: 4px;
  transform: translate(-50%, -6px);
  transform-origin: top center;
}
.mrai-shell-products-dropdown .mrai-shell-product-link {
  min-width: 0;
  min-height: 60px;
  padding: 8px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
}
.mrai-shell-products-dropdown .mrai-shell-product-icon { width: 40px; height: 40px; border-radius: 10px; }
.mrai-shell-products-dropdown .mrai-shell-product-icon svg { width: 20px; height: 20px; }
.mrai-shell-products-dropdown .mrai-shell-product-copy strong { font-size: 14px; font-weight: 500; line-height: 1.4; }
.mrai-shell-products-dropdown .mrai-shell-product-copy small {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
.mrai-shell-products:hover .mrai-shell-products-dropdown,
.mrai-shell-products:focus-within .mrai-shell-products-dropdown,
.mrai-shell-products.is-open .mrai-shell-products-dropdown { transform: translate(-50%, 0); }
}

@media (min-width: 1181px) {
.mrai-shell-products::before { left: 0; width: 100%; transform: none; pointer-events: none; }
.mrai-shell-products:hover::before,
.mrai-shell-products:focus-within::before,
.mrai-shell-products.is-open::before { pointer-events: auto; }
}

/* Copyright follows the footer content and aligns with its left edge. */
.mrai-shell-footer .mrai-footer-bottom {
  position: relative;
  z-index: 1;
  width: min(100%, var(--mrai-shell-page));
  margin: 0 auto;
  padding: 0 0 32px;
}
.mrai-shell-footer .mrai-footer-copyright {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .mrai-shell-footer .mrai-footer-bottom { width: min(calc(100% - 64px), 760px); }
  .mrai-shell-footer .mrai-shell-footer-mascot { bottom: 62px; }
}
@media (max-width: 620px) {
  .mrai-shell-footer .mrai-footer-bottom { width: calc(100% - 40px); }
  .mrai-shell-footer .mrai-shell-footer-mascot { bottom: 50px; }
}

/* Align the desktop copyright with the last Features link; retain the mobile footer row. */
.mrai-shell-footer .mrai-footer-bottom:empty { min-height: 50px; }
@media (min-width: 981px) {
  .mrai-shell-footer-brand { align-self: stretch; }
  .mrai-shell-footer-brand > .mrai-footer-copyright { margin-top: auto; line-height: 22.4px; }
}

/* Desktop footer content has exactly 110px of space above and below. */
@media (min-width: 981px) {
  .mrai-shell-footer-main { padding-block: 110px; }
  .mrai-shell-footer .mrai-footer-bottom:empty { display: none; }
}

/* Phone footer: dark surface, Features on the left, Company and Resources stacked on the right. */
@media (max-width: 620px) {
  html :is(footer.mrai-shell-footer, footer.site-footer) {
    --mrai-mobile-footer-surface: #0a0a0a;
    --mrai-mobile-footer-ink: #f5f5f5;
    --mrai-mobile-footer-muted: #949499;
    min-height: 0;
    color: var(--mrai-mobile-footer-ink);
    background-color: var(--mrai-mobile-footer-surface);
    background-image: none;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-main, .footer-main) {
    width: calc(100% - 40px);
    min-height: 0;
    padding: 64px 0 clamp(144px, 48vw, 232px);
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-brand, .footer-brand) {
    min-width: 0;
    align-items: flex-start;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-brand, .footer-brand) :is(.mrai-shell-brand, .brand-mark) {
    color: var(--mrai-mobile-footer-ink) !important;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) .mrai-shell-wordmark,
  html footer.site-footer .footer-brand .brand-mark::after { filter: brightness(0) invert(1); }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-slogan, .mrai-footer-slogan) { display: block; margin: 12px 0 0; color: var(--mrai-mobile-footer-ink); font-size: 16px; }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-links, .footer-links) {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 24px;
    row-gap: 40px;
    transform: none;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-column, .footer-column) {
    min-width: 0;
    gap: 0;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-column, .footer-column)[data-footer-group="company"] { grid-column: 2; grid-row: 1; }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-column, .footer-column)[data-footer-group="resources"] { grid-column: 2; grid-row: 2; }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-column, .footer-column)[data-footer-group="features"] { grid-column: 1; grid-row: 1 / span 2; }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-column, .footer-column) h2 {
    margin: 0 0 12px;
    color: var(--mrai-mobile-footer-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-column, .footer-column) a {
    width: 100%;
    min-height: 34px;
    color: var(--mrai-mobile-footer-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-column, .footer-column) a:hover { color: var(--mrai-mobile-footer-ink); transform: none; }
  html :is(footer.mrai-shell-footer, footer.site-footer) .mrai-footer-bottom {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 0 28px;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) .mrai-footer-copyright {
    max-width: calc(50% - 12px);
    color: var(--mrai-mobile-footer-muted);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :is(.mrai-shell-footer-mascot, .mrai-footer-ip) {
    right: 20px;
    bottom: -12px;
    left: auto;
    width: min(36vw, 160px);
    height: auto;
    transform: none;
    filter: none;
  }
  html :is(footer.mrai-shell-footer, footer.site-footer) :focus-visible { outline: 2px solid var(--mrai-mobile-footer-ink); outline-offset: 4px; }
}
