/*
 * Lucium website. Light, the product first: white background, the system font, no web font, no decorative gradient, no glow.
 * Every color of the palette below passes WCAG AA for the text it is used for (body text, small text, buttons).
 */
:root {
  --text: #1d1d1f;
  --soft: #424245;
  --muted: #6e6e73;
  --link: #0066cc;
  --accent: #0071e3;
  --accent-hover: #0062c4;
  --band: #f5f5f7;
  --line: #e5e5ea;
  --line-soft: #f0f0f2;
  --line-strong: #d2d2d7;
  --bg: #ffffff;
  --no: #b3261e;
  --yes: #248a3d;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 22px;
  /* The width of the page: the menu, the sections, the footer and the back office are centered within it. Running text keeps a
     narrower line inside (--measure), while grids, cards, screenshots and tables use the whole width. */
  --page-max: 1440px;
  --measure: 760px;
  color-scheme: light;
}

@media (max-width: 599px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 120px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Links inside running text carry an underline: color alone does not tell them from the text (WCAG 1.4.1). */
p a, li a, dd a, td a, .prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
p a.more, li a.more { text-decoration: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 479px) {
  h1, h2 { hyphens: auto; -webkit-hyphens: auto; }
}

code, kbd { font-family: var(--mono); font-size: 0.92em; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  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;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Header: one line on a computer; two lines on a phone, the links scroll and "Download" stays in view ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 252, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  font-size: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; }

.lc-links {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  /* Seven links, the language and the button fit one line from 920 px (measured in the system font: 863 px of 876 in French). */
  gap: 20px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.lc-links::-webkit-scrollbar { display: none; }
.lc-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--soft);
}
.lc-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

