/* ==========================================================================
   site2.css - the shared stylesheet for the light design (October 2026).

   Every English page loads this: the landing page (with home2.css), the
   blog, the docs, contact, the legal pages and the 404. The translated
   landing pages that have not moved to the new design yet still load
   site.css + home.css, which are left exactly as they were; once every
   language is on the new design, those two files can be deleted.

   The @font-face block is generated by tools/fetch-fonts.mjs, which writes
   the same rules into site.css and this file.
   ========================================================================== */

/* @font-face:start (generated by tools/fetch-fonts.mjs — do not edit by hand) */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600 700;font-display:swap;src:url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600 700;font-display:swap;src:url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600 700;font-display:swap;src:url(/fonts/bricolage-grotesque-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Instrument Sans';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/instrument-sans-latin-ext-italic.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/instrument-sans-latin-italic.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/instrument-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/instrument-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Noto Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-arabic-arabic-v2.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'Noto Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-arabic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Noto Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-arabic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Noto Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-arabic-math.woff2) format('woff2');unicode-range:U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF}
@font-face{font-family:'Noto Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-arabic-symbols.woff2) format('woff2');unicode-range:U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF}
@font-face{font-family:'Noto Sans Bengali';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-bengali-bengali-v2.woff2) format('woff2');unicode-range:U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1}
@font-face{font-family:'Noto Sans Bengali';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-bengali-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Noto Sans Bengali';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-bengali-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Noto Sans Devanagari';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-devanagari-devanagari-v2.woff2) format('woff2');unicode-range:U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09}
@font-face{font-family:'Noto Sans Devanagari';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-devanagari-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Noto Sans Devanagari';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/noto-sans-devanagari-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* @font-face:end */

/* ==========================================================================
   Design tokens. The names are the ones site.css used, so blog.css, docs.css
   and contact.css pick up the light palette without renaming anything; the
   values are the October 2026 light design. --sprout is the green for TEXT
   (4.5:1 on white and on the grey band); --green is the fill for buttons and
   highlights, always with dark text on it.
   ========================================================================== */
:root {
  --forest: #0F2A22;
  --forest-deep: #0F2A22;
  --sprout: #0E7A4A;
  --sprout-bright: #2BC584;
  --green: #2BC584;
  --green-hover: #35D28E;
  --green-ink: #04150E;
  --wash: #EAF7F0;
  --mint: #F6F7F6;
  --mint-pale: #F3F9F5;
  --band: #F6F7F6;
  --card: #FFFFFF;
  --ink: #0F2A22;
  --ink-soft: #3D4F47;
  --ink-muted: #5B6B63;
  --line: #E6EAE8;
  --line-soft: #EEF1EF;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 53, 42, .04), 0 18px 40px -28px rgba(16, 53, 42, .35);
  --shadow-lg: 0 2px 4px rgba(16, 53, 42, .04), 0 40px 80px -50px rgba(16, 53, 42, .45);
  --max: 1160px;

  /* Legacy aliases the legal pages still use */
  --bg: #FFFFFF;
  --text: var(--ink);
  --text-secondary: var(--ink-muted);
  --text-tertiary: #6B7A72;
  --accent: var(--forest);
  --accent-deep: var(--forest);
  --accent-vibrant: var(--sprout);
  --border: var(--line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section { position: relative; }
::selection { background: rgba(43, 197, 132, .28); }

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'JetBrains Mono', monospace; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sprout);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fine { font-size: 14px; color: var(--ink-muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--green-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 12px 28px -14px rgba(31, 169, 113, .9);
}
.btn-primary:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-ghost {
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid #DCE3DF;
}
.btn-ghost:hover { border-color: #9ADDBE; }
.btn .apple { width: 16px; height: 16px; fill: currentColor; margin-top: -3px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sprout);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------- nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
header.nav .bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
header.nav.scrolled,
header.nav.solid,
header.nav.open {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

nav.links { display: flex; align-items: center; gap: 24px; margin-inline-start: 8px; }
nav.links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
nav.links a:hover { color: var(--ink); }
nav.links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
header.nav .nav-cta .btn { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
/* Sign in reads as a link, not a second button. */
header.nav .nav-cta .btn-ghost { border: 0; background: none; padding: 0 4px; font-weight: 500; }
header.nav .nav-cta .btn-ghost:hover { color: var(--sprout); }

/* Language picker: a <details>, so it opens with no JavaScript. */
.lang-pick { position: relative; font-size: 14.5px; }
.lang-pick summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  color: var(--ink-soft);
  font-weight: 500;
}
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover { color: var(--ink); }
.lang-pick ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows, 9), auto);
  column-gap: 2px;
  min-width: 168px;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.lang-pick ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.lang-pick ul a:hover { background: var(--band); }
.lang-pick ul a[aria-current="page"] { color: var(--sprout); font-weight: 700; }

.lang-globe { display: block; width: 17px; height: 17px; }
.mobile-lang { display: none; }
.mobile-menu { display: none; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .2s; }

@media (max-width: 900px) {
  nav.links, .nav-cta .btn-ghost { display: none; }
  header.nav .bar { gap: 10px; }
  .nav-cta { gap: 8px; }
  header.nav .nav-cta .btn-primary { font-size: 14px; padding: 0 14px; min-height: 40px; border-radius: 10px; }
  .lang-pick summary { padding: 0 9px; }
  .lang-pick summary > span { display: none; }
  .lang-globe { width: 22px; height: 22px; }
  .lang-pick { position: static; }
  .lang-pick ul { top: calc(100% - 4px); right: 12px; left: auto; max-height: calc(100vh - 90px); overflow-y: auto; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin-inline-end: -10px;
  }
  .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--line-soft);
  }
  .mobile-menu a {
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-menu a[aria-current="page"] { color: var(--sprout); font-weight: 600; }
  .mobile-menu a.btn { margin-top: 14px; border-bottom: none; }
  .mobile-menu a.btn-primary { color: var(--green-ink); }
  .mobile-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
  }
  .mobile-lang a { padding: 4px 0; font-size: 15px; color: var(--ink-muted); border-bottom: none; }
  .mobile-lang a[aria-current="page"] { color: var(--sprout); font-weight: 600; }
  header.nav.open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  header.nav.open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
}
@media (max-width: 374px) { header.nav .brand { font-size: 0; gap: 0; } }
@media (max-width: 900px) {
  header.nav.nav-tight .brand { font-size: 0; gap: 0; }
  header.nav.nav-tighter .nav-cta .btn-primary { display: none; }
}
@media (max-width: 359px) { .nav-cta .btn-primary { display: none; } }

/* ----------------------------------------------------------------- footer */
footer.foot {
  background: #FFFFFF;
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 40px;
  color: var(--ink-muted);
}
footer.foot .foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}
footer.foot .foot-brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.6; max-width: 32ch; }
footer.foot .foot-brand .foot-meta { margin-top: 10px; font-size: 13.5px; }
footer.foot .foot-col { display: flex; flex-direction: column; gap: 9px; }
footer.foot .foot-col h3 {
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
footer.foot .foot-col a { font-size: 14.5px; line-height: 1.4; color: var(--ink); transition: color .15s; }
footer.foot .foot-col a:hover { color: var(--sprout); }
footer.foot .foot-col .foot-all { margin-top: 2px; color: var(--sprout); font-weight: 600; }
footer.foot .foot-col .foot-all::after { content: " \2192"; }
footer.foot .foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13.5px;
}
@media (max-width: 900px) {
  footer.foot .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.foot .foot-brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ utilities */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* A right-to-left run inside an English sentence. Without isolation the
   bidirectional algorithm pulls neighbouring digits and full stops to the
   wrong side of the word. */
[lang="ar"], [lang="ur"], [lang="fa"], [lang="he"] { unicode-bidi: isolate; }

/* Text for screen readers only (the animated examples carry a plain copy). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
