/* landing-header-and-footer: the landing page's header and footer, as the
   owner's artboards draw them. Every value is the artboard's own:
   WebHome (1440) for the header in the hero slab and the footer of four
   columns, WebHomeMobile (390) for the round glass menu button and the
   footer's 2 by 2 grid. The menu's open panel is not drawn: it is the
   design's glass with the header's own pills. The logo and the wordmark
   are css/brand.css. */

/* The header: 40 px in from the hero slab's sides, 28 px down (the slab
   is var(--gutter) from the window's edge). Without the page's script it
   stands above the slab. */
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1600px;
  margin: auto;
  padding: 28px 40px 0;
}
.enhanced .header {
  position: absolute;
  z-index: 3;
  inset: calc(var(--gutter) + 28px) calc(var(--gutter) + 40px) auto;
  padding: 0;
}
.navigation {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
/* Five 44 px pills, centred; the current one outlined in ink. */
.navigation nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.navigation nav a,
.navigation .log-in {
  display: flex;
  align-items: center;
  height: var(--control-sm);
  padding: 0 18px;
  border-radius: var(--radius-full);
  font: var(--type-nav);
  text-decoration: none;
  white-space: nowrap;
}
.navigation .log-in { font-weight: 600; }
.navigation nav a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.navigation nav a:not([aria-current]):hover,
.navigation .log-in:hover { background: var(--glass-landing); }
/* The dark "Get started": the landing button, 48 px high here. Its fill
   is said again because design.css's `.btn` (clear) comes after `.dark`. */
.navigation .get-started { height: var(--control-md); background: var(--inverse); color: var(--on-inverse); }
.navigation .get-started:hover { background: #383c3e; }

/* WebHomeMobile's menu button: 44 px, round, glass, two lines. */
.menu {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--control-sm);
  height: var(--control-sm);
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(27, 36, 99, 0.12);
}
.menu svg { display: block; }

/* "Log in" and "Get started" sit in a row of their own in the menu; in
   the header's row they are two more of its items. The menu's empty room
   and its mark are only in the menu. */
.menu-foot { display: contents; }
.menu-gap { display: none; }
.veil { display: none; }

/* Where the five pills, "Log in" and "Get started" do not fit in one row
   in any of the nine languages (under 1251 px: French needs 1247;
   landing.js opens and closes the menu at the same width), they are the
   menu. With no script they stand under the header, every link
   reachable. */
@media (max-width: 1250px) {
  .header { flex-wrap: wrap; justify-content: space-between; }
  .navigation { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
  .navigation nav { flex-direction: column; gap: 4px; }
  .navigation .get-started { margin-top: 8px; }
  .enhanced .header { flex-wrap: nowrap; }
}

/* landing-menu-and-motion: WebHomeMobileMenu22. With the script, the menu
   is a sheet over the whole window in the hero slab's glass, 10 px from
   every edge, over a quiet blurred veil; the logo and the round button
   stay where they are, above it (the button turns into the close mark).
   Every side is logical, so right to left it mirrors. */
@media (max-width: 1250px) {
  .enhanced .header .brand,
  .enhanced .menu { position: relative; z-index: 2; }
  /* The header scrolls with the page; while the sheet is shown it is
     fixed in its at-the-top place, so the logo and the button stand on
     the sheet where the artboard draws them however far the page was
     scrolled. */
  .enhanced .header:has(> .veil:not([hidden])) { position: fixed; }
  .enhanced .veil:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(243, 242, 248, 0.72);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .enhanced .navigation {
    position: fixed;
    inset: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    padding-block: 92px 20px;
    padding-inline: 18px 14px;
    border-radius: 32px;
    overflow: hidden auto;
    overscroll-behavior: contain;
    isolation: isolate;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7), 0 30px 80px rgba(27, 36, 99, 0.18);
    background: radial-gradient(70% 45% at 50% 35%, var(--slab-glow), rgba(244, 243, 252, 0) 75%),
      linear-gradient(180deg, #e6e2f6 0%, #dcddf5 55%, #c8cff2 100%);
    /* The sheet grows out of the button: the circle's centre is the
       button's centre in the sheet's own box (landing.js measures it). */
    clip-path: circle(150% at var(--menu-x, calc(100% - 36px)) var(--menu-y, 36px));
  }
  [dir="rtl"].enhanced .navigation { clip-path: circle(150% at var(--menu-x, 36px) var(--menu-y, 36px)); }
  .enhanced:not(.menu-open) .navigation { clip-path: circle(22px at var(--menu-x, calc(100% - 36px)) var(--menu-y, 36px)); }
  [dir="rtl"].enhanced:not(.menu-open) .navigation { clip-path: circle(22px at var(--menu-x, 36px) var(--menu-y, 36px)); }
  /* The links, the language pill and the buttons in a column of at most
     560 px at the inline start. */
  .enhanced .navigation > * { flex: none; width: 100%; max-width: 560px; }
  .enhanced .navigation nav { flex-direction: column; gap: 0; justify-content: flex-start; }
  .enhanced .navigation nav a {
    position: relative;
    justify-content: space-between;
    gap: 12px;
    height: auto;
    min-height: 64px;
    box-sizing: border-box;
    padding-block: 10px;
    padding-inline: 0 6px;
    border-radius: 0;
    color: var(--ink);
    font: 600 clamp(26px, 8.2vw, 32px)/1.1 var(--font-display);
    letter-spacing: -0.03em;
    white-space: normal;
  }
  .enhanced .navigation nav a:not([aria-current]):hover { background: none; }
  .enhanced .navigation nav a[aria-current="page"] { box-shadow: none; color: var(--accent-headline); }
  /* Each row's 1 px white rule. */
  .enhanced .navigation nav a::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.75);
    transform-origin: left;
  }
  [dir="rtl"].enhanced .navigation nav a::before { transform-origin: right; }
  /* The 20 px arrow at the row's end (Lucide "arrow-right", the
     artboard's drawing), mirrored right to left. */
  .enhanced .navigation nav a::after {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: var(--ink-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / 20px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / 20px no-repeat;
  }
  [dir="rtl"].enhanced .navigation nav a::after { transform: scaleX(-1); }

  /* The language menu: a 52 px glass pill across the column, 24 px under
     the links; opened, its languages as 44 px pills two to a row, each in
     its own language and direction, the current one outlined in ink
     (LandingParts22, part 4). */
  .enhanced .language-header { margin-top: 24px; }
  .enhanced .language-header summary {
    gap: 10px;
    height: 52px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(36, 39, 40, 0.08);
    font: var(--type-nav);
  }
  .enhanced .language-header summary:hover { background: rgba(255, 255, 255, 0.55); }
  .enhanced .language-header .language-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
  }
  .enhanced .language-header button {
    height: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  }
  .enhanced .language-header button[aria-current="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }

  /* The room left between the pill and the buttons, and the mark in it at
     the inline end: as tall as the room less 48 px, at most 210, white at
     60 %; not drawn where the room is under 150 px high. */
  .enhanced .menu-gap {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    align-items: center;
    justify-content: flex-end;
    padding-inline-end: 10px;
    container-type: size;
  }
  .enhanced .menu-gap .logo-mark {
    display: block;
    height: min(210px, calc(100cqh - 48px));
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
  }
  .enhanced .menu-foot { display: flex; gap: 10px; padding-top: 24px; }
  .enhanced .menu-foot a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    margin: 0;
    padding: 0 18px;
    border-radius: var(--radius-full);
    font: var(--type-button-landing);
  }
  .enhanced .menu-foot .log-in { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .enhanced .menu-foot .log-in:hover { background: rgba(255, 255, 255, 0.4); }
}
@container (max-height: 149px) {
  .enhanced .menu-gap .logo-mark { display: none; }
}
/* Short windows: rows 56 px high and 20 px between the groups, so the
   sheet fits 390 by 568 with no scrolling. */
@media (max-width: 1250px) and (max-height: 639px) {
  .enhanced .navigation nav a { min-height: 56px; padding-block: 8px; }
  .enhanced .language-header { margin-top: 20px; }
  .enhanced .menu-foot { padding-top: 20px; }
}
/* From 801 px the header stands 28 px down and 40 px in from the hero
   slab (which is var(--gutter) from the window), not 24 and 28 as on
   phones: the column keeps the phone's 34 px under the logo and starts
   under the logo's edge. */
@media (min-width: 801px) and (max-width: 1250px) {
  .enhanced .navigation {
    padding-block-start: calc(var(--gutter) + 96px);
    padding-inline: calc(var(--gutter) + 30px) calc(var(--gutter) + 26px);
  }
}
/* Wide windows: the buttons as wide as their words. */
@media (min-width: 640px) and (max-width: 1250px) {
  .enhanced .menu-foot a { flex: none; min-width: 150px; padding: 0 28px; }
}
/* From 960 px the mark leaves the room and stands in the empty half at the
   inline end, centred in height, clear of every word (frame 4). Under 960
   the half is too narrow for it to clear the column, so it stays in the
   room. */
@media (min-width: 960px) and (max-width: 1250px) {
  .enhanced .menu-gap { container-type: normal; }
  .enhanced .menu-gap .logo-mark {
    position: absolute;
    z-index: -1;
    inset-inline-end: max(64px, calc((100% - 560px - var(--gutter) - 30px) / 2 - 125px));
    top: 50%;
    transform: translateY(-50%);
    height: min(360px, 60vh);
  }
}

/* WebHomeMobile: 18 px from the slab's left, 14 px from its right and
   top (the slab is 10 px from the window's edge). */
@media (max-width: 800px) {
  .header { padding: 24px 24px 0 28px; }
  .enhanced .header { inset: 24px 24px auto 28px; }
}

/* The footer: WebHome's 72 / 120 / 56 px, a row of the wordmark with its
   line and four columns, then a 1.5 px ink rule with the ©. */
.footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px clamp(20px, 8.34vw, 120px) 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 15px;
  line-height: 1.5;
}
.footer p { margin: 0; }
.footer-top { display: flex; gap: 48px; }
.footer-brand { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand { height: 39px; }
.footer-brand p,
.footer nav a { color: var(--ink-muted); }
.footer nav { display: flex; flex-direction: column; gap: 6px; }
.footer nav:nth-of-type(1),
.footer nav:nth-of-type(2) { width: 180px; }
.footer nav:nth-of-type(3) { width: 160px; }
.footer nav:nth-of-type(4) { width: 170px; }
.footer nav p { margin-bottom: 4px; font-weight: 600; }
.footer nav a { text-decoration: none; }
.footer nav a:hover,
.footer nav .footer-underlined { text-decoration: underline; }
.footer-rule { display: flex; align-items: center; gap: 16px; }
.footer-rule > span { flex: 1; height: 1.5px; background: var(--ink); }
.footer-rule p { color: var(--ink-muted); font-size: 13px; }

/* landing-menu-and-motion: the logo's mark in the footer on phones
   (WebHomeMobile22): lavender, 80 px high, 20 px from the inline end and
   40 px from the footer's top, in the wordmark's row, wholly inside the
   window. */
.footer { position: relative; isolation: isolate; }
.footer > .logo-mark { display: none; pointer-events: none; }
@media (max-width: 800px) {
  .footer > .logo-mark {
    display: block;
    position: absolute;
    z-index: -1;
    inset-inline-end: 20px;
    top: 40px;
    height: 80px;
    color: var(--lavender);
  }
}

/* Where the row does not fit: the wordmark above, the four columns
   under it. */
@media (max-width: 1100px) {
  .footer-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer nav:nth-of-type(n) { width: auto; }
}
/* WebHomeMobile: 48 / 20 / 40 px, the columns 2 by 2, each link 32 px. */
@media (max-width: 800px) {
  .footer { padding: 48px 20px 40px; gap: 28px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  /* The footer's 28 px between the wordmark and the grid. */
  .footer-brand { gap: 0; margin-bottom: 4px; }
  .footer-brand .brand { height: 36px; }
  .footer nav { gap: 4px; }
  .footer nav a { min-height: 32px; }
  .footer-rule { gap: 12px; }
}

/* web-language-switcher: the language menu, with no script: a form with a
   <details> whose buttons name each language by its own name. It is drawn
   in the header's own pills and the footer's quiet links; no artboard draws
   it. In the footer it opens upward from the © line; in the header it is a
   row of the menu that appears where the header folds. */
.language { margin: 0; }
.language summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.language summary::-webkit-details-marker { display: none; }
.language button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  color: var(--ink);
  font: var(--type-nav);
  text-align: start;
  white-space: nowrap;
}
.language button:hover { background: var(--glass-landing); }
.language button[aria-current="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }

.language-footer { position: relative; flex: none; }
.language-footer summary {
  min-height: 32px;
  padding: 0 4px;
  color: var(--ink-muted);
  font-size: 13px;
}
.language-footer summary:hover { color: var(--ink); }
.language-footer .language-list {
  position: absolute;
  inset-block-end: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 8px;
  border-radius: var(--radius-xl);
  background: var(--field);
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--glass-landing-shadow);
}
.language-footer button { min-height: 36px; }

/* In the header only where the header folds into its menu. */
.language-header { display: none; }
@media (max-width: 1250px) {
  .language-header { display: block; }
  .language-header summary {
    display: flex;
    height: var(--control-sm);
    padding: 0 18px;
    border-radius: var(--radius-full);
    font: var(--type-nav);
  }
  .language-header summary:hover { background: var(--glass-landing); }
  .language-header .language-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 4px;
    padding-top: 4px;
  }
  .language-header button { min-height: 40px; }
}

