/* Site footer: quiet three-part grid, with the site's existing font family. */
.fxm-site-footer {
  --fxm-footer-ink: #252a34;
  --fxm-footer-text: #626975;
  --fxm-footer-muted: #707784;
  --fxm-footer-line: #e2e5e9;
  box-sizing: border-box;
  width: 100%;
  padding: 48px 32px 24px;
  border-top: 1px solid var(--fxm-footer-line);
  background: #f5f6f8;
  color: var(--fxm-footer-text);
  font-family: var(--font-family-body, inherit);
  font-size: 13px;
  line-height: 1.6;
}

.fxm-site-footer *,
.fxm-site-footer *::before,
.fxm-site-footer *::after { box-sizing: border-box; }

.fxm-footer-inner { width: 100%; max-width: 1280px; margin: 0 auto; }
.fxm-footer-grid { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 31fr) minmax(0, 29fr); gap: 32px; align-items: start; }
.fxm-footer-grid > * { min-width: 0; }
.fxm-footer-brand { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.fxm-footer-logo { display: block; flex: none; width: 156px; max-width: 100%; height: auto; }
.fxm-footer-logo img { display: block; width: 100%; height: auto; }
.fxm-footer-description { max-width: 365px; margin: 16px 0 0; font-size: 14px; line-height: 1.8; color: var(--fxm-footer-text); }
.fxm-footer-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 9px; color: var(--fxm-footer-muted); font-size: 12px; line-height: 1.8; }
.fxm-footer-tags > span[aria-hidden] { color: #c9cdd4; }
.fxm-footer-email { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; margin-top: 17px; color: #505966; font-size: 14px; font-weight: 400; text-decoration: none; overflow-wrap: anywhere; }
.fxm-footer-email svg { display: block; flex: none; width: 17px; height: 17px; color: #7d8591; }
.fxm-footer-social { width: 100%; margin-top: 7px; }
.fxm-footer-social__links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 0 0 -8px; padding: 0; list-style: none; }
.fxm-footer-social-link { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0; padding: 8px; border: 0; border-radius: 4px; background: transparent; text-decoration: none; vertical-align: middle; }
.fxm-footer-social-link img,
.fxm-footer-social-link svg { display: block; flex: none; width: 22px; height: 22px; object-fit: contain; }
.fxm-footer-social-link[href] { transition: background-color .15s ease; }
.fxm-footer-social-link[href]:hover { background: #e9ecf0; }

.fxm-footer-navigation { display: grid; gap: 25px; padding-top: 1px; }
.fxm-footer-col { min-width: 0; }
.fxm-footer-col h2,
.fxm-footer-app h2 { margin: 0; color: var(--fxm-footer-ink); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.fxm-footer-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; margin: 12px 0 0; padding: 0; list-style: none; }
.fxm-footer-col li { min-width: 0; margin: 0; padding: 0; }
.fxm-footer-col a,
.fxm-footer-col button { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 23px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--fxm-footer-text); font: inherit; font-size: 14px; line-height: 1.65; text-align: start; text-decoration: none; overflow-wrap: anywhere; }
.fxm-footer-col a svg { display: block; flex: none; width: 12px; height: 12px; color: #8d939e; }
.fxm-footer-col a:hover,
.fxm-footer-col button:hover,
.fxm-footer-email:hover { color: var(--color-primary, #4f34d9); }

.fxm-footer-app { min-width: 0; padding: 0 0 0 28px; border-inline-start: 1px solid var(--fxm-footer-line); }
.fxm-footer-app > p { margin: 6px 0 0; color: var(--fxm-footer-muted); font-size: 12px; line-height: 1.7; }
.fxm-footer-app-content { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 16px; margin-top: 17px; }
.fxm-footer-app-qr { display: flex; flex: 0 0 96px; flex-direction: column; align-items: center; gap: 7px; width: 96px; margin: 0; }
.fxm-footer-app-qr img { display: block; width: 96px; height: 96px; padding: 5px; border: 1px solid #e7e9ed; border-radius: 4px; background: #fff; object-fit: contain; }
.fxm-footer-app-qr figcaption { width: 100%; color: var(--fxm-footer-muted); font-size: 12px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.fxm-footer-store-links { display: flex; flex: 0 0 132px; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.fxm-footer-store-links small { color: var(--fxm-footer-muted); font-size: 12px; line-height: 1.6; }
/* Identical black cards keep both stores aligned without stretching the artwork. */
.fxm-footer-store-badge { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 132px; height: 44px; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 5px; background: #000; text-decoration: none; }
.fxm-footer-store-badge img { display: block; width: auto; max-width: 100%; height: 40px; margin: 0; object-fit: contain; }
/* The 646px Google PNG has a 564px-wide visible badge; center its clear space. */
.fxm-footer-store-badge--google img { position: absolute; top: 50%; left: 50%; width: 151.19px; max-width: none; height: auto; transform: translate(-50%, -50%); clip-path: inset(11px round 7px); }
.fxm-footer-app-status { margin: 8px 0 0; color: var(--fxm-footer-muted); font-size: 12px; line-height: 1.6; }

.fxm-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px 32px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--fxm-footer-line); }
.fxm-footer-copy { display: flex; flex: 1 1 420px; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-width: 0; color: var(--fxm-footer-muted); font-size: 12px; line-height: 1.8; }
.fxm-footer-copy p { margin: 0; }
.fxm-footer-langs { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 3px 9px; min-width: 0; color: var(--fxm-footer-muted); font-size: 12px; line-height: 1.6; }
.fxm-footer-langs > svg { display: block; flex: none; width: 15px; height: 15px; margin-inline-end: 3px; color: var(--fxm-footer-muted); }
.fxm-footer-langs > span[aria-hidden] { color: #ced2d9; }
.fxm-footer-langs a { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; color: var(--fxm-footer-muted); font-size: inherit; line-height: inherit; text-decoration: none; white-space: nowrap; }
.fxm-footer-langs a[aria-current] { color: var(--color-primary, #4f34d9); font-weight: 500; }
.fxm-footer-langs a:hover { color: var(--color-primary, #4f34d9); }
.fxm-footer-lang-flag { display: none; }
.fxm-site-footer a:focus-visible,
.fxm-site-footer button:focus-visible { outline: 2px solid var(--color-primary, #4f34d9); outline-offset: 4px; border-radius: 3px; }

@media (max-width: 1100px) {
  .fxm-site-footer { padding-inline: 28px; }
  .fxm-footer-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .94fr) minmax(256px, .91fr); gap: 24px; }
  .fxm-footer-description { font-size: 13px; }
  .fxm-footer-tags { gap: 3px 6px; }
  .fxm-footer-col ul { column-gap: 12px; }
  .fxm-footer-app { padding-inline-start: 20px; }
  .fxm-footer-app-content { gap: 12px; }
  .fxm-footer-app-qr { flex-basis: 88px; width: 88px; }
  .fxm-footer-app-qr img { width: 88px; height: 88px; }
  .fxm-footer-store-links { gap: 0; }
}

@media (max-width: 959px) {
  .fxm-site-footer { padding-top: 36px; }
  .fxm-footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 36px; }
  .fxm-footer-description { max-width: 380px; }
  .fxm-footer-app { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: max-content max-content 1fr; align-items: start; column-gap: 32px; padding: 24px 0 0; border-inline-start: 0; border-top: 1px solid var(--fxm-footer-line); }
  .fxm-footer-app h2 { grid-column: 1; }
  .fxm-footer-app > p { grid-column: 1; }
  .fxm-footer-app-content { grid-column: 2; grid-row: 1 / span 3; gap: 16px; margin-top: 0; }
  .fxm-footer-app-qr { flex-basis: 88px; width: 88px; }
  .fxm-footer-app-qr img { width: 88px; height: 88px; }
  .fxm-footer-store-links { gap: 0; }
  .fxm-footer-app .fxm-footer-app-status { grid-column: 1; margin-top: 9px; }
  .fxm-footer-bottom { gap: 8px 24px; margin-top: 24px; }
}

@media (max-width: 767.98px) {
  .fxm-site-footer { padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .fxm-footer-logo { display: flex; align-items: center; min-height: 44px; }
  .fxm-footer-email { min-height: 44px; margin-top: 12px; }
  .fxm-footer-social { margin-top: 1px; }
  .fxm-footer-social__links { gap: 0; margin-inline-start: -11px; }
  .fxm-footer-social-link { width: 44px; height: 44px; padding: 11px; }
  .fxm-footer-col ul { row-gap: 0; margin-top: 5px; }
  .fxm-footer-col a,
  .fxm-footer-col button { width: 100%; min-height: 44px; padding-block: 8px; }
  .fxm-footer-bottom { align-items: flex-start; }
  .fxm-footer-copy { flex-basis: 100%; gap: 2px 12px; }
  .fxm-footer-langs { gap: 0 10px; }
  .fxm-footer-langs a { justify-content: center; min-width: 44px; min-height: 44px; padding: 4px 6px; }
  .fxm-footer-langs > span[aria-hidden] { display: none; }
}

@media (max-width: 639px) {
  .fxm-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fxm-footer-logo { width: 146px; }
  .fxm-footer-description { max-width: 100%; margin-top: 12px; font-size: 13px; }
  .fxm-footer-tags { gap: 3px 7px; margin-top: 6px; }
  .fxm-footer-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 20px; border-top: 1px solid var(--fxm-footer-line); }
  .fxm-footer-col h2,
  .fxm-footer-app h2 { font-size: 14px; }
  .fxm-footer-col ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fxm-footer-app { display: block; padding-top: 20px; }
  .fxm-footer-app > p { max-width: 100%; margin-top: 5px; }
  .fxm-footer-app-content { gap: 20px; margin-top: 15px; }
  .fxm-footer-app-qr { flex-basis: 96px; width: 96px; }
  .fxm-footer-app-qr img { width: 96px; height: 96px; }
  .fxm-footer-store-links { gap: 8px; }
  .fxm-footer-app .fxm-footer-app-status { margin-top: 9px; }
  .fxm-footer-bottom { gap: 5px; margin-top: 23px; padding-top: 15px; }
  .fxm-footer-copy { display: block; }
  .fxm-footer-copy p + p { margin-top: 3px; }
  .fxm-footer-langs { width: 100%; gap: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .fxm-footer-social-link[href] { transition: none; }
}
