/* Walter footer. Figma DOMmUOpj9Fbv0qDiQWKFvr, component "Footer": desktop 5226:90410 (1440 px), mobile 5226:90409 (402 px). */
/* Expects Inter 400 and 500 with the optical size axis, loaded by the theme (see README). */
/* Every rule is scoped under .wf-footer. No global rules. */

.wf-footer {
  --wf-text: rgba(0, 0, 0, 0.8);
  --wf-line: #ebebeb;
  --wf-badge: #000000;
  --wf-icon-ring: rgba(0, 0, 0, 0.1);
  --wf-lang-hover: #fafafa;
  --wf-lang-pressed: #f7f7f7;
  --wf-lang-open: #f5f5f5;
  --wf-menu-muted: #737373;
  --wf-menu-item: #525252;
  --wf-focus: #9333ea;

  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid var(--wf-line);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -0.01em;
  color: var(--wf-text);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.wf-footer *,
.wf-footer *::before,
.wf-footer *::after {
  box-sizing: border-box;
}

.wf-footer p,
.wf-footer h2,
.wf-footer nav,
.wf-footer ul,
.wf-footer li {
  margin: 0;
  padding: 0;
}

/* Themes add bullets or icons to list items through pseudo-elements */
.wf-footer li::before,
.wf-footer li::after {
  content: none;
  display: none;
}

.wf-footer ul {
  list-style: none;
}

/* All icons are inline SVG. Theme rules such as svg { height: auto } or max-width: 100% must not resize them. */
.wf-footer svg {
  display: block;
  flex: none;
  max-width: none;
  overflow: hidden;
}

/* transition: none blocks theme rules like a { transition: all .3s }; the footer's own
   transitions are declared on more specific selectors below and still apply */
.wf-footer a,
.wf-footer button {
  color: inherit;
  text-decoration: none;
  transition: none;
}

/* Themes often underline links on hover; this only removes decoration, never color */
.wf-footer a:hover,
.wf-footer a:focus,
.wf-footer a:active {
  text-decoration: none;
  box-shadow: none;
}

/* Themes often draw their own outline on mouse focus; keep only the keyboard ring below */
.wf-footer a:focus:not(:focus-visible),
.wf-footer button:focus:not(:focus-visible) {
  outline: none;
}

.wf-footer a:focus-visible,
.wf-footer button:focus-visible {
  outline: 2px solid var(--wf-focus);
  outline-offset: 2px;
}

/* Layout. 1px border + 79px = 80px from the frame top; 201px tail under the bar */
.wf-footer .wf-inner {
  position: relative;
  z-index: 1;
  width: 1180px;
  margin: 0 auto;
  padding: 79px 0 201px;
}

/* Top row: brand left, badges right, bottoms aligned */
.wf-footer .wf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.wf-footer .wf-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 500px;
}

.wf-footer .wf-logo {
  display: block;
  width: 122px;
  height: 32px;
}

.wf-footer .wf-tagline {
  font-size: 14px;
  line-height: 21px;
  color: var(--wf-text);
}

/* Store badges */
.wf-footer .wf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wf-footer .wf-badge {
  display: flex;
  align-items: center;
  height: 40px;
  padding-left: 8px;
  border-radius: 8px;
  background: var(--wf-badge);
  color: #ffffff;
  overflow: hidden;
  letter-spacing: 0;
  white-space: nowrap;
}

.wf-footer .wf-badge-gp { width: 120px; }
.wf-footer .wf-badge-as { width: 127px; }
.wf-footer .wf-badge-cws { width: 168px; }

.wf-footer .wf-badge-icon {
  flex: none;
  display: flex;
  align-items: center;
  width: 21px;
  height: 24px;
  margin-right: 7px;
}

.wf-footer .wf-cws-icon {
  overflow: hidden;
  border-radius: 6px;
}

.wf-footer .wf-cws-img {
  display: block;
  flex: none;
  width: 28px;
  height: 24px;
  margin-left: -3.5px;
  background: url("assets/chrome-web-store.png") center / 28px 24px no-repeat;
}

.wf-footer .wf-badge-text {
  display: flex;
  flex-direction: column;
}