/* landing-menu-and-motion: the header's motion (MOTION.md, sections 4 and
   7). Only opacity, transform and clip-path move; the menu's motion runs
   only under `.enhanced.motion`, which landing.js sets when the reader
   has not asked for reduced motion. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
.navigation nav a,
.navigation .log-in,
.menu,
.language summary,
.language button {
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.navigation nav a:active,
.navigation .log-in:active { background-color: rgba(255, 255, 255, 0.75); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  .menu[aria-expanded="false"]:hover { background-color: rgba(255, 255, 255, 0.8); }
}
@media (prefers-reduced-motion: no-preference) {
  .menu:active { transform: scale(0.94); transition-duration: 100ms; }
}
/* The button's two lines turn into the close mark about its centre. */
.menu svg path { transform-box: view-box; transform-origin: 12px 12px; }
.menu[aria-expanded="true"] svg path:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] svg path:last-child { transform: translateY(-4px) rotate(-45deg); }
.language-now { margin-inline-start: auto; color: var(--ink-muted); }
.language-chevron { flex: none; color: var(--ink-muted); }
.language details[open] .language-chevron { transform: rotate(180deg); }

@media (max-width: 1250px) {
  /* Closing: the words go together over 120 ms, the mark turns back over
     240, the sheet goes back into the button from 60 ms over 320, the
     veil from 120 ms over 240. */
  .enhanced.motion .menu svg path { transition: transform 240ms var(--ease-in-out); }
  .enhanced.motion .navigation { transition: clip-path 320ms var(--ease-in-out) 60ms; }
  .enhanced.motion .veil { transition: opacity 240ms var(--ease-in) 120ms; }
  .enhanced.motion .navigation nav a,
  .enhanced.motion .navigation nav a::before,
  .enhanced.motion .language-header,
  .enhanced.motion .menu-foot,
  .enhanced.motion .menu-gap .logo-mark {
    transition: opacity 120ms var(--ease-in), transform 0s linear 120ms;
  }
  .enhanced.motion:not(.menu-open) .veil { opacity: 0; }
  .enhanced.motion:not(.menu-open) .navigation nav a { opacity: 0; transform: translateY(12px); }
  .enhanced.motion:not(.menu-open) .navigation nav a::before { transform: scaleX(0); }
  .enhanced.motion:not(.menu-open) .language-header,
  .enhanced.motion:not(.menu-open) .menu-foot { opacity: 0; transform: translateY(8px); }
  .enhanced.motion:not(.menu-open) .menu-gap .logo-mark { opacity: 0; }
  /* Opening: the mark turns over 280, the veil comes in over 240, the
     sheet grows out of the button over 420; the five links one after
     another from 160 ms, 40 ms apart, each with its rule; the pill at
     360; the buttons and the mark at 400. */
  .enhanced.motion.menu-open .menu svg path { transition-duration: 280ms; }
  .enhanced.motion.menu-open .veil { transition: opacity 240ms var(--ease-out); }
  .enhanced.motion.menu-open .navigation { transition: clip-path 420ms var(--ease-in-out); }
  .enhanced.motion.menu-open .navigation nav a,
  .enhanced.motion.menu-open .navigation nav a::before {
    transition: opacity 320ms var(--ease-out) var(--menu-d), transform 320ms var(--ease-out) var(--menu-d);
  }
  .enhanced .navigation nav a:nth-child(1) { --menu-d: 160ms; }
  .enhanced .navigation nav a:nth-child(2) { --menu-d: 200ms; }
  .enhanced .navigation nav a:nth-child(3) { --menu-d: 240ms; }
  .enhanced .navigation nav a:nth-child(4) { --menu-d: 280ms; }
  .enhanced .navigation nav a:nth-child(5) { --menu-d: 320ms; }
  .enhanced.motion.menu-open .language-header { transition: opacity 280ms var(--ease-out) 360ms, transform 280ms var(--ease-out) 360ms; }
  .enhanced.motion.menu-open .menu-foot { transition: opacity 280ms var(--ease-out) 400ms, transform 280ms var(--ease-out) 400ms; }
  .enhanced.motion.menu-open .menu-gap .logo-mark { transition: opacity 600ms var(--ease-out) 400ms; }
  /* The language list: the chevron turns over 200 ms; the pills come in
     20 ms apart, the stagger stopped at 160 ms. */
  .enhanced.motion .language-header .language-chevron { transition: transform 200ms var(--ease-out); }
  .enhanced.motion .language-header details[open] .language-list button { animation: language-pill 200ms var(--ease-out) both; }
  .enhanced.motion .language-header .language-list button:nth-child(2) { animation-delay: 20ms; }
  .enhanced.motion .language-header .language-list button:nth-child(3) { animation-delay: 40ms; }
  .enhanced.motion .language-header .language-list button:nth-child(4) { animation-delay: 60ms; }
  .enhanced.motion .language-header .language-list button:nth-child(5) { animation-delay: 80ms; }
  .enhanced.motion .language-header .language-list button:nth-child(6) { animation-delay: 100ms; }
  .enhanced.motion .language-header .language-list button:nth-child(7) { animation-delay: 120ms; }
  .enhanced.motion .language-header .language-list button:nth-child(8) { animation-delay: 140ms; }
  .enhanced.motion .language-header .language-list button:nth-child(n + 9) { animation-delay: 160ms; }
}
/* Where circle() in clip-path is not drawn, the sheet fades in from 98 %. */
@supports not (clip-path: circle(1px at 0 0)) {
  @media (max-width: 1250px) {
    .enhanced.motion .navigation { transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); transform-origin: top right; }
    .enhanced.motion:not(.menu-open) .navigation { opacity: 0; transform: scale(0.98); }
  }
}
@keyframes language-pill {
  from { opacity: 0; transform: translateY(-4px); }
}
/* Reduce motion: nothing moves. The sheet and the veil come and go at
   once and the button's drawing swaps. */
@media (prefers-reduced-motion: reduce) {
  .header *,
  .header *::before,
  .header *::after {
    transition: none !important;
    animation: none !important;
  }
}
