:root {
  --ground: #f6f7f9;
  --card: #ffffff;
  --ink: #14161b;
  --text: #454a57;
  --soft: #5a6070;
  --line: #d9dce3;
  --line-soft: #e3e6ec;
  --frame: #c9cdd6;
  --accent: #2f54d9;
  --accent-ink: #1f3fb0;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* One language at a time; without JavaScript the page stays in English. */
[data-lang="en"] [lang="fr"],
[data-lang="fr"] [lang="en"] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-header .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: #5173f7; display: flex; align-items: center; justify-content: center; flex: none; }
.site-nav { flex-grow: 1; display: flex; flex-wrap: wrap; gap: 0 26px; font-family: var(--mono); font-size: 13px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 14px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 700; }
.lang-switch { display: flex; gap: 2px; background: #e8eaef; border-radius: 8px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; color: var(--soft); font: 600 13px var(--mono); padding: 0 14px; min-height: 44px; border-radius: 6px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 10px 26px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-soon { background: var(--ink); color: #fff; cursor: default; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.note { font-family: var(--mono); font-size: 13px; color: var(--soft); }

/* Hero */
.hero { padding: 88px 0 96px; }
.status-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #0a6cf0; display: inline-block; margin-right: 8px; }
h1 { margin: 24px 0 0; max-width: 980px; font-weight: 800; font-size: clamp(42px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.04em; }
.lead { max-width: 640px; margin: 28px 0 0; font-size: 21px; line-height: 1.45; color: var(--text); }

.scene { margin-top: 72px; position: relative; aspect-ratio: 1160 / 690; border: 1px solid var(--frame); border-radius: 12px; overflow: hidden; background: #cbd5e8; font-size: clamp(7px, 1.12vw, 13px); }
.scene-bar { position: absolute; inset: 0 0 auto 0; height: 2.5em; background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid rgba(20, 22, 27, 0.08); display: flex; align-items: center; gap: 1.5em; padding: 0 1.4em; white-space: nowrap; overflow: hidden; }
.scene-bar strong { font-weight: 700; }
.scene-item { position: absolute; top: 0; left: 69%; height: 2.5em; display: flex; align-items: center; gap: 0.3em; padding: 0 0.7em; border-radius: 0.45em; background: rgba(20, 22, 27, 0.12); }
.scene-item svg { width: 1.85em; height: 1.3em; display: block; }
.scene-item .dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: #0a6cf0; }
.scene-window { position: absolute; top: 11%; left: 3%; width: 74%; border-radius: 0.9em; overflow: hidden; border: 1px solid rgba(20, 22, 27, 0.14); box-shadow: 0 1.8em 4.6em rgba(20, 22, 27, 0.28); background: #fff; }
.scene-menu { position: absolute; top: 2.8em; left: 69%; width: 27%; border-radius: 0.75em; overflow: hidden; border: 1px solid rgba(20, 22, 27, 0.16); box-shadow: 0 1.4em 3.7em rgba(20, 22, 27, 0.34); background: #fff; }
.scene img, .shot img { display: block; width: 100%; height: auto; }

/* Chapters */
.chapter { border-top: 1px solid var(--line); padding: 72px 0; }
.chapter .wrap, .split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.chapter-text { flex: 1 1 320px; }
.chapter-visual { flex: 1 1 460px; min-width: 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); }
h2 { margin: 12px 0 0; font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.chapter-text p { margin: 14px 0 0; color: var(--text); }
.chapter-text h2 + p { margin-top: 20px; }
.shot { border: 1px solid var(--frame); border-radius: 12px; overflow: hidden; background: var(--card); }
.shot-menu { flex: 0 1 340px; margin: 0 auto; }
code, .inline-code { font-family: var(--mono); font-size: 0.9em; }

.panel { background: var(--card); border: 1px solid var(--frame); border-radius: 12px; }
.cost { padding: 24px 26px; }
.cost-head { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--soft); letter-spacing: 0.02em; }
.cost-rows { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.cost-row { display: flex; justify-content: space-between; gap: 16px; }
.cost-row b { font-weight: 700; }
.cost-row span { color: var(--soft); font-weight: 500; }
.cost-row .mono { font-size: 14px; color: var(--ink); white-space: nowrap; }
.bar { margin-top: 6px; height: 8px; border-radius: 4px; background: #e8eaef; }
.bar i { display: block; height: 8px; border-radius: 4px; }
.cost-foot { margin: 20px 0 0; font-size: 14px; color: var(--soft); }

.deeds { margin: 0; }
.deeds > div { padding: 20px 26px; border-bottom: 1px solid var(--line-soft); }
.deeds > div:last-child { border-bottom: 0; }
.deeds dt { font-weight: 800; font-size: 19px; }
.deeds dd { margin: 4px 0 0; color: var(--text); }

.terminal { background: var(--ink); border-radius: 12px; padding: 22px 24px; overflow-x: auto; }
.terminal pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #d6d9e0; }
.terminal .cmd { color: #9db1ff; }
.terminal .dim { color: #a5a8b3; }

.sheet { border-top: 1px solid var(--line); background: var(--card); padding: 96px 0; }
.specs { flex: 1 1 460px; min-width: 0; margin: 0; font-family: var(--mono); font-size: 14px; }
.specs > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { flex: 0 0 170px; color: var(--soft); }
.specs dd { margin: 0; flex: 1 1 240px; }

.closing { border-top: 1px solid var(--line); padding: 104px 0; }
.closing h2 { margin: 0; max-width: 900px; font-size: clamp(36px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.04em; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.site-footer p { flex: 1 1 420px; margin: 0; }
.site-footer a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }

/* Support and privacy */
.page-hero { border-bottom: 1px solid var(--line); padding: 72px 0; }
.page-hero h1 { font-size: clamp(38px, 4.6vw, 64px); margin-top: 12px; }
.page-hero .lead { max-width: 720px; }
.page-hero .split { align-items: flex-start; }
.page-hero .split > :first-child { flex: 1 1 460px; }
.aside-card { flex: 1 1 340px; padding: 26px 28px; }
.aside-card h2 { margin: 0; font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; }
.aside-card p { margin: 8px 0 0; color: var(--text); }
.aside-card .small, .small { font-size: 14px; color: var(--soft); }
.aside-card ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--text); }
.aside-card li { margin: 6px 0; }
.page-body { padding: 72px 0 96px; }
.faq { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.faq > div { padding: 24px 26px; }
.faq h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.faq p { margin: 8px 0 0; color: var(--text); }
.toc { flex: 0 1 240px; display: flex; flex-direction: column; font-family: var(--mono); font-size: 13px; align-self: flex-start; position: sticky; top: 24px; }
.toc a { color: var(--text); text-decoration: none; padding: 9px 0; }
.toc a:hover { color: var(--ink); }
.prose { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.prose h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 48px 0 0; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 0; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text); }
.prose p { margin: 12px 0 0; }
.prose ul { margin: 12px 0 0; padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose .muted { color: var(--soft); }

@media (max-width: 760px) {
  .site-nav.sections { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .hero { padding: 56px 0 64px; }
  .scene { margin-top: 48px; }
  .chapter { padding: 56px 0; }
  .sheet, .closing { padding: 72px 0; }
  .toc { position: static; }
}

.prose .card { background: var(--card); border: 1px solid var(--frame); border-radius: 12px; padding: 20px 24px; margin: 0 0 8px; }
.prose .card ul { margin-top: 8px; }
.pill { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent); }
.prose code, .faq code, .aside-card code { background: #e8eaef; padding: 1px 6px; border-radius: 5px; }
.contact { margin-top: 18px; }