.wf-footer .wf-t1 {
  display: block;
  height: 14px;
  font-size: 10px;
  line-height: 13.333px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.wf-footer .wf-t1-tight { letter-spacing: -0.1px; }

.wf-footer .wf-t2 {
  display: block;
  height: 15px;
  font-size: 14px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: -0.16px;
  color: #ffffff;
}

.wf-footer .wf-gp-word {
  margin-top: 3px;
}

/* Store badges with a QR popover (Google Play, App Store).
   Same component as the /mobile/ hero: popover style from Figma 5014:59095,
   16px below the badge (5015:60301), badge hover fill #272727 (5015:60280),
   motion from transitions.dev "Modal open/close".
   Desktop only: never rendered on the mobile layout or on touch devices. */
.wf-footer .wf-store {
  position: relative;
  display: flex;
}

.wf-footer .wf-qr {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .wf-footer {
    --wf-qr-open-dur: 250ms;
    --wf-qr-close-dur: 150ms;
    --wf-qr-scale: 0.96;
    --wf-qr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  }

  .wf-footer .wf-store .wf-badge {
    transition: background-color var(--wf-qr-close-dur) var(--wf-qr-ease);
  }

  .wf-footer .wf-store:hover .wf-badge,
  .wf-footer .wf-store .wf-badge:focus-visible {
    background: #272727;
  }

  .wf-footer .wf-qr {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    z-index: 20;
    display: block;
    width: 132px;
    height: 132px;
    margin-left: -66px;
    padding: 13.2px;
    border-radius: 8.8px;
    background: linear-gradient(180deg, #ffffff 0%, #f0ebfe 100%);
    box-shadow:
      0 0 0 1px #eae3f8,
      0 1.1px 1.1px rgba(30, 11, 65, 0.04),
      0 2.2px 2.2px rgba(30, 11, 65, 0.03),
      0 5.5px 3.3px rgba(30, 11, 65, 0.02),
      0 11px 4.4px rgba(30, 11, 65, 0.01);
    transform-origin: center;
    transform: scale(var(--wf-qr-scale));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform var(--wf-qr-close-dur) var(--wf-qr-ease),
      opacity var(--wf-qr-close-dur) var(--wf-qr-ease),
      visibility 0s linear var(--wf-qr-close-dur);
  }

  .wf-footer .wf-qr svg {
    width: 105.6px;
    height: 105.6px;
  }

  .wf-footer .wf-store:hover .wf-qr,
  .wf-footer .wf-store .wf-badge:focus-visible + .wf-qr {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition:
      transform var(--wf-qr-open-dur) var(--wf-qr-ease),
      opacity var(--wf-qr-open-dur) var(--wf-qr-ease),
      visibility 0s;
  }

  /* Same weight as the focus rule above, declared after it, so Escape wins */
  .wf-footer .wf-store.wf-is-dismissed .wf-badge + .wf-qr {
    transform: scale(var(--wf-qr-scale));
    opacity: 0;
    visibility: hidden;
    transition:
      transform var(--wf-qr-close-dur) var(--wf-qr-ease),
      opacity var(--wf-qr-close-dur) var(--wf-qr-ease),
      visibility 0s linear var(--wf-qr-close-dur);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .wf-footer .wf-qr,
  .wf-footer .wf-store:hover .wf-qr,
  .wf-footer .wf-store .wf-badge:focus-visible + .wf-qr,
  .wf-footer .wf-store.wf-is-dismissed .wf-badge + .wf-qr,
  .wf-footer .wf-store .wf-badge {
    transition: none;
  }
}

/* Dividers, 48px above and below */
.wf-footer .wf-rule {
  height: 1px;
  margin: 48px 0;
  background: var(--wf-line);
}

/* Link columns. Fixed widths from the file, space distributed between them */
.wf-footer .wf-cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wf-footer .wf-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.wf-footer .wf-col-1 { width: 127px; }
.wf-footer .wf-col-2 { width: 127px; }
.wf-footer .wf-col-3 { width: 152px; }
.wf-footer .wf-col-4 { width: 149px; }
.wf-footer .wf-col-5 { width: 162px; }
.wf-footer .wf-col-6 { width: 128px; }

/* All group headings are solid black */
.wf-footer .wf-h {
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #000000;
  white-space: nowrap;
}

.wf-footer .wf-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.wf-footer .wf-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 21px;
  color: var(--wf-text);
  transition: color 120ms ease;
}

.wf-footer .wf-list a:hover {
  color: #000000;
}

/* Lanes are filled by footer.js on mobile only */
.wf-footer .wf-lane {
  display: none;
}

/* Bottom bar */
.wf-footer .wf-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.wf-footer .wf-copy {
  font-size: 14px;
  line-height: 21px;
  color: var(--wf-text);
}

/* Copyright, a 1 x 12 separator and the SOC 2 mark, 12px apart */
.wf-footer .wf-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-footer .wf-bar-sep {
  flex: none;
  width: 1px;
  height: 12px;
  background: rgba(0, 0, 0, 0.4);
}

.wf-footer .wf-soc2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 21px;
  color: var(--wf-text);
  white-space: nowrap;
}

.wf-footer .wf-soc2:hover {
  color: #000000;
}

.wf-footer .wf-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language control: Megamenu Language component, footer instance */
.wf-footer .wf-lang {
  position: relative;
}

.wf-footer .wf-lang-btn {
  min-width: 0;
  min-height: 0;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.wf-footer .wf-lang-btn:hover { background: var(--wf-lang-hover); }
.wf-footer .wf-lang-btn:active { background: var(--wf-lang-pressed); }
.wf-footer .wf-lang-btn[aria-expanded="true"] { background: var(--wf-lang-open); }

.wf-footer .wf-lang-menu {
  position: absolute;
  right: 0;
  bottom: 44px;
  z-index: 10;
  width: 169px;
  padding: 4px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 8px rgba(0, 0, 0, 0.04),
    0 18px 11px rgba(0, 0, 0, 0.03),
    0 32px 13px rgba(0, 0, 0, 0.01);
}

/* Closed by default; app script adds .wf-is-open. A class, not the hidden attribute,
   so the menu stays closed even if an HTML filter strips attributes. */
.wf-footer .wf-lang-menu {
  display: none;
}

.wf-footer .wf-lang.wf-is-open .wf-lang-menu {
  display: block;
}

.wf-footer .wf-lang-head {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--wf-menu-muted);
}

.wf-footer .wf-lang-item {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: var(--wf-menu-item);
}

.wf-footer .wf-lang-item:hover,
.wf-footer .wf-lang-item:focus-visible {
  background: var(--wf-lang-hover);
}

.wf-footer .wf-lang-item[aria-current="true"] {
  background: var(--wf-lang-open);
  color: #000000;
}

.wf-footer .wf-lang-label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.wf-footer .wf-lang-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Social links */
.wf-footer .wf-social {
  display: flex;
  gap: 12px;
}

.wf-footer .wf-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--wf-icon-ring);
  border-radius: 24px;
}

