/* The header and footer of every page of the site, full width; the demo's header is the same (web/src/Showcase.css).
   Colors and fonts come from the page's sheet. */
.hd { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 32px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hd .logotype img { height: 28px; display: block; }
.hd nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.hd nav a { text-decoration: none; color: var(--muted); font: 500 15px/1 var(--sans); padding: 6px 0; border-bottom: 1px solid transparent; }
.hd nav a:hover { color: var(--ink); }
.hd nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.hd nav a.log-in { color: var(--ink); }
.hd nav a.client { padding: 10px 16px; border: 0; border-radius: var(--r-2); background: var(--ink); color: var(--bg); }
.hd nav a.client:hover { opacity: .88; }
/* The language, before « Log in » (site/i18n.js): the globe and FR in the links' own type, a hairline after them, then a small menu. */
.hd .langs { position: relative; }
.hd .langs > button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font: 500 15px/1 var(--sans); cursor: pointer; }
.hd .langs > button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd .langs > button:hover, .hd .langs > button[aria-expanded="true"] { color: var(--ink); }
.hd .langs [role="menu"] { position: absolute; top: calc(100% + 18px); right: 26px; z-index: 31; display: grid; min-width: 140px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); }
/* Closed on a computer; on a phone always open in the burger's menu. */
@media (min-width: 721px) {
  .hd .langs [role="menu"]:not(.open) { display: none; }
  /* The hairline: the links on its left, the two ways in on its right. */
  .hd .langs { display: flex; align-items: center; height: 20px; padding-right: 26px; border-right: 1px solid var(--line); }
}
.hd .langs [role="menuitem"] { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: var(--r-1); background: none; color: var(--ink); font: 15px/1 var(--sans); text-align: left; cursor: pointer; }
.hd .langs img { display: block; width: 18px; height: 12px; border-radius: 2px; }
.hd .langs [role="menuitem"]:hover { background: var(--hover-bg); }
.hd .langs [role="menuitem"][aria-current] { font-weight: 600; }
/* « Pricing », « Demo » and the language (site/i18n.js): in the row on a computer, behind the burger on a phone. */
.hd .more { display: contents; }
.hd .burger { display: none; }

footer { background: var(--paper); border-top: 1px solid var(--line); font: 13px/1.6 var(--sans); color: var(--muted); }
footer .in { padding: 36px 32px; }
footer .cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
footer .about img { height: 28px; display: block; }
footer .about p { margin: 10px 0 0; max-width: 30ch; }
footer .links { display: flex; gap: 64px; flex-wrap: wrap; }
footer .links div { display: grid; gap: 4px; align-content: start; }
footer .links p { margin: 0 0 2px; font: 500 12px/1.3 var(--sans); color: var(--ink); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Phone (#94): 44px targets. */
@media (max-width: 720px) {
  /* Taller than on a computer, under the notch when the page runs behind it, the black button 36 px so it has air above and below; its touch area stays 44. */
  .hd { height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 24px 0; gap: 8px; }
  .hd .logotype { display: flex; align-items: center; min-height: 44px; }
  .hd nav { gap: 2px; }
  /* The logo, « Log in » in words, « Try it free » in black, the burger: nothing else on the line, even before the script has moved the links. */
  .hd nav > a:not(.client):not(.log-in), .hd nav > .langs { display: none; }
  .hd nav a.log-in { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; font-size: 13px; white-space: nowrap; }
  .hd nav a.log-in[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
  .hd nav a.client { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .hd nav a.client::after { content: ""; position: absolute; inset: -4px 0; }
  .hd .burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: var(--r-2); background: none; color: var(--ink); cursor: pointer; }
  .hd .burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .hd .burger .shut, .hd .burger[aria-expanded="true"] .open { display: none; }
  .hd .burger[aria-expanded="true"] .shut { display: block; }
  /* The menu: a card under the burger, one 44 px row each, the languages under a hairline. */
  .hd .more { display: none; position: absolute; top: calc(100% + 8px); right: 24px; z-index: 31; width: 164px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); }
  .hd .more.open { display: grid; }
  .hd .more a, .hd .langs [role="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-2); color: var(--ink); font: 15px/1 var(--sans); }
  .hd .more a[aria-current] { font-weight: 600; }
  .hd .more a:hover, .hd .langs [role="menuitem"]:hover { background: var(--hover-bg); }
  .hd .langs { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
  .hd .langs > button { display: none; }
  .hd .langs [role="menu"] { position: static; display: grid; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  footer .in { padding: 32px 24px; }
  footer .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* The footer centred, each group a row of links without its title; the contact only the address, apart under a thin line (as web/src/Showcase.css). */
  footer .in { text-align: center; }
  footer .about img { margin: 0 auto; }
  footer .about p { margin: 10px auto 0; }
  footer .links { display: grid; gap: 0; justify-content: center; margin-top: 8px; }
  footer .links div { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
  footer .links p { display: none; }
  footer .links a { min-height: 36px; display: flex; align-items: center; }
  footer .links div:last-child { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
  footer .links div:last-child a:not([href^="mailto"]) { display: none; }
}
/* The smallest phones: all four stay on one line, in each language. */
@media (max-width: 380px) {
  .hd { padding: env(safe-area-inset-top) 16px 0; gap: 4px; }
  .hd .logotype img { height: 22px; }
  .hd nav { gap: 0; }
  .hd nav a.log-in { padding: 0 10px 0 4px; }
  .hd nav a.client { padding: 0 10px; }
  .hd .burger { width: 40px; margin-right: -8px; }
  .hd .more { right: 16px; }
}
