footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: calc(60px * var(--s, 1)) 0 calc(40px * var(--s, 1));
}
.foot__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: calc(32px * var(--s, 1));
  margin-bottom: calc(40px * var(--s, 1));
}
/* Column labels were h4 — promoted to h3 (heading order h2 -> h3) for
   WCAG 1.3.1. The visual styling is unchanged. */
.foot__col h3,
.foot__col h4 {
  font-family: var(--display); font-size: calc(15px * var(--s, 1)); letter-spacing: normal;
  text-transform: none; color: var(--ink);
  margin: 0 0 calc(14px * var(--s, 1)); font-weight: 800;
}
.foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(8px * var(--s, 1)); font-size: calc(15px * var(--s, 1)); }
.foot__col a { color: var(--ink-2); }
.foot__col a:hover { color: var(--ink); }
.foot__brand { max-width: calc(320px * var(--s, 1)); font-size: calc(17px * var(--s, 1)); color: var(--ink-2); line-height: 1.55; }
.foot__lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: calc(28px * var(--s, 1)); border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: calc(11.5px * var(--s, 1)); color: var(--ink-3);
  flex-wrap: wrap; gap: calc(12px * var(--s, 1));
}
.foot__contact {
  font-family: var(--sans);
  font-size: calc(11.5px * var(--s, 1));
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.foot__contact:hover { color: var(--ink); border-bottom-color: var(--ink); }
.foot__cookies { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; font-size: calc(12px * var(--s, 1)); cursor: pointer; }
.foot__cookies:hover { color: var(--ink); }
@media (max-width: 1000px) {
  .foot__top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  /* The brand block holds the logo, a line of copy and the whole sign-up form,
     so it is three or four times the height of a link list. In a 1fr 1fr grid
     it sat in a half-width cell, and because every grid row is as tall as its
     tallest cell, "Product" ended up with 300px of nothing under it and the
     footer became a column of holes. Giving that block the full width takes it
     out of the comparison, and the four link lists then sit two-up against
     each other where they are actually a similar height. */
  .foot__top {
    grid-template-columns: 1fr 1fr;
    gap: calc(28px * var(--s, 1)) calc(24px * var(--s, 1));
    align-items: start;
  }
  .foot__top > .foot__col:first-child { grid-column: 1 / -1; }
  .foot__col ul { gap: calc(10px * var(--s, 1)); }
}

/* Mailing-list field in the footer (FANTENNA-804). One input and a button; the
   whole surface for joining the list. 16px on the input because anything
   smaller makes iOS Safari zoom the page on focus. */
.foot__sub { margin-top: calc(24px * var(--s, 1)); max-width: calc(320px * var(--s, 1)); }
.foot__sub-label {
  display: block; font-family: var(--sans); font-size: calc(14px * var(--s, 1)); font-weight: 700;
  color: var(--ink); margin-bottom: calc(8px * var(--s, 1));
}
.foot__sub-row { display: flex; gap: calc(8px * var(--s, 1)); }
.foot__sub-row input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--sans); font-size: calc(16px * var(--s, 1)); color: var(--ink);
  /* The field used to be transparent with a --rule border, and --rule is
     #F5F7FB against a --bg of #F8F8FA: a three-value difference, so the border
     was invisible and the input read as a gap rather than something to type
     in. Tom, 2026-09-05: "the email field needs to be a little darker."

     There is no mid-grey token to reach for - the palette jumps from --rule
     straight to --ink-3 (#6F6F6A), which is ink and far too strong for a
     resting border. So the border is ink at 22%, which lands near #C6C6C7 on
     this ground: clearly a field, still quiet. A white fill does the other
     half, separating the input from the grey footer behind it. */
  background: var(--paper);
  border: 1px solid rgba(10, 10, 10, 0.22);
  border-radius: calc(999px * var(--s, 1));
  padding: calc(9px * var(--s, 1)) calc(16px * var(--s, 1));
}
.foot__sub-row input::placeholder { color: var(--ink-3); }
.foot__sub-row input:focus-visible {
  /* A visible ring, not `outline: none` plus a border tint: a keyboard user
     needs to see where they are, and a 1px colour change is not that. */
  outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral);
}
.foot__sub-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.foot__sub-btn {
  flex: 0 0 auto; font-family: var(--sans); font-size: calc(14px * var(--s, 1)); font-weight: 700;
  /* The site's primary button: an ink pill, as in the nav and the hero. */
  color: var(--paper); background: var(--ink); border: 0; border-radius: calc(999px * var(--s, 1));
  padding: calc(9px * var(--s, 1)) calc(20px * var(--s, 1)); cursor: pointer;
}
.foot__sub-btn:disabled { opacity: 0.6; cursor: wait; }
.foot__sub-pot { position: absolute; left: calc(-9999px * var(--s, 1)); width: 1px; height: 1px; overflow: hidden; }
.foot__sub-note { margin: 0 0 calc(12px * var(--s, 1)); font-family: var(--sans); font-size: calc(15px * var(--s, 1)); color: var(--ink-2); line-height: 1.45; }
.foot__sub-legal { margin: calc(10px * var(--s, 1)) 0 0; font-family: var(--sans); font-size: calc(14px * var(--s, 1)); color: var(--ink-3); line-height: 1.5; }
.foot__sub-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot__sub-status { margin: calc(6px * var(--s, 1)) 0 0; font-family: var(--sans); font-size: calc(13px * var(--s, 1)); color: var(--ink-2); min-height: 1em; }
.foot__sub-status[data-state="ok"] { color: var(--ink); font-weight: 600; }
.foot__sub-status[data-state="error"] { color: #C6301A; }

/* The last row of the footer on a phone (FANTENNA-1024).
   ------------------------------------------------------------------------
   Tom's screenshot, 2026-09-05: the copyright, "Cookie preferences" and the
   contact address were sitting underneath the browser's own floating address
   bar, half readable and impossible to tap.

   The cause is that a mobile browser's chrome floats OVER the bottom of the
   viewport rather than shortening it, and the footer's 40px bottom padding is
   shorter than that bar. env(safe-area-inset-bottom) is the usual answer and
   would be nothing here, because it only reports a value when the page sets
   viewport-fit=cover, and these pages do not. It is still in the calc so a
   notched device is covered if that ever changes, but the clearance has to
   come from real padding.

   80px, because the address bar on iOS Safari and Chrome sits around 60 to
   70px tall and the last line should clear it rather than touch it. */
@media (max-width: 700px) {
  footer {
    padding-bottom: calc(calc(80px * var(--s, 1)) + env(safe-area-inset-bottom, 0px));
  }

  /* Three items spread edge to edge on a 390px screen leaves the middle one
     orphaned on its own line, which is what the screenshot shows. Stacked,
     they read as what they are: a short list. */
  .foot__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(10px * var(--s, 1));
  }
}

