/* Listik · page de téléchargement
   Identité L!stik : encre et papier, Fraunces pour la voix, DM Sans pour la lecture.
   Aucune couleur de marque : la seule couleur possible est celle de la goutte (--drop),
   que le visiteur choisit dans la section « couleur ». Voir DESIGN.md. */

@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --paper: #f7f4ec;
  --paper-2: #efebe1;
  --surface: #fbfaf6;
  --ink: #1d2220;
  --ink-2: #454c49;
  --ink-3: #6a706c;
  --line: rgba(29, 34, 32, 0.13);
  --line-strong: rgba(29, 34, 32, 0.24);
  --drop: var(--ink);
  --shadow-window: 0 1px 2px rgba(20, 24, 22, 0.06), 0 24px 60px -24px rgba(20, 24, 22, 0.32);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141918; --paper-2: #1a201f; --surface: #1e2523;
    --ink: #f1eee6; --ink-2: #c8cbc5; --ink-3: #969d99;
    --line: rgba(241, 238, 230, 0.13); --line-strong: rgba(241, 238, 230, 0.26);
    --shadow-window: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141918; --paper-2: #1a201f; --surface: #1e2523;
  --ink: #f1eee6; --ink-2: #c8cbc5; --ink-3: #969d99;
  --line: rgba(241, 238, 230, 0.13); --line-strong: rgba(241, 238, 230, 0.26);
  --shadow-window: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.022em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.018em; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 500; letter-spacing: -0.005em; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 10px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

/* En-tête */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; color: var(--ink); }
.logo { height: 28px; width: 82px; display: block; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.theme {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
}
.theme:hover { color: var(--ink); border-color: var(--line-strong); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme .i-moon { display: none; }
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 100px; background: var(--ink); color: var(--paper);
  font: 500 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(20, 24, 22, 0.55); }
.btn:active { transform: translateY(0); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-large { height: 60px; padding: 0 30px; font-size: 17px; }
.i-win { width: 17px; height: 17px; fill: currentColor; flex: none; }
.link { color: var(--ink-2); text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Sections : une seule colonne de lecture, des respirations franches */
main > section { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }

/* Héros : le titre à gauche, le texte et l'action à droite, puis l'app en grand */
.hero { display: grid; gap: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 5vw, 64px) !important; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px clamp(32px, 6vw, 88px); align-items: end; }
.hero-side { display: grid; gap: 24px; justify-items: start; padding-bottom: 8px; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 38ch; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.meta { font-size: 14px; color: var(--ink-3); }
.hero-shot { margin: 0; position: relative; padding-bottom: 40px; min-width: 0; }
.window { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-window); border: 1px solid var(--line); }
.quick {
  position: absolute; left: clamp(16px, 5%, 64px); bottom: 0; width: min(46%, 540px);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-window), 0 0 0 1px var(--line);
}
.hero-shot figcaption { position: absolute; right: 0; bottom: 0; max-width: 34ch; font-size: 13px; color: var(--ink-3); text-align: right; line-height: 1.4; }

/* Captures claires / sombres : suivent le thème de la page */
.shot-dark { display: none; }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}

/* Capture rapide : la démonstration de la syntaxe */
.capture { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.capture-text { display: grid; gap: 22px; }
.capture-text > p { color: var(--ink-2); max-width: 44ch; }
.modes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.modes b { color: var(--ink); font-weight: 600; }
.demo { display: grid; gap: 18px; min-width: 0; }
.bar {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-window);
}
.bar-key { display: flex; gap: 4px; flex: none; }
kbd {
  font: 600 12px/1 var(--body); padding: 6px 8px; border-radius: 7px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2);
}
.bar-text { font-size: clamp(17px, 1.6vw, 21px); min-height: 1.6em; min-width: 0; overflow-wrap: anywhere; }
.bar-text::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--ink); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bar-text::after { animation: none; } }
/* Mêmes teintes que la saisie de l'app : la date en bleu, le projet en violet, la priorité en rouge,
   sur un lavis de leur propre couleur (voir app/globals.css, [data-token]). */