/* Decorative glow, behind the content. Desktop: y 880 to 1057, below the bar.
   Mobile: exported from the glow group alone (5083:69085), so no content is baked in. */
.wf-footer .wf-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 177px;
  background: url("assets/glow.webp") center bottom / 1440px 177px no-repeat;
  pointer-events: none;
}

/* ---------- Not in the file: between desktop and mobile ---------- */

@media (max-width: 1243px) {
  .wf-footer .wf-inner {
    width: auto;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1179px) {
  .wf-footer .wf-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .wf-footer .wf-brand {
    width: 100%;
    max-width: 500px;
  }

  .wf-footer .wf-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 48px;
  }

  .wf-footer .wf-col {
    width: auto;
  }

  /* The bottom bar no longer fits on one line here */
  .wf-footer .wf-bar {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

/* ---------- Mobile, from Figma 5226:90409 (402 px frame) ---------- */

@media (max-width: 767px) {
  /* 1px border + 31px = 32px from the frame top; 16px side margins; 46px tail */
  .wf-footer .wf-inner {
    padding: 31px 16px 46px;
  }

  .wf-footer .wf-brand {
    max-width: none;
  }

  .wf-footer .wf-badges {
    gap: 16px;
  }

  .wf-footer .wf-rule {
    margin: 32px 0;
  }

  .wf-footer .wf-h {
    white-space: normal;
  }

  /* Fallback without the script: the six desktop columns in two columns */
  .wf-footer .wf-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 42px;
    row-gap: 32px;
  }

  /* With the script: two independent lanes, 166 + 42 + 162 at 402 */
  .wf-footer .wf-cols.wf-cols--lanes {
    grid-template-columns: minmax(0, 166fr) minmax(0, 162fr);
  }

  .wf-footer .wf-cols--lanes .wf-col {
    display: none;
  }

  .wf-footer .wf-cols--lanes .wf-lane {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* Solutions wraps at 127px in the file */
  .wf-footer .wf-g-solutions {
    width: 127px;
    max-width: 100%;
  }

  .wf-footer .wf-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  /* Copyright, then the SOC 2 mark on its own row; no separator */
  .wf-footer .wf-bar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .wf-footer .wf-bar-sep {
    display: none;
  }

  .wf-footer .wf-bar-right {
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .wf-footer .wf-lang-menu {
    right: auto;
    left: 0;
  }

  /* Mobile glow: y 1660 to 1817, starts behind the language button and icons */
  .wf-footer .wf-glow {
    height: 157px;
    background-image: url("assets/glow-mobile.webp");
    background-size: 100% 157px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-footer .wf-list a {
    transition: none;
  }
}