.lc-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang { margin: 0; color: var(--muted); white-space: nowrap; }
.lang a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; min-width: 24px; justify-content: center; }
.lang a:hover { color: var(--text); }
.lang .current { color: var(--text); font-weight: 600; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-cta span {
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.nav-cta:hover { text-decoration: none; }
.nav-cta:hover span { background: var(--accent-hover); }

@media (max-width: 919px) {
  .lc-links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Layout ---------- */
main { display: block; }

.section { padding: 112px var(--gutter); }
.section-m { padding: 80px var(--gutter); }
.section-s { padding: 48px var(--gutter); }
.band { background: var(--band); }
.dark { background: #000; color: #f5f5f7; }

@media (max-width: 734px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-m { padding-top: 56px; padding-bottom: 56px; }
}

.wrap, .wrap-wide { max-width: var(--page-max); margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }
.center { text-align: center; }
/* Paragraphs set straight in the wide containers keep a readable line; centered ones stay centered. */
:is(.wrap, .wrap-wide) > p, :is(.wrap, .wrap-wide).stack > p, .stack-center > p, .md-section > p { max-width: var(--measure); }
.center > p { margin-inline: auto; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-center { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.split-reverse { flex-wrap: wrap-reverse; }
.split-top { align-items: flex-start; }
.split > .split-text { flex: 1 1 360px; min-width: 0; }
.split > .split-visual { flex: 1 1 440px; min-width: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
/* Four cards: four in a row on a wide screen, two by two in between, one by one on a phone; never three and one alone. */
@media (min-width: 640px) { .grid:not(.grid-2):has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .grid:not(.grid-2):has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Type ---------- */
.display {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.display-s { font-size: clamp(36px, 6vw, 72px); }

.title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.title-m { font-size: clamp(28px, 3.6vw, 40px); }
.title-s { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; }

.lead { margin: 0; max-width: var(--measure); font-size: clamp(19px, 2.2vw, 21px); color: var(--muted); }
.body-l { margin: 0; max-width: var(--measure); font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.fine { margin: 0; font-size: 12px; color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { margin: 0; font-size: 17px; color: var(--muted); }

.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
}

.prose { max-width: 720px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; color: var(--soft); }
.prose h2 { margin: 1.6em 0 0.5em; font-size: 26px; line-height: 1.2; }
.prose h3 { margin: 1.4em 0 0.4em; font-size: 19px; }
.prose dl { margin: 0 0 1em; }
.prose dt { font-weight: 600; margin-top: 0.8em; }
.prose dd { margin: 0.2em 0 0; color: var(--soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-l { padding: 12px 26px; }
.btn[disabled], .btn[aria-disabled="true"] { background: #8e8e93; cursor: not-allowed; }

.btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.btn-plain:hover { border-color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 14px; }

/* ---------- Copyable command ---------- */
.code-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 6px 6px 6px 16px;
  border-radius: 12px;
  background: var(--band);
  font-family: var(--mono);
  font-size: 14px;
}
.code-line code {
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 14px;
}
.band .code-line, .card .code-line { background: var(--band); }
.card .code-line { display: flex; }
.copy {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 64px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #e5e5ea;
  color: var(--text);
  font: inherit;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
}
.copy:hover { background: #d8d8de; }

.tbc { font-family: var(--font); font-size: 12px; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  min-width: 0;
}
.card-band { background: var(--band); }
.card-line { border: 1px solid var(--line); }
.card-xl { padding: 40px; gap: 12px; }
@media (max-width: 599px) { .card-xl { padding: 28px; } }
.card h2, .card h3 { margin: 0; }
.card p { margin: 0; }
.card .h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.card .h3-l { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; font-weight: 700; }

.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: 700;
}

.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list svg { flex: 0 0 20px; margin-top: 2px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 40px 24px;
  text-align: center;
}
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact b { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.fact span { color: var(--muted); }

.icons-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.icons-row img { display: block; width: 88px; height: 88px; }
@media (max-width: 479px) { .icons-row img { width: 64px; height: 64px; } }

.list-rows { margin: 0; padding: 6px 22px; list-style: none; border-radius: 18px; background: #fff; font-size: 15px; }
.list-rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.list-rows li:last-child { border-bottom: 0; }
.list-rows b { font-weight: 600; }
.list-rows span { color: var(--muted); }

.notice {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff1d6;
  color: #6b4100;
  font-size: 14px;
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.pill-on { background: #e8f1fd; color: #0058b0; }
.pill-off { background: #f0f0f2; color: var(--soft); }
.pill-always { background: #fff1d6; color: #6b4100; }

.help { max-width: var(--page-max); margin: 20px auto 0; padding: 8px 28px 20px; border-radius: 18px; background: #fff; }
.help summary { display: flex; align-items: center; min-height: 44px; padding-top: 12px; font-weight: 600; cursor: pointer; }
.help p { margin: 0; max-width: var(--measure); }

/* ---------- Screenshots: the captures of the application; a frame with a CSS drawing for the shots not taken yet (assets/site.js, loadShot) ---------- */
.shot { margin: 0; min-width: 0; }
.shot-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #ececef;
}
.shot-frame.lifted { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.shot-img { display: block; width: 100%; height: auto; }
.shot-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.shot-caption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.shot.has-image .draw { display: none; }
/* The Settings window is smaller than the main one: never shown wider than it is on the Mac (with its shadow, 892 px). */
.shot-settings { max-width: 780px; margin-inline: auto; }
.shot-settings.shot-shadow { max-width: 892px; }
/* A thumbnail at the top of a card of the features page: all of the same height, the top of the window shown. */
.shot-thumb { margin-bottom: 6px; }
.shot-thumb .shot-frame { aspect-ratio: 16 / 10; border-radius: 10px; }
.shot-thumb .shot-frame .shot-img { height: 100%; object-fit: cover; object-position: top left; }
.shot-thumb > .shot-img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; }
.shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px 24px; align-items: start; }

.draw { display: block; }
/* Every drawing is sized in em, and the em follows the width of its frame (container query units): it scales down to a phone like a picture. */
.draw-window { container-type: inline-size; }
/* The main window: the sidebar on the left, the page on the right (the proportions of the captures, 1440 × 900). */
.dw { position: relative; overflow: hidden; display: flex; aspect-ratio: 1440 / 900; font-size: 13px; font-size: 0.95cqw; line-height: 1.3; color: var(--text); text-align: left; background: #ececef; }
.dw i { font-style: normal; }
.dw-side { flex: 0 0 21em; width: 21em; padding: 0.9em 0.8em; display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.dw-lights { display: flex; gap: 0.6em; padding: 0.3em 0.5em 1.1em; }
.dw-lights i { width: 0.92em; height: 0.92em; border-radius: 50%; background: #ff5f57; }
.dw-lights i:nth-child(2) { background: #febc2e; }
.dw-lights i:nth-child(3) { background: #28c840; }
.dw-search { padding: 0.6em 0.8em; border-radius: 0.6em; background: #fff; color: var(--muted); white-space: nowrap; overflow: hidden; }
.dw-favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45em; padding: 0.8em 0.15em 0.3em; }
.dw-favs i { display: flex; align-items: center; justify-content: center; height: 3.1em; border-radius: 0.7em; background: rgba(255, 255, 255, 0.85); }
.dw-favs i::after { content: ""; width: 1.25em; height: 1.25em; border-radius: 0.3em; background: var(--c, #d2d2d7); }
.dw-favs-empty i { background: rgba(255, 255, 255, 0.45); }
.dw-favs-empty i::after { background: transparent; }
.dw-label { padding: 0.9em 0.8em 0.3em; font-size: 0.85em; color: var(--muted); }
.dw-tab { display: flex; align-items: center; gap: 0.7em; padding: 0.48em 0.8em; border-radius: 0.55em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-tab::before { content: ""; flex: 0 0 1.08em; height: 1.08em; border-radius: 0.25em; background: var(--c); }
.dw-tab.on { background: #fff; box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.06); }
.dw-tab.day { color: var(--soft); }
.dw-folder::before { content: "▸"; flex: 0 0 1.08em; height: auto; background: none; color: var(--muted); text-align: center; }
.dw-empty { height: 2.2em; margin: 0.2em 0.8em; border: 1px dashed var(--line-strong); border-radius: 0.55em; }
.dw-fill { flex: 1 1 auto; }
.dw-gauge { display: flex; flex-direction: column; gap: 0.35em; padding: 0.6em 0.8em; font-size: 0.85em; color: var(--muted); }
.dw-gauge i { display: block; height: 0.35em; border-radius: 0.2em; background: linear-gradient(90deg, var(--accent) 38%, rgba(0, 0, 0, 0.08) 38%); }
.dw-spaces { display: flex; gap: 0.9em; padding: 0.6em 0.8em 0.2em; font-size: 0.92em; color: var(--muted); white-space: nowrap; overflow: hidden; }
.dw-spaces b { color: var(--text); }
.dw-page {
  flex: 1 1 auto;
  margin: 0.6em 0.6em 0.6em 0;
  padding: 3em 3.7em;
  border: 1px solid var(--line);
  border-radius: 0.8em;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  min-width: 0;
}
.dw-page-blank { background: #fafafc; }
.dw-url { font-size: 0.92em; color: var(--muted); }
.dw-title { font-size: 2.3em; font-weight: 700; line-height: 1.1; }
.dw-line { display: block; height: 0.77em; border-radius: 0.4em; background: #f2f2f4; width: var(--w, 70%); }
.dw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1em; margin-top: 1.2em; }
.dw-cards i { height: 12em; border-radius: 0.8em; background: var(--band); border: 1px solid #ececef; }
/* What opens over the window: a veil, then a sheet (first launch, import). */
.dw-veil { position: absolute; inset: 0; background: rgba(29, 29, 31, 0.22); }
.dw-sheet {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 36em;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding: 2em;
  border-radius: 1.1em;
  background: #fff;
  box-shadow: 0 1.8em 4.4em rgba(0, 0, 0, 0.24);
  font-size: 1.15em;
}
.dw-sheet-title { font-size: 1.45em; font-weight: 700; }
.dw-hint { color: var(--muted); font-size: 0.92em; }
.dw-row { display: flex; justify-content: space-between; gap: 1em; padding: 0.65em 0.9em; border-radius: 0.6em; background: var(--band); }
.dw-row.on { background: #e8f1fd; }
.dw-row span:last-child { color: var(--muted); }
.dw-buttons { display: flex; justify-content: flex-end; gap: 0.7em; margin-top: 0.5em; }
.dw-buttons span { padding: 0.45em 1.1em; border-radius: 0.55em; background: var(--band); }
.dw-buttons span:last-child { background: var(--accent); color: #fff; }

.c1 { --c: #5ac8fa; } .c2 { --c: #ff9500; } .c3 { --c: #af52de; } .c4 { --c: #34c759; }
.c5 { --c: #ff6b6b; } .c6 { --c: #8e8e93; } .c7 { --c: #0a84ff; }



/* ---------- Roadmap: a vertical timeline, an ordered list; each state has its own mark and its name, not only a color ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 15px; width: 2px; background: var(--line); }
.tl-step { position: relative; padding: 0 0 40px 56px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-mark {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.tl-done .tl-mark { border-color: var(--yes); background: var(--yes); color: #fff; }
.tl-now .tl-mark { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 0 5px #e8f1fd; }
.tl-planned .tl-mark { border-color: var(--accent); color: var(--accent); }
.tl-study .tl-mark { border-style: dashed; }
.tl-votes .tl-mark { border-radius: 9px; }
.tl-when { margin: 5px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.tl-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.tl-state { font-size: 12px; letter-spacing: 0; }
.tl-done .tl-state { background: #e3f4e8; color: #1b6e31; }
.tl-now .tl-state { background: #e8f1fd; color: #0058b0; }
.tl-planned .tl-state { background: #f0f0f2; color: var(--soft); }
.tl-study .tl-state { background: #fff1d6; color: #6b4100; }
.tl-votes .tl-state { background: #f3e8fd; color: #6b2fa3; }
.tl-text { margin: 8px 0 0; color: var(--soft); }
/* A step that lists several things (what shipped recently): a short bulleted list in the place of the paragraph. */
.tl-list { display: grid; gap: 4px; padding-left: 20px; }
.never-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.never-list li { display: flex; align-items: baseline; gap: 10px; }
.never-list li::before { content: "✕"; color: var(--no); font-weight: 700; }

/* ---------- Film ---------- */
.film-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #0b2238;
  aspect-ratio: 16 / 9;
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b2238; }
.film-caption { margin: 0; font-size: 14px; color: #a1a1a6; }
.film-caption a { color: #f5f5f7; }
.film-status { margin: 0; font-size: 14px; color: #f5f5f7; }
/* The texts of the film, folded under the player: what a screen reader, or someone who cannot watch, reads instead. */
.film-transcript { width: min(100%, 640px); margin-top: 8px; text-align: left; font-size: 15px; color: #d2d2d7; }
.film-transcript summary { display: flex; justify-content: center; align-items: center; min-height: 44px; color: #f5f5f7; cursor: pointer; }
.film-transcript ol { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 24px; }

/* ---------- Features catalogue ---------- */
.fn-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 10px; }
.search {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.search:focus-visible { outline-offset: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; border: 0; }
.chip {
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

.fn-count { margin: 0; font-size: 15px; color: var(--muted); }

.fn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  min-width: 0;
}
.fn h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.fn p { margin: 0; font-size: 15px; color: var(--soft); }
.fn .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.fn .where { overflow-wrap: anywhere; }
.fn code { font-size: 0.9em; }
.fn-empty { margin: 24px 0 0; color: var(--muted); }

/* ---------- Compare ---------- */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.cmp { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cmp caption { padding: 18px 22px 4px; font-size: 13px; color: var(--muted); text-align: left; caption-side: top; }
.cmp th, .cmp td { padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.cmp thead th { padding: 14px 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.cmp .crit {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  max-width: 250px;
  padding-left: 22px;
  padding-right: 12px;
  text-align: left;
  font-weight: 500;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}
.cmp thead .crit { font-weight: 600; }
.cmp .is-lucium { background: var(--band); font-weight: 650; }
.cmp thead .is-lucium { background: var(--text); color: #fff; }
.cmp .group th { padding: 18px 0 8px; background: var(--band); text-align: left; border-bottom: 0; }
.cmp .group th span {
  position: sticky;
  left: 0;
  display: inline-block;
  padding: 0 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cmp td.no { color: var(--no); font-weight: 500; }
.cmp td.unknown { color: var(--muted); font-weight: 400; }
.cmp td.yes { font-weight: 500; }
.cmp td.partial { font-weight: 500; color: var(--soft); }
/* Lucium alone (the "in brief" page): three columns that fit a phone, the details left-aligned. */
.cmp-solo { min-width: 0; }
.cmp-solo .crit { min-width: 120px; }
.cmp-solo .is-lucium { width: 96px; }
.cmp-solo th.detail, .cmp-solo td.detail { padding-right: 22px; text-align: left; color: var(--soft); font-weight: 400; }

/* ---------- Privacy table: a table on a computer, stacked cards under 800 px ---------- */
.conn { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 15px; }
.conn th, .conn td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.conn thead th { padding: 14px 20px; background: var(--band); border-top: 0; font-size: 13px; font-weight: 600; color: var(--soft); }
.conn tbody th { font-weight: 400; width: 42%; }
.conn tbody th strong { font-weight: 600; }
.conn tbody th span { display: block; color: var(--muted); }
.conn td { color: var(--soft); }
.conn .lbl { display: none; color: var(--muted); }
@media (max-width: 799px) {
  .conn, .conn tbody, .conn tr, .conn th, .conn td { display: block; width: 100%; }
  .conn thead { display: none; }
  .conn tr { padding: 14px 18px; border-top: 1px solid var(--line-soft); }
  .conn tbody tr:first-child { border-top: 0; }
  .conn tbody th, .conn td { padding: 4px 0; border: 0; width: auto; }
  .conn .lbl { display: inline; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 22px 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 18px; transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 24px; color: var(--soft); }
.faq details > div p { margin: 0 0 0.8em; }
.faq details > div p:last-child { margin-bottom: 0; }
@media (max-width: 599px) { .faq summary { font-size: 18px; padding: 18px 2px; } }

/* ---------- Community ---------- */
.cm-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cm-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cm-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cm-bar .search { flex: 1 1 240px; min-height: 44px; padding: 10px 14px; border-radius: 12px; font-size: 15px; }
.select {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.cm-status { margin: 0; font-size: 15px; color: var(--soft); }
.cm-status.is-error { padding: 12px 16px; border-radius: 12px; background: #fce8e6; color: #8a1c1c; }
.cm-status.is-ok { padding: 12px 16px; border-radius: 12px; background: #e5f6e8; color: #1f6b33; }
.cm-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cm-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
@media (max-width: 479px) { .cm-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px; } }
.vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.vote b { font-size: 18px; }
.vote[aria-pressed="true"] { border-color: var(--accent); background: #e8f1fd; }
.vote[disabled] { cursor: not-allowed; color: var(--muted); background: var(--band); }
.cm-item h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.cm-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.st-proposed { background: #eaf0f4; color: #33475a; }
.st-studying { background: #fff1d6; color: #6b4100; }
.st-planned { background: #e3eeff; color: #1f3f9a; }
.st-in-progress { background: #dff7f3; color: #0b5e57; }
.st-shipped { background: #e5f6e8; color: #1f6b33; }
.st-declined { background: #fce8e6; color: #8a1c1c; }

.form { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.form .form-title { margin: 0; font-size: 20px; font-weight: 700; }
.form label { font-size: 14px; color: var(--soft); }
.field {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
textarea.field { resize: vertical; min-height: 110px; }
.field-code { font-size: 18px; letter-spacing: 0.3em; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.similar { margin: 0; font-size: 13px; color: var(--soft); }
.similar ul { margin: 4px 0 0; padding-left: 18px; }

.rule { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: var(--band); font-size: 15px; }
.rule .rule-title, .guard .rule-title { margin: 0; font-size: 18px; font-weight: 700; }
.rule p, .guard p { margin: 0; }
.guard { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; font-size: 15px; }

.dialog {
  width: min(100% - 32px, 440px);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--text);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
.dialog form { display: flex; flex-direction: column; gap: 10px; }
.dialog h2 { margin: 0 0 4px; font-size: 20px; }
.dialog .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* ---------- Moderation: the maintainer's back office (/moderation/), never linked from a public page ---------- */
.md-badge { font-size: 13px; font-weight: 600; color: var(--soft); }
.md-small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.md-login { max-width: 560px; }
/* A long variable name or e-mail address breaks rather than widening a phone screen (320 px). */
.md-login code, .dialog p { overflow-wrap: anywhere; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.md-toolbar .hint { flex: 0 1 auto; }
/* The result of an action stays in view at the bottom of the screen, wherever the action was taken in the page. */
.md-status { position: fixed; z-index: 15; left: 50%; bottom: 16px; width: min(100% - 32px, var(--measure)); transform: translateX(-50%); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
.md-status:not(.is-ok):not(.is-error) { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.md-status:empty { display: none; }
.md-section { display: flex; flex-direction: column; gap: 14px; }
.md-section h2:focus { outline: none; }
.md-section h2:focus-visible { outline: 3px solid var(--accent); }
.md-count { color: var(--muted); font-weight: 400; }
.md-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.md-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.md-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.md-item h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.md-item .cm-meta { margin: 0; }
.md-text { margin: 0; max-width: var(--measure); color: var(--soft); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.md-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.md-annotate { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 16px; align-items: start; }
.md-annotate .md-actions { grid-column: 1 / -1; }
.md-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.md-field label { font-size: 14px; color: var(--soft); }
.md-field .select { width: 100%; }
@media (max-width: 599px) {
  .md-item { padding: 14px; }
  .md-annotate { grid-template-columns: minmax(0, 1fr); }
}
.md-empty { margin: 0; color: var(--muted); }
.md-danger-text { color: var(--no); }
.btn-danger { background: var(--no); }
.btn-danger:hover { background: #8f1e18; }

/* ---------- Journal ---------- */
.journal-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.journal-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 28px; border-radius: 18px; background: var(--band); color: var(--text); }
.journal-list a:hover { text-decoration: none; background: #ececef; }
.journal-list h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.journal-list p { margin: 0; color: var(--muted); }
.article-meta { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px var(--gutter); background: var(--band); font-size: 12px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 24px; }
.footer-grid nav { display: flex; flex-direction: column; }
.footer-grid .footer-title { margin: 0 0 4px; color: var(--text); font-weight: 600; }
.footer-grid a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; color: var(--soft); }
.footer-note { margin: 24px auto 0; padding-top: 16px; border-top: 1px solid var(--line-strong); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