.tok { --t: currentColor; color: var(--t); background: color-mix(in oklch, var(--t) 13%, transparent); border-radius: 6px; padding: 0 0.18em; transition: color 0.25s ease, background-color 0.25s ease; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tok[data-tok="date"] { --t: #3b82f6; }
.tok[data-tok="projet"] { --t: #8b5cf6; }
.tok[data-tok="prio"] { --t: #ef4444; font-weight: 700; }
.demo.is-typing .tok:not(.is-on) { color: inherit; background: transparent; }
.parsed { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.parsed div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); transition: opacity 0.25s ease, transform 0.25s ease; }
.demo.is-typing .parsed div:not(.is-on) { opacity: 0.28; transform: translateY(3px); }
.parsed dt { font-size: 13px; color: var(--ink-3); }
.parsed dd { margin: 2px 0 0; font-weight: 500; }
.parsed div[data-tok="date"] dd { color: #3b82f6; }
.parsed div[data-tok="projet"] dd { color: #8b5cf6; }
.parsed div[data-tok="prio"] dd { color: #ef4444; }
.demo-note { font-size: 14px; color: var(--ink-3); max-width: 52ch; }

/* Rangées fonctionnalités : texte et capture, en alternance */
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-flip .feature-text { order: 2; }
.feature-text { display: grid; gap: 20px; }
.feature-text > p { color: var(--ink-2); max-width: 42ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 16px; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 7px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--ink-3); transform: rotate(180deg); }
.feature-shot { min-width: 0; }

/* Assistant */
.assistant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: end; border-top: 1px solid var(--line); }
.assistant-body { display: grid; gap: 22px; }
.assistant-body p { color: var(--ink-2); max-width: 46ch; }
.providers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.providers li { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 100px; font-size: 15px; }

/* Couleur */
.color { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; background: var(--paper-2); border-radius: 28px; max-width: calc(var(--wrap) - 2 * var(--gutter)) !important; padding: clamp(40px, 6vw, 72px) !important; }
.color-text { display: grid; gap: 20px; }
.color-text > p { color: var(--ink-2); max-width: 40ch; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: 100px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font: 500 14px/1 var(--body); cursor: pointer;
}
.swatches button span { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.swatches button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.color-logo { width: 100%; height: auto; aspect-ratio: 4415 / 1538; color: var(--ink); }
.color-logo, .logo, .dl-logo, .foot-logo { transition: color 0.2s ease; }

/* Vos données */
.local { display: grid; gap: clamp(36px, 5vw, 56px); }
.local h2 { max-width: 14ch; }
.local-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.local-grid div { display: grid; gap: 10px; align-content: start; }
.local-grid p { color: var(--ink-2); font-size: 16px; }

/* Téléchargement */
.download { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; border-top: 1px solid var(--line); }
.download-main { display: grid; gap: 22px; justify-items: start; }
.dl-logo { width: 150px; height: 52px; color: var(--ink); }
.release { font-size: 15px; color: var(--ink-2); }
.req { font-size: 14px; color: var(--ink-3); }
.req a { color: var(--ink-2); text-underline-offset: 3px; }
[hidden] { display: none !important; }
.smartscreen { padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.smartscreen p, .smartscreen li { color: var(--ink-2); font-size: 16px; }
.smartscreen ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.smartscreen b { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-3) !important; font-size: 14px !important; }

/* Questions */
.faq { display: grid; gap: 8px; max-width: 820px !important; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 500; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 300 26px/1 var(--display); color: var(--ink-3); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* Pied */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 56px; display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot-logo { width: 64px; height: 22px; color: var(--ink); }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }
.foot-links { margin-left: auto; display: flex; gap: 20px; }

/* Petits écrans */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-text, .capture, .feature, .assistant, .color, .download { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shot { padding-bottom: 0; display: grid; gap: 14px; }
  .quick { position: static; width: 100%; }
  .hero-shot figcaption { position: static; text-align: left; max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-actions .btn-small { display: none; }
  .parsed { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: 1fr; }
  .bar { padding: 14px 16px; gap: 12px; }
  .bar-key { display: none; }
  .foot-links { margin-left: 0; }
  .color { border-radius: 20px; }
}
