/* Self-hosted variable fonts (no third-party requests; see the Cookie Policy). */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/Archivo-Variable.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/assets/fonts/Rubik-Variable.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/JetBrainsMono-Variable.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
/* zulucheck.com. Values mirror zulucheck-design/website (design tokens); logical properties so
   Hebrew and Arabic mirror without separate rules. Fonts are set per language on <html>. */
:root {
  --ground: #F5F7FC; --surface: #FFFFFF; --ink: #0A1330; --ink-muted: #2A3354; --label: #3D4767;
  --line-strong: #B9C1DA; --signal: #1F3FD8; --signal-pressed: #142C9E; --signal-tint: #E3E8FC;
  --navy: #0A1330; --emergency: #CC1F2D; --done: #3DDC84; --done-ink: #062A14;
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --stretch: 125%;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#features { scroll-margin-top: 24px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); }
a { color: var(--signal); }
a:hover { color: var(--signal-pressed); }
img { max-width: 100%; }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.display { font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); }
/* Long single words (DATENSCHUTZERKLÄRUNG) hyphenate instead of pushing the page sideways. */
/* Never split a word: headings wrap at spaces only (sizes are fitted in build.py). */
h1, h2, strong, .card h2 { overflow-wrap: normal; hyphens: manual; -webkit-hyphens: manual; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--surface); font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #8FA3FF; outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* Nav */
.nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 18px; }
/* A solid navy bar behind the nav on every page: the hero photo starts under it, never behind the links. */
.topbar { position: relative; z-index: 2; flex: none; background: var(--navy); }
.topbar .nav { padding-block: 12px; }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-items { display: contents; }
.nav-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,0.08); color: #FFF; place-items: center; cursor: pointer; }
.nav-menu-btn:focus-visible { outline: 3px solid #FFF; outline-offset: 2px; }
/* Phones and narrow windows: the brand and a hamburger; the links open in a menu under the bar. */
@media (max-width: 760px) {
  .nav-menu-btn { display: grid; }
  .nav-items { display: none; }
  .topbar.is-open .nav-items { display: flex; flex-direction: column; align-items: stretch; gap: 2px; flex-basis: 100%; padding: 6px 0 14px; border-top: 1px solid rgba(255,255,255,0.12); }
  .topbar.is-open .nav-link { padding: 14px 4px; font-size: 18px; text-align: start; }
  .topbar.is-open .lang-btn { align-self: flex-start; margin-top: 6px; }
  .topbar.is-open .nav-badges { align-self: flex-start; margin-top: 10px; }
}
.brand { display: flex; align-items: center; gap: 12px; color: #FFF; text-decoration: none; margin-inline-end: auto; }
.brand:hover { color: #FFF; }
.mark { width: 40px; height: 40px; border-radius: 9px; background: #FFF; display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.mark b { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 125%; font-size: 28px; line-height: 1; color: var(--signal); margin-top: -2px; }
.mark i { position: absolute; right: 6px; bottom: 6px; width: 7px; height: 7px; border-radius: 2px; background: var(--done); }
.brand span:last-child { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 125%; font-size: 20px; }
.nav-link { color: #FFF; font-weight: 700; text-decoration: none; padding: 10px 0; background: none; border: 0; font: inherit; font-size: 16px; cursor: pointer; }
.nav-link:hover { color: #E6EAFF; }
.lang-btn { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(10,19,48,0.55); color: #FFF; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; cursor: pointer; }
.lang-btn img, .flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; display: block; }
.download-pill { min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--done); color: var(--done-ink); text-decoration: none; display: flex; align-items: center; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 14px; }
.download-pill:hover { color: var(--done-ink); }
/* The store badges in the top bar (App Store and Google Play artwork, 40px: Apple's minimum on screen). */
.nav-badges { gap: 8px; flex-wrap: nowrap; }
.nav-badges .badge img { height: 40px; }
.nav-badges .soon { top: 11px; right: -38px; font-size: 7px; }

/* Hero */
.hero { position: relative; min-height: 820px; background: #121A26; color: #FFF; overflow: hidden; display: flex; flex-direction: column; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; opacity: 0; transition: opacity 0.9s ease-in-out; }
.hero-photo.is-on { opacity: 1; }
.hero-photo.hero-cockpit { object-position: 50% 40%; }
.hero-photo.hero-landings-phone, .hero-photo.hero-landings-circuit { object-position: 86% 50%; }
/* The watch photo is framed wider than the others: zoomed in from its left edge, which moves the
   watch right of the headline and copy so nothing covers its face. */
.hero-photo.hero-landings-watch { object-position: 50% 45%; transform: scale(1.34); transform-origin: 0% 55%; }
/* Slides: every copy stacked in one grid cell, so the hero keeps the height of the tallest. */
.hero-stack { display: grid; }
.hero-stack > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.5s ease-in-out, visibility 0.5s; }
.hero-stack > .is-on { opacity: 1; visibility: visible; }
.hero-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-tag { padding: 7px 12px; border-radius: 8px; background: #3DDC84; color: #062A14; font-family: var(--font-mono, 'JetBrains Mono', monospace); font-weight: 700; font-size: 13px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: 13px; font-weight: 700; color: #C9D2FF; }
/* Dots: bigger than usual, the current one a pill; each keeps a 44 pt tap area. */
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.hero-dot { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero-dot::before { content: ""; width: 14px; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.45); transition: width 0.3s, background 0.3s; }
.hero-dot:hover::before { background: rgba(255, 255, 255, 0.75); }
.hero-dot[aria-current="true"]::before { width: 34px; background: #FFF; }
.hero-dot:focus-visible { outline: 3px solid #3DDC84; outline-offset: -6px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .hero-photo, .hero-stack > * { transition: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,19,48,0.94) 0%, rgba(10,19,48,0.82) 32%, rgba(10,19,48,0.2) 52%, rgba(10,19,48,0) 58%); }
/* RTL keeps the LTR hero: photo on the right, copy block on the left (text inside is RTL). */
[dir="rtl"] .hero-body { direction: ltr; }
[dir="rtl"] .hero-copy { direction: rtl; } /* the column stays left of the device in the photo (.hero-copy max-width) */
.hero-body { position: relative; flex: 1; width: 100%; padding-block: 40px 96px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy { max-width: min(680px, 50vw); display: flex; flex-direction: column; gap: 24px; }
.hero h1, .hero .hero-h { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: min(clamp(38px, 5.4vw, 64px), calc((100vw - 52px) / (var(--longest, 0) * 1.02 + 0.5))); line-height: 0.95; letter-spacing: -0.02em; }
/* Arabic letters reach well above and below the Latin caps the 0.95 line height is set for. */
[lang="ar"] .hero h1, [lang="ar"] .hero .hero-h { line-height: 1.25; letter-spacing: 0; }
.hero .lead { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 540px; color: #E6EAFF; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge { display: block; line-height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.badge img { height: 56px; width: auto; display: block; }
.badge.dim img { opacity: 1; }
/* Not in the store yet: a diagonal ribbon across the badge's top corner, in the app's Pro green. */
.soon-wrap { position: relative; display: block; line-height: 0; overflow: hidden; border-radius: 9px; direction: ltr; }
.soon { position: absolute; top: 16px; right: -33px; width: 112px; padding: 3px 0; transform: rotate(45deg); background: var(--done); color: var(--done-ink); font-family: var(--font-display); font-weight: 900; font-stretch: 87%; font-size: 8.5px; line-height: 1; letter-spacing: 0.04em; text-align: center; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,0.35); pointer-events: none; }

/* Features */
main.home { max-width: 1200px; margin: 0 auto; padding: 72px 24px 56px; display: flex; flex-direction: column; gap: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.card { padding: 28px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.card.red { background: var(--emergency); color: #FFF; }
.card { container-type: inline-size; }
/* --longest is the longest word in this language's card headings (build.py); capitals in the
   display font are about 0.96em wide, so this keeps every word whole on one line. */
.card h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: min(26px, calc(100cqi / (var(--longest, 0) * 1.02 + 0.5))); line-height: 1; overflow-wrap: normal; hyphens: manual; -webkit-hyphens: manual; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-muted); }
.card.red p { color: #FFF; }
.fleet { border-radius: 20px; background: var(--surface); padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.fleet-copy { display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 760px; }
.fleet h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: min(clamp(26px, 3.4vw, 40px), calc((100vw - 100px) / (var(--longest, 0) * 1.02 + 0.5))); line-height: 1; }
.fleet p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-muted); }
.fleet-ask { padding: 10px 16px; border: 0; border-radius: 10px; background: var(--signal-tint); color: var(--signal); font: 700 15px/1 var(--font-body); cursor: pointer; }
.fleet-ask:hover { background: #D3DBFA; }
.fleet-ask:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.fleet-badges { justify-content: center; margin-top: 6px; }
.fleet-badges .badge img { height: 52px; }
/* The aircraft search: one big field; suggestions open under it as part of the same box. */
.fleet-search { position: relative; width: min(100%, 680px); text-align: start; }
.fs-box { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 18px 0 22px; border: 1.5px solid var(--line-strong); border-radius: 32px; background: var(--surface); box-shadow: 0 1px 6px rgba(10,19,48,0.08); transition: box-shadow 0.15s, border-color 0.15s; }
.fs-box:hover, .fleet-search:focus-within .fs-box { border-color: transparent; box-shadow: 0 2px 14px rgba(10,19,48,0.18); }
.fleet-search.is-open .fs-box { border-radius: 28px 28px 0 0; border-bottom-color: transparent; }
.fs-icon { flex: none; color: var(--label); }
.fs-field { position: relative; flex: 1; min-width: 0; height: 100%; }
.fs-input, .fs-ghost { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0; font: 600 21px/64px var(--font-body); letter-spacing: 0; white-space: pre; overflow: hidden; }
.fs-input { background: transparent; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.fs-input::placeholder { color: var(--label); font-weight: 500; opacity: 0.85; }
.fs-ghost { pointer-events: none; color: var(--label); opacity: 0.55; direction: ltr; text-align: left; }
.fs-typed { visibility: hidden; }
.fs-clear { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--label); display: grid; place-items: center; cursor: pointer; }
.fs-clear:hover { background: var(--ground); color: var(--ink); }
.fs-clear[hidden] { display: none; }
.fs-list { position: absolute; z-index: 5; left: 0; right: 0; top: 64px; margin: 0; padding: 6px 0 12px; list-style: none; background: var(--surface); border-radius: 0 0 28px 28px; box-shadow: 0 10px 18px rgba(10,19,48,0.18); border-top: 1px solid #E4E8F3; }
.fs-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 24px 11px 58px; cursor: pointer; direction: ltr; text-align: left; }
.fs-list li[aria-selected="true"] { background: var(--signal-tint); }
.fs-model { font-size: 18px; font-weight: 400; color: var(--ink); }
.fs-model b { font-weight: 800; }
.fs-list .fs-none { cursor: default; align-items: center; color: var(--ink-muted); font-size: 17px; direction: inherit; text-align: start; padding-inline: 58px 18px; }
.fs-list { direction: inherit; }
.fs-ask { padding: 8px 14px; border: 0; border-radius: 10px; background: var(--signal); color: #FFF; font: 700 14px/1 var(--font-body); cursor: pointer; }
/* .fleet p would zero the margin: the result line keeps clear of the search box. */
.fleet .fs-status { min-height: 1.55em; margin: 22px 0 0; text-align: center; font-size: 17px; color: var(--ink); }
.fs-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--done); color: var(--done-ink); font-weight: 900; font-size: 14px; vertical-align: 1px; }
@media (max-width: 560px) { .fs-box { height: 56px; padding: 0 12px 0 16px; } .fs-input, .fs-ghost { font-size: 18px; line-height: 56px; } .fs-list { top: 56px; } .fs-list li { padding-left: 46px; } }
.fleet-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 18px 28px; width: 100%; text-align: start; }
.fleet-list li { display: flex; flex-direction: column; gap: 4px; }
.fleet-list .maker { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--signal); }
.fleet-list .models { font-size: 18px; font-weight: 700; line-height: 1.35; }
/* Flight schools: navy, copy and buttons on one side, the three promises on the other. */
.schools { border-radius: 20px; background: var(--navy); color: #FFF; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px 56px; align-items: center; }
.schools-copy { container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.schools-tag { padding: 7px 12px; border-radius: 8px; background: var(--done); color: var(--done-ink); font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.schools h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: min(clamp(30px, 3.4vw, 40px), calc(100cqi / (var(--longest, 0) * 0.82 + 0.5))); line-height: 0.98; }
.schools-copy > p { margin: 0; font-size: 18px; line-height: 1.55; color: #D5DCF5; }
.schools-ask { margin-top: 6px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--signal); color: #FFF; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-align: start; }
.schools-ask:hover { background: #3355F0; }
.schools-ask:focus-visible { outline: 3px solid #FFF; outline-offset: 3px; }
.schools-ask .arrow { display: inline-block; transition: transform 0.15s; }
.schools-ask:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .schools-ask .arrow { transform: scaleX(-1); }
[dir="rtl"] .schools-ask:hover .arrow { transform: scaleX(-1) translateX(3px); }
.schools-try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; color: #B8C2E6; }
.schools-try .badge img { height: 52px; }
.schools-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.schools-points li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.schools-points li:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.schools-n { flex: none; font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--done); padding-top: 3px; }
.schools-points h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 19px; line-height: 1.15; }
.schools-points p { margin: 0; font-size: 16px; line-height: 1.5; color: #C3CBEA; }
@media (max-width: 860px) { .schools { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .schools-ask .arrow { transition: none; } }
.home-blog { display: flex; flex-direction: column; gap: 20px; }
.home-blog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home-blog h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: clamp(26px, 3vw, 34px); line-height: 1; }
.home-blog-head a { color: var(--signal); font-weight: 700; text-decoration: none; }
.home-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.home-post { display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.home-post:hover { transform: translateY(-2px); }
.home-post:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.home-post img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 558; object-fit: cover; }
.home-post-title { padding: 18px 20px 8px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.home-post-more { margin-top: auto; padding: 0 20px 20px; color: var(--signal); font-weight: 700; }
.home-post-more .arrow { display: inline-block; }
[dir="rtl"] .home-post-more .arrow { transform: scaleX(-1); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; }
.cta-row > span { font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: clamp(18px, 2vw, 22px); text-align: center; }
.cta-row .badge img { height: 52px; }
.devices { border-radius: 20px; background: var(--surface); padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.devices-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.devices h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: min(clamp(26px, 3vw, 34px), calc((100vw - 100px) / (var(--longest, 0) * 1.02 + 0.5))); line-height: 1; }
.devices p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-muted); }
.device-list { flex: 2 1 520px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-around; align-items: flex-end; gap: 24px 28px; }
.device-list li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; }
.dev { border-radius: 12px; box-shadow: inset 0 0 0 4px var(--ink); position: relative; }
.dev > div { position: absolute; inset: 8px; border-radius: 6px; background: var(--signal); display: flex; }
.dev-fold { display: block; overflow: visible; } .dev-fold path { stroke: var(--ink); } .dev-fold .scr { fill: var(--signal); stroke: none; } .dev-fold .hinge { stroke: rgba(255,255,255,0.45); }
.dev .side { width: 34%; border-inline-end: 2px solid rgba(255,255,255,0.45); }
.langs-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; }
.langs-row > span { font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 15px; color: var(--label); }
.flags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.flags a { display: block; line-height: 0; border-radius: 4px; }
.flags img { width: 40px; height: 30px; border-radius: 4px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(10,19,48,0.12); }

/* Final CTA + footer */
.final { background: var(--signal); color: #FFF; }
.final .wrap { padding-block: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.final h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: min(clamp(30px, 4vw, 48px), calc((100vw - 52px) / (var(--longest, 0) * 1.02 + 0.5))); line-height: 0.95; }
.final p { margin: 10px 0 0; font-size: 18px; color: #E6EAFF; }
.final .badge img { height: 60px; }
footer.site { background: var(--navy); color: #C9D2FF; }
footer.site .wrap { padding-block: 40px; display: flex; flex-direction: column; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.foot-links .name { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 125%; font-size: 17px; color: #FFF; margin-inline-end: auto; }
.foot-links a, .foot-links button { color: #FFF; font-weight: 700; padding: 10px 0; background: none; border: 0; font: inherit; font-weight: 700; font-size: 16px; text-decoration: underline; cursor: pointer; }
.foot-note { margin: 0; font-size: 13px; line-height: 1.6; max-width: 900px; }

/* Language panel */
.overlay { position: fixed; inset: 0; z-index: 20; display: flex; }
.overlay[hidden] { display: none; }
/* Open/close: the scrim fades, the side panel slides in from its edge, the modal rises and
   fades. .show is added one frame after unhiding and removed before hiding (build.py). */
.overlay .scrim { opacity: 0; transition: opacity 0.28s ease; }
.overlay.show .scrim { opacity: 1; }
.overlay .panel { transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
[dir="rtl"] .overlay .panel { transform: translateX(-100%); }
.overlay.show .panel { transform: none; }
.overlay .modal { opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.overlay.show .modal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .overlay .scrim, .overlay .panel, .overlay .modal { transition: none; } }
.overlay.side { justify-content: flex-end; }
.overlay.center { align-items: center; justify-content: center; padding: 16px; }
.scrim { position: absolute; inset: 0; border: 0; background: rgba(10,19,48,0.45); cursor: pointer; }
.center .scrim { background: rgba(10,19,48,0.55); }
.panel { position: relative; width: min(380px, 100%); height: 100%; background: var(--surface); box-shadow: -12px 0 40px rgba(10,19,48,0.25); display: flex; flex-direction: column; }
.panel-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; }
.panel-head span { font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 22px; }
.x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: #E6EAF5; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lang-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 20px; display: flex; flex-direction: column; gap: 2px; }
.lang-item { min-height: 52px; flex: none; border-radius: 10px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; }
.lang-item:hover { background: #EEF1F8; color: var(--ink); }
.lang-item[aria-current="true"] { background: var(--signal-tint); }
.lang-item img { width: 30px; height: 22px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(10,19,48,0.12); }
.lang-item .native { flex: 1; font-size: 17px; font-weight: 700; }
.lang-item .english { font-size: 14px; color: var(--label); }

/* Contact modal */
.modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px; background: var(--surface); box-shadow: 0 24px 60px rgba(10,19,48,0.35); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head div { display: flex; flex-direction: column; gap: 6px; }
.modal-head strong { font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 26px; line-height: 1; }
.modal-head span { font-size: 15px; color: var(--label); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-body); font-size: 16px; color: var(--ink); }
.contact-form textarea { padding: 12px 14px; resize: vertical; }
.contact-form button { min-height: 56px; border: 0; border-radius: 10px; background: var(--signal); color: #FFF; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 16px; cursor: pointer; }
.contact-form .alt { font-size: 14px; color: var(--label); }
.sent { padding: 20px; border-radius: 12px; background: #D9F4E2; color: #0B7A35; display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; }
.sent svg { flex: none; }
.sent[hidden], .form-error[hidden] { display: none; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #FDE3E5; color: #A3141F; font-size: 15px; font-weight: 600; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
/* Files with the message: a pill that opens the picker (the input itself is hidden but focusable), then one row per file. */
.contact-files { display: flex; flex-direction: column; gap: 8px; margin-top: -4px; }
.contact-files p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--label); }
.contact-form .files-pick { position: relative; flex-direction: row; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--signal); color: var(--signal); font-size: 15px; font-weight: 800; cursor: pointer; }
.contact-form .files-pick input { position: absolute; inset: 0; width: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.contact-form .files-pick:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.files-list[hidden] { display: none; }
.files-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.files-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 14px; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; }
.files-list .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.files-list .s { flex: none; color: var(--label); font-size: 13px; font-variant-numeric: tabular-nums; }
.contact-form .files-list .rm { flex: none; display: grid; place-items: center; width: 40px; min-height: 40px; padding: 0; border-radius: 8px; background: none; color: var(--label); }
.contact-form .files-list .rm:hover { background: var(--signal-tint); color: var(--ink); }
.files-list li.refused { padding: 10px 14px; background: #FDE3E5; box-shadow: none; color: #A3141F; font-size: 14px; font-weight: 600; }
.contact-files .files-limit { font-size: 13px; }

/* Legal pages */
.legal-head { background: var(--signal); color: #FFF; }
.legal-title { max-width: 820px; margin: 0 auto; padding: 40px 24px 48px; display: flex; flex-direction: column; gap: 12px; }
.legal-title h1 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: clamp(28px, 6vw, 60px); line-height: 0.95; }
.legal-title p { margin: 0; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #C9D2FF; }
main.legal { max-width: 820px; margin: 0 auto; padding: 40px 24px 72px; display: flex; flex-direction: column; gap: 32px; font-size: 17px; line-height: 1.65; }
.translation-note { margin: 0; padding: 14px 18px; border-radius: 10px; background: var(--signal-tint); font-size: 15px; }
.poh { padding: 22px 24px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--emergency); display: flex; flex-direction: column; gap: 8px; }
.poh strong { font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 18px; color: var(--emergency); }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.highlights div { padding: 20px; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.highlights strong { font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 16px; color: var(--signal); }
.highlights span { font-size: 16px; line-height: 1.45; }
main.legal section { display: flex; flex-direction: column; gap: 10px; }
main.legal h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: 22px; }
main.legal p { margin: 0; }
main.legal ul { margin: 0; padding-inline-start: 22px; }
footer.legal-foot { background: var(--navy); color: #C9D2FF; }
footer.legal-foot .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 14px; }
footer.legal-foot span { margin-inline-end: auto; }
footer.legal-foot a { color: #FFF; font-weight: 700; padding: 10px 0; }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; max-width: 820px; margin: 0 auto; padding: 48px 24px; }
.notfound h1 { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch); font-size: clamp(36px, 6vw, 60px); line-height: 0.95; }

@media (max-width: 640px) {
  .hero { min-height: 720px; }
  .hero-copy { max-width: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,19,48,0.55) 0%, rgba(10,19,48,0.75) 45%, rgba(10,19,48,0.94) 70%); }
  .hero-body { justify-content: flex-end; padding-block: 24px 78px; }
  .hero-dots { bottom: 14px; }
  .nav { gap: 8px 16px; }
}

/* Maker logos: one endless row drifting left (two copies of the list, moved by half the track).
   One ink for every logo; it stops on hover or focus, and stands still with reduced motion. */
.makers { overflow: hidden; margin: 0 calc(50% - 50vw); padding: 6px 0 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.makers-track { display: flex; width: max-content; animation: makers-drift 165s linear infinite; }
.makers:hover .makers-track, .makers:focus-within .makers-track { animation-play-state: paused; }
.makers-list { display: flex; align-items: center; gap: clamp(40px, 6vw, 72px); list-style: none; margin: 0; padding: 0 clamp(20px, 3vw, 36px); }
.makers-list li { flex: none; display: flex; align-items: center; height: 56px; }
.makers-list img { display: block; filter: brightness(0); opacity: 0.62; }
@keyframes makers-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* The row is laid out left to right in every language (RTL would park it off-screen); RTL pages drift it the other way. */
.makers { direction: ltr; }
[dir="rtl"] .makers-track { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
  .makers { -webkit-mask-image: none; mask-image: none; margin: 0; }
  .makers-track { animation: none; width: auto; }
  .makers-list { flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .makers-list[aria-hidden], .makers-list .dup { display: none; }
}
/* The narrowest phones (320 px): brand and hamburger on one row. */
@media (max-width: 360px) { .topbar .nav { column-gap: 8px; padding-inline: 16px; } .brand { gap: 8px; } .brand span:last-child { font-size: 18px; } }