/* Age confirmation under the footer field (FANTENNA-1291). */
/* The age question, shown after Join (FANTENNA-1291). Two buttons rather
   than a tick box: one tap answers it, and nothing about age sits on the
   resting form. */
.foot__sub-age { margin: calc(14px * var(--s, 1)) 0 0; }
.foot__sub-age[hidden] { display: none; }
.foot__sub-age-q { margin: 0 0 calc(10px * var(--s, 1)); font-family: var(--sans); font-size: calc(15px * var(--s, 1)); font-weight: 600; color: var(--ink); }
.foot__sub-age-btns { display: flex; gap: calc(8px * var(--s, 1)); }
.foot__sub-btn--quiet { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.22); }
.foot__sub-age-box {
  display: flex; align-items: center; gap: calc(10px * var(--s, 1)); margin: calc(12px * var(--s, 1)) 0 0; min-height: calc(32px * var(--s, 1));
  font-family: var(--sans); font-size: calc(15px * var(--s, 1)); color: var(--ink-2); cursor: pointer;
}
.foot__sub-age-box input { width: calc(20px * var(--s, 1)); height: calc(20px * var(--s, 1)); margin: 0; accent-color: var(--ink); }

/* A finger needs 44px (site review, FANTENNA-2824 follow-up). */
@media (max-width: 640px) {
  .foot__sub-row input, .foot__sub-btn { min-height: calc(44px * var(--s, 1)); box-sizing: border-box; }
  .foot__cookies, .foot__contact { display: inline-flex; align-items: center; min-height: calc(44px * var(--s, 1)); }
}
