/* This is Fine · page produit de Sovran.
   Même charpente que la page Number go up (grille de 12 colonnes, grands titres sur la marge, l'app et Claude en
   direct en haut), dans l'identité de l'outil : noir, la flamme jaune-orange de ses cartes, Plus Jakarta Sans.
   Le mème vit dans le ton et dans le feu ; la flamme sert d'accent, jamais de fond de lecture longue. */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #000;
  --elev: #0f0e0d;
  --elev-2: #191715;
  --elev-3: #23201d;
  --ink: #f6f3ec;
  --ink-soft: #bdb6a9;
  --ink-mute: #7e786e;
  --accent: #ffe24a;
  --amber: #f4a63c;
  --red: #f1556a;
  --green: #3ecf8e;
  --blue: #5b8def;
  --claude: #d97757;
  /* la flamme des cartes de l'app : un halo clair en haut à gauche, du jaune au rouge */
  --flame: radial-gradient(110% 120% at 0% 0%, #fff3a6 0%, rgba(255, 243, 166, 0) 48%), linear-gradient(128deg, #ffe24a 0%, #ffbf2e 30%, #ff8c1f 62%, #f2512b 88%, #e23b2c 100%);
  --fink: #1c0d00;                         /* l'encre sur la flamme */
  --fink-soft: rgba(28, 13, 0, .68);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --m: clamp(16px, 3.6vw, 56px);     /* marge de page */
  --gut: clamp(12px, 1.5vw, 24px);   /* gouttière de la grille */
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: #000; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }

/* ---------- En-tête ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 16px var(--m); transition: background .3s var(--ease); }
.bar.on { background: rgba(0, 0, 0, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* ---------- Héro ---------- */
.hero { padding: clamp(140px, 15vw, 220px) var(--m) 0; }
.title { font-size: clamp(60px, 10.4vw, 198px); line-height: .88; letter-spacing: -.06em; font-weight: 600; margin-left: -.05em; white-space: nowrap; }
/* Le logo : « This is fine » puis le chien dans ses flammes, qui boit son café en se balançant à peine. */
.logo { display: inline-flex; align-items: center; gap: .12em; }
.logo .dog { width: .96em; height: .96em; border-radius: .2em; transform: translateY(.03em) rotate(-4deg); transform-origin: 50% 90%; }
@media (prefers-reduced-motion: no-preference) { .logo .dog { animation: sip 5s ease-in-out infinite; } }
@keyframes sip { 0%, 70%, 100% { transform: translateY(.03em) rotate(-4deg); } 78% { transform: translateY(-.02em) rotate(3deg); } 86% { transform: translateY(.03em) rotate(-2deg); } }
.hero-row { margin-top: clamp(22px, 2.4vw, 36px); align-items: end; }
.lead { grid-column: 1 / span 6; font-size: clamp(20px, 1.75vw, 28px); line-height: 1.24; letter-spacing: -.015em; max-width: 30ch; }
.lead-w { grid-column: 1 / span 8; max-width: 60ch; }
.lead em { font-style: normal; color: var(--accent); }
.hero-side { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.ready { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.ready > span:not(.mark) { font-size: 15px; color: var(--ink-mute); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.mark svg { width: 28px; height: 28px; flex: none; }
.mark.mk-loc svg { color: var(--accent); }
.mark img { width: 28px; height: 28px; flex: none; border-radius: 7px; }

/* ---------- L'écran du héro ----------
   L'app au centre, dans une fenêtre posée sur une lueur de flamme. Dedans, la vue Positions en calques tirés de vraies
   captures (assets/app/) : une unité --u vaut un pixel de l'app à 1440 px de large, et chaque calque se place en --x,
   --y, --w, --h dans ces pixels. page.js joue l'animation quand l'écran arrive dans la page. */
.scr { margin: clamp(44px, 5vw, 80px) auto 0; max-width: 1240px; }
.scr-win { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #2a2622, 0 60px 160px -40px rgba(255, 140, 31, .5), 0 30px 80px rgba(0, 0, 0, .6); }
.scr-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #141210; }
.scr-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2d2925; }
.scr-bar span { flex: 1; margin-right: 51px; text-align: center; font-size: 12px; color: var(--ink-mute); }
.scr-vp { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: #000; --u: calc(100cqw / 1440); }
.ap-side { position: absolute; left: 0; top: 0; width: calc(220 * var(--u)); height: 100%; background: url(assets/app/side.webp) 0 0 / 100% 100% no-repeat; }
.ap-main { position: absolute; left: calc(220 * var(--u)); top: 0; right: 0; bottom: 0; overflow: hidden; }
.ap-tall { position: absolute; left: 0; top: 0; width: calc(1220 * var(--u)); height: calc(2140 * var(--u)); }
.ap-l { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  background: url(assets/app/main.webp) calc(var(--x) * var(--u) * -1) calc(var(--y) * var(--u) * -1) / calc(1220 * var(--u)) calc(2140 * var(--u)) no-repeat; }
.ap-card-empty { background: url(assets/app/card-empty.webp) 0 0 / 100% 100% no-repeat; }
.ap-card-curve { background: url(assets/app/card-curve.webp) 0 0 / 100% 100% no-repeat; }
.ap-dblock-empty { background: url(assets/app/dblock-empty.webp) 0 0 / 100% 100% no-repeat; }
/* avant l'animation (.armed, posé par page.js) : tout est caché. .in fait entrer un calque : en montant (.ap-l), en
   fondu sur place (.ap-fade : la carte et le bloc finaux), ou en balayant de gauche à droite (.ap-wipe : la courbe) */
.scr.armed .ap-side { opacity: 0; transform: translateX(calc(-12 * var(--u))); }
.scr.armed .ap-l { opacity: 0; transform: translateY(calc(16 * var(--u))); }
.scr.armed .ap-fade { transform: none; }
.scr.armed .ap-wipe { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
.ap-side, .ap-l { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.ap-wipe { transition: clip-path 1.8s cubic-bezier(.5, 0, .2, 1); }
.scr .in { opacity: 1 !important; transform: none !important; }
.scr .ap-wipe.in { clip-path: inset(0 0 0 0) !important; }
.ap-row.fl::after { content: ''; position: absolute; inset: 0; background: rgba(255, 226, 74, .08); animation: row-fl 1.2s var(--ease) forwards; }
/* la deuxième scène, la vue Thesis : une page entière de calques (2710 px de haut dans l'app) sur sa base vide
   (th-empty : les fonds des panneaux et la carte avec ses fusées), qui prend la place de Positions ; puis Scorecard */
.ap-th { height: calc(2710 * var(--u)); opacity: 0; pointer-events: none; transition: transform 1.1s cubic-bezier(.45, 0, .2, 1), opacity .7s var(--ease); }
.ap-th-base { position: absolute; inset: 0; background: url(assets/app/th-empty.webp) 0 0 / 100% 100% no-repeat; clip-path: inset(calc(660 * var(--u)) 0 0 0); }   /* les fonds des panneaux ; la carte du haut est un calque à part */
.ap-th .ap-l { background-image: url(assets/app/th-main.webp); background-size: calc(1220 * var(--u)) calc(2710 * var(--u)); }
.ap-th .th-shell { background-image: url(assets/app/th-empty.webp); }
.th-shell, .th-cmpk, .th-name, .th-idea { transition-duration: .3s, .4s; }   /* le grand panneau entre vite */
.ap-wipe.th-bars { transition-duration: .7s; }
.ap-tall { transition: transform 1.1s cubic-bezier(.45, 0, .2, 1), opacity .7s var(--ease); }
/* la scène en cours (data-scene, posé par page.js) : sa page de calques et sa barre latérale, les autres s'effacent */
.ap-sc { height: calc(2107 * var(--u)); opacity: 0; pointer-events: none; }
.ap-sc .ap-l { background-image: url(assets/app/sc-main.webp); background-size: calc(1220 * var(--u)) calc(2107 * var(--u)); }
.ap-sc .sc-shell { background-image: url(assets/app/sc-empty.webp); }
.ap-sc .ap-nn { background-image: url(assets/app/sc-top-nonum.webp); background-size: calc(1220 * var(--u)) calc(300 * var(--u)); }
.scr[data-scene] .ap-tall { opacity: 0; }
.scr[data-scene="th"] .ap-tall.ap-th, .scr[data-scene="sc"] .ap-tall.ap-sc { opacity: 1; }
.ap-side-th, .ap-side-sc { opacity: 0 !important; transition: opacity .6s var(--ease); }
.ap-side-th { background-image: url(assets/app/th-side.webp); }
.ap-side-sc { background-image: url(assets/app/sc-side.webp); }
.scr[data-scene="th"] .ap-side-th, .scr[data-scene="sc"] .ap-side-sc { opacity: 1 !important; transform: none !important; }
.scr.armed .ap-pop { transform: scale(.82); }
.ap-pop { transition: opacity .35s var(--ease), transform .55s cubic-bezier(.34, 1.56, .64, 1); }
/* les chiffres de la carte, refaits par-dessus la capture pour s'incrémenter (mêmes polices, tailles et places que
   l'app à 1440 px) ; à la fin, la vraie carte les remplace en fondu */
.ap-nums { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.ap-n { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); margin: 0; white-space: nowrap; color: #1c0d00; font-weight: 500; font-size: calc(22 * var(--u)); line-height: calc(22 * var(--u)); letter-spacing: calc(-.44 * var(--u)); font-variant-numeric: tabular-nums; }
.ap-n-gain small { margin-left: calc(6 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; line-height: calc(12 * var(--u)); letter-spacing: 0; }
.ap-n-fx { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; font-size: calc(11.5 * var(--u)); font-weight: 600; line-height: calc(13 * var(--u)); letter-spacing: 0; color: #8f1500; }
.ap-n-tot { font-size: calc(77.76 * var(--u)); line-height: calc(81.648 * var(--u)); letter-spacing: calc(-3.1104 * var(--u)); }
.sc-n { font-size: calc(32 * var(--u)); line-height: calc(32 * var(--u)); letter-spacing: calc(-.96 * var(--u)); }
.sc-n small { margin-left: calc(5 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 400; line-height: calc(13 * var(--u)); letter-spacing: 0; color: rgba(28, 13, 0, .62); }
@keyframes row-fl { to { opacity: 0; } }
/* la fenêtre de code : Claude appelle le connecteur d'IBKR, les positions défilent */
.ap-code { position: absolute; right: calc(36 * var(--u)); bottom: calc(36 * var(--u)); width: calc(560 * var(--u)); padding: calc(18 * var(--u)) calc(20 * var(--u)); border-radius: calc(16 * var(--u)); background: rgba(14, 13, 12, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .55);
  font-family: var(--mono); font-size: max(10px, calc(14.5 * var(--u))); line-height: 1.6; color: var(--ink-soft); opacity: 0; transform: translateY(calc(18 * var(--u))) scale(.97); transition: opacity .45s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.ap-code.on { opacity: 1; transform: none; }
.ap-code-h { display: flex; align-items: center; gap: .6em; margin-bottom: .7em; font-family: var(--font); font-size: 1.05em; font-weight: 600; color: var(--ink); }
.ap-code-h svg { width: 1.2em; height: 1.2em; flex: none; }
.ap-code-h span { font-weight: 400; color: var(--ink-mute); }
.ap-code-h b { font-weight: 500; color: var(--ink-soft); }
.ap-code-b { height: 11.2em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.ap-code-b p { flex: none; margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; animation: lv-in .3s var(--ease) both; }
.ap-code-b .c-ask { color: var(--ink); font-weight: 500; }
.ap-code-b .c-call { color: var(--ink); }
.ap-code-b .c-call b { font-weight: 500; color: var(--accent); }
.ap-code-b .c-ret { color: var(--green); }
.ap-code-b .c-row { color: var(--ink-soft); }
.ap-code-b .c-row i { font-style: normal; color: var(--ink-mute); }
.ap-code-b .c-ok { color: var(--accent); }
.ap-code-b .c-row b { font-weight: 600; }
.ap-code-b .gS { color: var(--accent); } .ap-code-b .gA { color: var(--green); } .ap-code-b .gB { color: var(--amber); }
.ap-code-b .caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink-soft); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 640px) {
  .scr-bar span { margin-right: 0; }
  .ap-code { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 8px 10px; border-radius: 10px; font-size: 9px; }
  .ap-code-b { height: 5.6em; }
}

/* ---------- L'app et Claude, en direct ----------
   L'app à gauche (2/3), réduite à sa vue Trade with Claude ; Claude à droite (1/3). Une seule histoire : les achats du
   mois préparés, validés dans IBKR, suivis jusqu'à l'exécution, puis le jour où tout est rouge. Les cartes changent
   d'état d'une étape à l'autre. */
.live { margin-top: clamp(32px, 3.6vw, 56px); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gut); height: clamp(620px, 46vw, 700px); }
.lv-app, .lv-cl { background: var(--elev); border-radius: 20px; min-height: 0; min-width: 0; }
.lv-app { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: clamp(16px, 2vw, 26px); }
.tw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tw-t { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tw-t svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.tw-br { display: flex; gap: 6px; }
.bb { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.bb::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bb.ib { color: var(--blue); }
.tw-br .bb { padding: 5px 10px; border-radius: 999px; background: var(--elev-2); }
/* la bande en flamme de l'app : comment Claude passe un ordre ; l'étape en cours en noir, les étapes faites cochées */
.tw-how { flex: none; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 18px; border-radius: 14px; background: var(--flame); color: var(--fink); }
.tw-how ::selection { background: var(--fink); color: var(--accent); }
.tw-how-t { flex: none; display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; color: var(--fink-soft); }
.tw-how-t b { font-size: 14px; color: var(--fink); }
.tw-steps { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.tw-steps li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .3); font-size: 12px; font-weight: 600; line-height: 1.25; transition: background .5s var(--ease), color .5s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.tw-steps i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(28, 13, 0, .12); font-style: normal; font-size: 11px; font-weight: 700; transition: background .5s var(--ease), color .5s var(--ease); }
.tw-steps li.on { background: var(--fink); color: var(--accent); transform: translateY(-1px) scale(1.02); }
.tw-steps li.on i { background: var(--accent); color: var(--fink); }
.tw-steps li.ok i { background: var(--fink); color: var(--accent); font-size: 0; }
.tw-steps li.ok i::before { content: '✓'; font-size: 11px; }
.tw-zh { flex: none; display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.tw-zh h4 { font-size: 15px; font-weight: 600; }
.tw-zh .n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--elev-3); font-size: 11.5px; font-weight: 600; transition: background .3s var(--ease), color .3s var(--ease); }
.tw-zh .n.hot { background: var(--amber); color: #000; }
/* les ordres à valider : des cartes, l'une à côté de l'autre */
.tw-rail { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 271px; }
.tw-empty { grid-column: 1 / -1; display: grid; place-items: center; padding: 20px; border-radius: 14px; border: 1.5px dashed #2c2824; text-align: center; font-size: 13px; color: var(--ink-mute); animation: lv-in .4s var(--ease) both; }
.tw-rail:not(.none) .tw-empty { display: none; }
.tc { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: linear-gradient(180deg, #1f170a, #141210 70%); box-shadow: inset 0 0 0 1px rgba(244, 166, 60, .34);
  transition: opacity .3s var(--ease), transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s var(--ease), background .4s var(--ease); }
.tc.pre { opacity: 0; transform: translateY(22px) scale(.95); }
.tc.fresh { box-shadow: inset 0 0 0 1px rgba(244, 166, 60, .8), 0 0 0 5px rgba(244, 166, 60, .12); }
.tc.proc { box-shadow: inset 0 0 0 1px rgba(255, 226, 74, .55); }
.tc.sent { box-shadow: inset 0 0 0 1px rgba(62, 207, 142, .7); }
/* une fois soumis dans IBKR : la montre tourne, la coche, et l'ordre s'envole */
.tc-st { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: inherit; background: rgba(14, 12, 9, .93); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-size: 13.5px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; }
.tc.proc .tc-st { opacity: 1; }
.tc.sent .tc-st { color: var(--green); }
.tc-clock { position: relative; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--accent); }
.tc-clock::before, .tc-clock::after { content: ''; position: absolute; left: 50%; bottom: 50%; width: 2.5px; margin-left: -1.25px; border-radius: 2px; background: var(--accent); transform-origin: 50% 100%; }
.tc-clock::before { height: 14px; }
.tc-clock::after { height: 9px; }
.tc.proc .tc-clock::before { animation: lv-spin .9s linear infinite; }
.tc.proc .tc-clock::after { animation: lv-spin 5.4s linear infinite; }
.tc-ok { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green); fill: none; stroke: #000; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: tc-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.tc.sent .tc-clock { display: none; }
.tc.sent .tc-ok { display: block; }
@keyframes tc-pop { from { opacity: 0; transform: scale(.3); } }
.tc.fly { z-index: 2; opacity: 0; transform: translate(14%, -135%) rotate(7deg) scale(.68); transition: transform .6s cubic-bezier(.45, -.12, .6, .55), opacity .24s var(--ease) .38s; }
.tc.gone { visibility: hidden; }
.tc-top { display: flex; align-items: center; gap: 10px; }
.tc-top img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #f4f4f5; flex: none; }
.tc-id { flex: 1; min-width: 0; }
.tc-br { flex: none; align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(91, 141, 239, .14); color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.tc-id .l1 { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.tc-id small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--ink-mute); }
.side { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border-radius: 4px; }
.side.is-buy { color: var(--green); background: rgba(62, 207, 142, .13); }
.side.is-sell { color: var(--red); background: rgba(241, 85, 106, .13); }
.tc-r { display: flex; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid #28241f; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.tc-r svg { width: 13px; height: 13px; flex: none; color: var(--ink-mute); }
.tc-r span { overflow: hidden; text-overflow: ellipsis; }
.tc-r.ok, .tc-r.ok svg { color: var(--green); }
.tc-r.warn, .tc-r.warn svg { color: var(--amber); }
.tc-why { display: flex; align-items: center; gap: 7px; padding-top: 6px; border-top: 1px solid #28241f; font-size: 11.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; }
.tc-why svg { width: 12px; height: 12px; flex: none; }
.tc-why span { overflow: hidden; text-overflow: ellipsis; }
.tc-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.tc-f .amt { font-size: 17px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.tc-f .amt small { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-mute); letter-spacing: 0; }
.tc-f .val { padding: 7px 12px; border-radius: 999px; background: var(--amber); color: #000; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .5s var(--ease), color .5s var(--ease); }
.tc-f .val { transition: background .5s var(--ease), color .5s var(--ease), transform .15s var(--ease); }
.tc-f .val.press { transform: scale(.92); }
/* le journal : en cours en bleu, puis l'historique */
.tw-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.tw-row { flex: none; display: grid; grid-template-columns: 46px 26px minmax(0, 1fr) 70px 74px; gap: 10px; align-items: center; height: 44px; padding: 0 10px; border-radius: 11px; background: var(--elev-2); font-size: 12px; color: var(--ink-mute);
  transition: background 1.2s var(--ease), opacity .5s var(--ease), transform .6s var(--ease); }
.tw-row img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #f4f4f5; }
.tw-row .nm { min-width: 0; }
.tw-row .nm p { display: flex; align-items: center; gap: 7px; }
.tw-row .nm b { color: var(--ink); font-weight: 600; }
.tw-row .nm small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.tw-row .n { text-align: right; color: var(--ink); white-space: nowrap; }
.tw-row .st { justify-self: end; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.st.filled { color: var(--green); background: rgba(62, 207, 142, .12); }
.st.working { color: #8fb0ff; background: rgba(91, 141, 239, .16); }
.tw-row.pre { opacity: 0; transform: translateY(-12px); }
.tw-row.fl { background: #262011; }
/* le jour où tout est rouge : le feu monte du bas de l'app, le chien arrive avec sa phrase */
.tw-fire { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.tw-fire canvas { display: block; position: absolute; inset: -14px -14px -20px; width: calc(100% + 28px); height: calc(100% + 34px); filter: blur(5px); -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 92%); mask-image: linear-gradient(to top, #000 25%, transparent 92%); }
.lv-app.hot .tw-fire { opacity: 1; }
.meme { position: absolute; left: 50%; bottom: clamp(20px, 3vw, 40px); z-index: 4; display: flex; align-items: flex-end; gap: 14px; opacity: 0; transform: translate(-50%, 30px) scale(.9); transition: opacity .5s var(--ease), transform .8s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.meme img { width: clamp(96px, 9vw, 132px); height: auto; border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.meme p { display: flex; flex-direction: column; gap: 2px; margin-bottom: 46px; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: #fff; color: #000; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); white-space: nowrap; }
.meme b { font-size: clamp(17px, 1.5vw, 22px); font-weight: 700; letter-spacing: -.02em; }
.meme span { font-size: 12px; color: #555; }
.lv-app.dog .meme { opacity: 1; transform: translate(-50%, 0); }

/* la validation dans IBKR : une fenêtre claire, pour qu'on voie qu'on a quitté This is Fine, et le curseur de l'utilisateur.
   Une représentation simple de l'écran de validation, pas une copie de l'interface d'IBKR */
.ib-win { position: absolute; left: 50%; top: 50%; z-index: 5; width: min(86%, 520px); border-radius: 14px; overflow: hidden; background: #fff; color: #16181d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .65); opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(.97); transition: opacity .2s var(--ease), transform .3s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.ib-win.on { opacity: 1; transform: translate(-50%, -50%); }
.ib-bar { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; }
.ib-bar img { width: 20px; height: 20px; flex: none; border-radius: 5px; }
.ib-bar b { font-weight: 700; color: #16181d; }
.ib-b { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.ib-h { display: flex; align-items: center; gap: 12px; }
.ib-logo { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; background: #f4f4f5; }
.ib-id { flex: 1; min-width: 0; }
.ib-id .l1 { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ib-id small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: #6b7280; }
.ib-amt { flex: none; text-align: right; font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.ib-amt small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #6b7280; }
.ib-win .side.is-buy { color: #15803d; background: #dcfce7; }
.ib-rows { display: flex; flex-direction: column; }
.ib-r { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #eef0f3; font-size: 13px; color: #6b7280; }
.ib-r b { font-weight: 600; color: #16181d; }
.ib-r b::after { content: '✓'; display: inline-block; width: 0; overflow: hidden; color: #16a34a; transition: width .25s var(--ease), margin .25s var(--ease); }
.ib-r.ok b::after { width: 1em; margin-left: 6px; }
.ib-note { font-size: 12px; line-height: 1.45; color: #6b7280; }
.ib-acts { display: flex; justify-content: flex-end; gap: 8px; }
.ib-btn { padding: 8px 14px; border-radius: 8px; background: #eef0f3; color: #374151; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ib-go { background: #d81222; color: #fff; transition: transform .15s var(--ease); }
.ib-go.press { transform: scale(.94); }
.tw-cur { position: absolute; left: 0; top: 0; z-index: 6; width: 24px; height: 24px; margin: -3px 0 0 -4px; opacity: 0; pointer-events: none; transition: transform .4s cubic-bezier(.45, 0, .2, 1), opacity .2s var(--ease); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.tw-cur.on { opacity: 1; }
.tw-cur svg { display: block; width: 100%; height: 100%; fill: #fff; stroke: #000; stroke-width: 1.3; stroke-linejoin: round; transition: transform .12s var(--ease); transform-origin: 20% 15%; }
.tw-cur.down svg { transform: scale(.82); }

/* Claude, à droite */
.lv-cl { display: flex; flex-direction: column; padding: clamp(16px, 1.8vw, 22px); }
.lv-cl-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.lv-cl-h svg { width: 18px; height: 18px; flex: none; }
.lv-cl-h.busy svg { animation: lv-spin 2.4s linear infinite; }
.lv-run { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 400; color: var(--ink-mute); opacity: 0; transition: opacity .25s var(--ease); }
.lv-cl-h.busy .lv-run { opacity: 1; animation: lv-run .3s var(--ease) both; }
@keyframes lv-run { from { opacity: 0; transform: translateX(-4px); } }
.lv-run b { font-weight: 500; color: var(--ink-soft); }
.lv-run .dots i { display: inline-block; width: 3px; height: 3px; margin-left: 3px; vertical-align: 2px; border-radius: 50%; background: currentColor; animation: lv-dot 1.2s ease-in-out infinite both; }
.lv-run .dots i:first-child { margin-left: 4px; }
.lv-run .dots i:nth-child(2) { animation-delay: .2s; }
.lv-run .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes lv-dot { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.lv-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; margin: 18px 0; }
.lv-msgs > * { flex: none; animation: lv-in .4s var(--ease) both; }
@keyframes lv-in { from { opacity: 0; transform: translateY(8px); } }
.lv-u { align-self: flex-end; max-width: 92%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--elev-3); font-size: 14px; line-height: 1.45; }
.lv-a { display: flex; flex-direction: column; gap: 7px; }
.lv-step { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.35; color: var(--ink-mute); animation: lv-in .35s var(--ease) both; }
.lv-step .sp { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink-mute); border-right-color: transparent; animation: lv-spin .8s linear infinite; }
.lv-step.ok .sp { animation: none; border: 0; position: relative; }
.lv-step.ok .sp::before { content: '✓'; position: absolute; inset: -3px 0 0; font-size: 12px; color: var(--accent); }
@keyframes lv-spin { to { transform: rotate(360deg); } }
.lv-step svg { flex: none; width: 14px; height: 14px; color: var(--ink-soft); }
.lv-doc { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 4px 21px; padding: 10px 12px; border-radius: 12px; background: var(--elev-3); animation: lv-in .35s var(--ease) both; }
.lv-doc-t { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-size: 13px; font-weight: 600; }
.lv-doc-t svg { width: 14px; height: 14px; flex: none; color: var(--ink-soft); }
.lv-doc-r { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.4; }
.lv-doc-r span { flex: none; width: 92px; color: var(--ink-mute); }
.lv-doc-r b { min-width: 0; font-weight: 500; color: var(--ink-soft); }
.lv-txt { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.lv-in { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--elev-2); box-shadow: inset 0 0 0 1px #2a2724; transition: box-shadow .2s var(--ease); }
.lv-in.has { box-shadow: inset 0 0 0 1px #48423b; }
.lv-in-t { flex: 1; min-width: 0; min-height: 28px; padding-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.lv-in-t .ph { color: var(--ink-mute); }
.lv-in-t .caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--ink); }
.lv-send { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--elev-3); color: var(--ink-mute); font-size: 14px; font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.lv-in.has .lv-send { background: var(--accent); color: #000; }
.lv-in.go .lv-send { transform: scale(.88); }
@media (max-width: 1100px) {
  .live { grid-template-columns: 1fr; height: auto; }
  .lv-app { height: 580px; }
  .lv-cl { height: 400px; }
}

/* ---------- Sections ---------- */
.sec { padding: clamp(110px, 12vw, 190px) var(--m) 0; }
.sec-h { align-items: start; margin-bottom: clamp(36px, 4.4vw, 64px); }
.sec-t { grid-column: 1 / span 8; font-size: clamp(42px, 6.2vw, 108px); line-height: .92; letter-spacing: -.05em; font-weight: 600; }
.sec-a { grid-column: 9 / span 4; justify-self: end; text-align: right; color: var(--ink-soft); font-size: 17px; line-height: 1.4; padding-top: 10px; max-width: 30ch; }

/* Trade with Claude, runs on your computer : le bloc animé (plus haut), puis le panneau « Your computer » */
.p { grid-column: 1 / -1; background: var(--elev); border-radius: 20px; padding: clamp(22px, 2.8vw, 44px); }
.p .mark { font-size: clamp(32px, 3.2vw, 52px); gap: 16px; }
.p .mark svg { width: clamp(36px, 3.4vw, 54px); height: clamp(36px, 3.4vw, 54px); }
.loc-l > p { color: var(--ink-soft); font-size: 18px; line-height: 1.5; max-width: 46ch; }
.loc-l p b { color: var(--ink); font-weight: 600; }
.loc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); }
.loc { margin-top: var(--gut); align-items: stretch; row-gap: 28px; }
.sec .live { margin-top: 0; }
.loc-l { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.loc-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* les trois étapes, rejouées dans le terminal quand on arrive dessus */
.ins { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ins li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.ins li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 36px; bottom: -12px; width: 2px; border-radius: 1px; background: var(--elev-3); }
.ins i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--elev-3); font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-soft); transition: background .3s var(--ease), color .3s var(--ease); }
.ins li.on i, .ins li.ok i { background: var(--accent); color: var(--fink); }
.ins li.ok i { font-size: 0; }
.ins li.ok i::before { content: '✓'; font-size: 14px; }
.ins h3 { font-size: 18px; line-height: 30px; letter-spacing: -.015em; font-weight: 600; }
.ins p { margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-mute); }
.loc code, .ins code, .inc code, .legal code { font-family: var(--mono); font-size: .9em; color: var(--ink-soft); }
.loc-l > p.sm { font-size: 14px; color: var(--ink-mute); }
.term { flex: 1; border-radius: 14px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--elev-3); }
.term-h { display: flex; align-items: center; gap: 6px; padding: 10px 14px; box-shadow: inset 0 -1px 0 var(--elev-3); font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.term-h i { width: 9px; height: 9px; border-radius: 50%; background: var(--elev-3); }
.term-h span { margin-left: 6px; }
.term-b { padding: 14px 18px 16px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink-mute); }
.term-b p { overflow-wrap: anywhere; }
.term-b .t-c, .term-b .t-a, .term-b .t-d, .term-b .t-s { color: var(--ink); }
.term-b .t-c:not(:first-child), .term-b .t-a, .term-b .t-d, .term-b .t-s { margin-top: 8px; }
.t-c::before { content: '$ '; color: var(--accent); }
.t-d::before { content: '› '; color: var(--accent); }
.t-s::before { content: '↓ '; color: var(--accent); }
.t-a::before { content: '> '; color: var(--claude); }
.term-b .t-r { color: var(--green); }
.term.armed .term-b p { visibility: hidden; }
.term.armed .term-b p.in { visibility: visible; }
.t-rest { visibility: hidden; }
.t-caret { display: none; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink-soft); }
.typing .t-caret { display: inline-block; }
.store { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.store > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; border-radius: 14px; background: var(--elev-2); }
.store p { font-size: 13.5px; line-height: 1.45; color: var(--ink-mute); }
.store .store-h { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.store-h svg { width: 19px; height: 19px; flex: none; }
.store-h span { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--elev-3); font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); white-space: nowrap; }
.safe { grid-column: 1 / -1; margin: 0; padding: 22px 0 0; box-shadow: inset 0 1px 0 var(--elev-3); list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.safe li { display: flex; align-items: flex-start; gap: 10px; }
.safe svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.safe p { font-size: 14px; line-height: 1.4; color: var(--ink-mute); }
.safe b { font-weight: 600; color: var(--ink); }

/* Qui écrit quoi : une ligne par écran, puis les services que l'app et Claude appellent */
.src { display: flex; flex-direction: column; gap: 32px; }
.who { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.who thead th { padding: 0 24px 12px 0; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.who tbody th, .who td { padding: 14px 24px 14px 0; text-align: left; vertical-align: top; box-shadow: inset 0 1px 0 var(--elev-3); }
.who tbody th { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); white-space: nowrap; }
.who td { color: var(--ink-soft); }
.who th:last-child, .who td:last-child { padding-right: 0; }
.apis { display: grid; grid-template-columns: 1.1fr 2.1fr .9fr; gap: 28px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--elev-3); }
.apis h3 { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.apis ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px 24px; }
.apis div:nth-child(2) ul { grid-template-columns: repeat(2, max-content); }
.apis li { display: flex; align-items: center; gap: 11px; }
.apis img, .apis svg { flex: none; width: 28px; height: 28px; border-radius: 7px; }
.apis img.wide { width: auto; height: 24px; border-radius: 0; }
.apis p { font-size: 13px; line-height: 1.3; color: var(--ink-mute); white-space: nowrap; }
.apis b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.src-n { max-width: 86ch; font-size: 15px; line-height: 1.5; color: var(--ink-mute); }
.src-n b { font-weight: 600; color: var(--ink); }
.src-n a, .buy-n a, .foot .f3 a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Les conditions de vente et d'utilisation : une colonne de lecture, les tableaux de la page dans leur largeur */
.legal { max-width: 860px; margin: 0 auto; padding: clamp(110px, 12vw, 160px) var(--m) clamp(60px, 8vw, 110px); color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.lg-k { font-size: 14px; color: var(--ink-mute); }
.legal h1 { margin: 10px 0 clamp(28px, 4vw, 44px); font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -.05em; font-weight: 600; color: var(--ink); }
.legal section { margin-top: clamp(36px, 4.4vw, 56px); scroll-margin-top: 90px; }
.legal h2 { margin-bottom: 12px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; color: var(--ink); }
.legal h3 { margin: 26px 0 8px; font-size: 18px; letter-spacing: -.015em; font-weight: 600; color: var(--ink); }
.legal p, .legal ul, .legal ol, .legal dl { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--ink-mute); }
.legal b { font-weight: 600; color: var(--ink); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0 0 12px; }
.lg-sum { padding: clamp(20px, 2.6vw, 30px); border-radius: 20px; background: var(--flame); color: var(--fink); }
.lg-sum h2 { color: var(--fink); }
.lg-sum li::marker { color: var(--fink); }
.lg-sum ul { margin-bottom: 14px; }
.lg-sum p { margin: 0; font-size: 14px; color: var(--fink-soft); }
.lg-toc { margin-top: 32px; padding: 20px 24px; border-radius: 14px; background: var(--elev); }
.lg-toc ol { margin: 0; columns: 2; column-gap: 36px; font-size: 14.5px; }
.lg-toc li { margin-bottom: 4px; break-inside: avoid; }
.lg-toc a { color: var(--ink-soft); text-decoration: none; }
.lg-toc a:hover { color: var(--ink); text-decoration: underline; }
.lg-table { margin: 16px 0 18px; }
.legal .who { font-size: 14.5px; }
.legal .who tbody th { font-size: 15px; white-space: normal; }
.legal .who td { padding-right: 18px; }

/* Le parcours d'achat simulé (?sim) : la fenêtre du héro, le paiement dedans, puis le premier écran de l'app */
.cko-lock { overflow: hidden; }
.cko { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s var(--ease); }
.cko.on { opacity: 1; }
.cko-win { width: min(1120px, 100%); transform: translateY(14px) scale(.98); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.cko.on .cko-win { transform: none; }
.cko-x { position: absolute; right: 8px; top: 5px; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-mute); cursor: pointer; }
.cko-x:hover { background: #2d2925; color: var(--ink); }
.cko-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cko-vp { position: relative; height: min(78vh, 680px); overflow: hidden; container-type: inline-size; --u: calc(100cqw / 1440); background: #000; }
.cko-bg { position: absolute; inset: 0; background: url(assets/app/first-run.webp) 0 0 / cover no-repeat; filter: blur(12px) brightness(.38); transform: scale(1.05); transition: filter 1.1s var(--ease), transform 1.1s var(--ease); }
.cko.cko-ok .cko-bg { filter: none; transform: none; }
.cko-c { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; overflow: hidden; pointer-events: none; }
.cko-c > * { pointer-events: auto; }
.cko-pay { width: min(420px, 100%); gap: 16px; padding: 22px 24px 20px; background: var(--elev); box-shadow: inset 0 0 0 1px #2a2622, 0 24px 60px rgba(0, 0, 0, .55); }
.cko-pay.gone { display: none; }
.cko-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(244, 166, 60, .14); color: var(--amber); font-size: 11.5px; font-weight: 600; }
.cko-item { display: flex; align-items: center; gap: 12px; }
.cko-item img { width: 44px; height: 44px; border-radius: 10px; }
.cko-item p { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-mute); }
.cko-item b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.cko-item span { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cko-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cko-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 10px; background: var(--elev-2); font-size: 14px; }
.cko-rows dt { color: var(--ink-mute); }
.cko-rows dd { margin: 0; color: var(--ink-soft); font-family: var(--mono); font-size: 13px; }
.cko-go { padding: 13px 16px; border: 0; border-radius: 12px; background: var(--flame); color: var(--fink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.cko-n { font-size: 12px; line-height: 1.45; color: var(--ink-mute); }
.cko-n a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cko-wel { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 26px; width: min(780px, 100%); max-height: 100%; overflow: auto; padding: 30px 34px; border-radius: 22px; background: var(--flame); color: var(--fink); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transform: translateY(20px) scale(.95); transform-origin: 100% 100%; transition: opacity .3s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1), visibility 0s .3s; }
.cko-wel.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cko-wel.on.min { opacity: 0; visibility: hidden; transform: scale(.3); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.cko-wel > img { width: 120px; height: 120px; border-radius: 22px; box-shadow: 0 12px 30px rgba(28, 13, 0, .25); }
.cko-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fink-soft); }
.cko-wel h3 { margin-top: 6px; font-size: clamp(24px, 3cqw, 34px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.cko-s { margin-top: 8px; font-size: 14.5px; line-height: 1.45; }
.cko-p { margin-top: 14px; padding: 13px 15px; border-radius: 12px; background: rgba(28, 13, 0, .88); color: var(--accent); font-size: 13.5px; line-height: 1.5; }
.cko-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cko-b { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid transparent; border-radius: 999px; background: var(--fink); color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cko-b svg { width: 15px; height: 15px; }
.cko-b.ghost { background: none; border-color: rgba(28, 13, 0, .3); color: var(--fink); }
.cko-end { position: absolute; left: 50%; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 14px; width: min(760px, calc(100% - 24px)); padding: 12px 14px; border-radius: 18px; background: var(--flame); color: var(--fink); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translate(-50%, 18px); transition: opacity .3s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.cko-end.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cko-end img { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.cko-end p { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--fink-soft); }
.cko-end b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--fink); }
.cko-end .cko-a { flex: none; margin-top: 0; }

/* Personal software : la bande en flamme, le positionnement du produit */
.ps { position: relative; overflow: hidden; margin-top: clamp(110px, 12vw, 190px); background: var(--flame); color: var(--fink); padding: clamp(64px, 8vw, 128px) var(--m) clamp(60px, 7vw, 112px); }
.ps ::selection { background: var(--fink); color: var(--accent); }
.ps-k { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.01em; margin-bottom: clamp(20px, 2.4vw, 34px); }
.ps-k img { width: 1.9em; height: 1.9em; border-radius: .4em; }
.ps-t { grid-column: 1 / -1; font-size: clamp(50px, 8.4vw, 160px); line-height: .9; letter-spacing: -.055em; font-weight: 600; margin-left: -.04em; }
.ps-l { grid-column: 1 / span 8; margin-top: clamp(26px, 3vw, 44px); font-size: clamp(20px, 2vw, 30px); line-height: 1.3; letter-spacing: -.015em; max-width: 38ch; }
/* le phare, détouré : sa lumière passe derrière le titre, son rocher se pose juste au-dessus des colonnes */
.ps-h { position: relative; }
.ps-art { position: absolute; right: calc(-1 * var(--m) - 3.4vw); bottom: calc(-1 * clamp(40px, 5.6vw, 96px)); width: min(50vw, 940px); height: auto; pointer-events: none; }
.ps-k, .ps-t, .ps-l, .ps-c { position: relative; z-index: 1; }
.ps-c { margin-top: clamp(56px, 6.4vw, 104px); row-gap: 40px; }
.ps-c > div { grid-column: span 4; }
.ps-c h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; margin-bottom: 14px; }
.ps-c p { font-size: 17px; line-height: 1.5; color: var(--fink-soft); max-width: 40ch; }


/* Prix : le titre vit dans le panneau, un seul bouton d'achat qui porte le prix */
.price { background: var(--elev); border-radius: 24px; padding: clamp(26px, 4vw, 64px); align-items: end; }
.price-l { grid-column: span 6; }
.price-t { font-size: clamp(40px, 4.6vw, 84px); line-height: .94; letter-spacing: -.05em; font-weight: 600; }
.price-s { margin-top: 20px; color: var(--ink-soft); font-size: 18px; line-height: 1.45; max-width: 34ch; }
.price-r { grid-column: 8 / span 5; padding-bottom: 6px; }
.inc { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.inc li { font-size: 17px; line-height: 1.4; color: var(--ink-soft); padding-left: 26px; position: relative; }
.inc li::before { content: '+'; position: absolute; left: 0; top: -1px; color: var(--accent); font-weight: 700; }
.inc li b { color: var(--ink); font-weight: 600; }
.know { margin-top: 28px; }
.know li::before { content: '!'; }
.buy-w { margin-top: clamp(34px, 3.4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.buy { position: relative; display: flex; align-items: center; justify-content: center; min-width: min(100%, 340px); padding: 18px 26px; border-radius: 999px; background: var(--flame); color: var(--fink); font-size: 18px; font-weight: 700; transition: filter .2s var(--ease); }
.buy:hover { filter: brightness(1.08) saturate(1.1); }
.buy-n { width: min(100%, 340px); font-size: 14px; color: var(--ink-mute); text-align: center; text-wrap: balance; }
.buy.sm { min-width: 0; padding: 10px 20px; font-size: 15px; }
/* Bouton Join the beta (buy.js) : l'adresse copiée, « Email copied » à la place du libellé, une bulle dessous */
.buy > span:not(.buy-ok) { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.buy-ok { position: absolute; inset: 0; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none; }
.buy-ok svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.buy.copied > span:not(.buy-ok) { opacity: 0; transform: translateY(-8px); }
.buy.copied .buy-ok { opacity: 1; transform: none; }
.buy.copied .buy-ok path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: buy-draw .45s .12s var(--ease) forwards; }
@keyframes buy-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-in { from { opacity: 0; transform: translateY(-12px) scale(.9) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes bp-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bp-time { to { transform: scaleX(0); } }

/* Fin : le mème, en entier. Le chien, la phrase, et le feu qui monte derrière. */
.end { position: relative; overflow: hidden; padding: clamp(120px, 13vw, 200px) var(--m) clamp(150px, 16vw, 260px); }
.end .grid { position: relative; z-index: 2; align-items: end; }
.end-t { grid-column: 1 / -1; font-size: clamp(56px, 9vw, 168px); line-height: .88; letter-spacing: -.055em; font-weight: 600; }
.end-t span { white-space: nowrap; }
.end-s { grid-column: 1 / span 8; margin-top: 10px; color: var(--ink); font-weight: 600; font-size: clamp(17px, 1.4vw, 21px); }
.end-fire { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 1; pointer-events: none; }
.end-fire canvas { display: block; position: absolute; inset: -16px -16px -24px; width: calc(100% + 32px); height: calc(100% + 40px); filter: blur(5px); opacity: .9; -webkit-mask-image: linear-gradient(to top, #000 25%, transparent); mask-image: linear-gradient(to top, #000 25%, transparent); }

/* Pied */
.foot { padding: 28px var(--m) 36px; background: var(--elev); color: var(--ink-mute); font-size: 14px; line-height: 1.6; }
.foot .f1 { grid-column: span 5; } .foot .f2 { grid-column: span 4; } .foot .f3 { grid-column: span 3; text-align: right; padding-top: 38px; }
.foot a:hover { color: var(--ink); }
.f-logo, .f-marks { display: flex; align-items: center; height: 26px; margin-bottom: 12px; }
.f-logo { width: fit-content; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.f-logo img { width: 26px; height: 26px; }
.f-marks { gap: 14px; color: var(--ink-soft); }
.f-marks svg { width: 22px; height: 22px; }

/* Fenêtre de pop.js (bouton Join the beta) : elle entre avec un rebond, le titre lettre à lettre, quelques étincelles */
.ty { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease); }
.ty.on { opacity: 1; }
.ty-card { position: relative; width: min(420px, 100%); padding: 32px 30px 28px; border-radius: 22px; background: #181614; box-shadow: 0 0 0 1px #2c2824, 0 30px 80px rgba(0, 0, 0, .6); font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.ty-card p { margin: 0; }
.ty.on .ty-card { animation: bp-in .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.ty-h { margin-bottom: 16px !important; font-size: clamp(40px, 6vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.ty-h .wd { display: inline-block; white-space: nowrap; }
.ty-h .l { display: inline-block; }
.ty.on .ty-h .l { animation: ty-l .5s calc(.15s + var(--i) * .05s) cubic-bezier(.34, 1.56, .64, 1) both; }
.ty-c { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.ty-c svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ty-b { margin-top: 6px !important; color: var(--accent); }
.ty-s { margin-top: 16px !important; color: var(--ink-mute); }
.ty.on .ty-c { animation: bp-up .35s .55s var(--ease) both; }
.ty.on .ty-c path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: buy-draw .45s .7s var(--ease) forwards; }
.ty-h.long { font-size: clamp(32px, 4.6vw, 44px); }
.ty-m { font-weight: 600; color: var(--ink); }
.ty-mail { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid #3a3530; border-radius: 7px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; user-select: all; }
.ty-a { display: inline-block; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #000; font-weight: 600; }
.ty.on .ty-ln { animation: bp-up .35s calc(.78s + var(--k) * .2s) var(--ease) both; }
.ty-t { position: absolute; left: 22px; right: 22px; bottom: 10px; height: 3px; border-radius: 3px; background: var(--flame); transform-origin: left; }
.ty.on .ty-t { animation: bp-time 8s linear forwards; }
.ty-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #26231f; color: var(--ink-soft); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.ty-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ty-x:hover { background: var(--accent); color: #000; }
.ty-cf { position: absolute; top: 46px; left: 60px; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); opacity: 0; pointer-events: none; }
.ty.on .ty-cf { animation: ty-cf .9s calc(.4s + var(--d)) cubic-bezier(.2, .7, .3, 1) forwards; }
.ty.at { inset: auto; display: block; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ty.at .ty-card { width: 100%; padding: 20px 20px 26px; border-radius: 18px; font-size: 15px; transform-origin: top center; }
.ty.at.on .ty-card { animation-duration: .4s; }
.ty.at .ty-h, .ty.at .ty-h.long { margin-bottom: 10px !important; padding-right: 30px; font-size: 30px; letter-spacing: -.03em; }
.ty.at.on .ty-h .l { animation-duration: .35s; animation-delay: calc(.05s + var(--i) * .022s); }
.ty.at .ty-x { top: 9px; right: 9px; width: 28px; height: 28px; }
.ty.at .ty-x svg { width: 12px; height: 12px; }
.ty.at .ty-c svg { width: 18px; height: 18px; }
.ty.at .ty-cf { top: 30px; left: 40px; width: 6px; height: 6px; }
.ty.at.on .ty-cf { animation-duration: .7s; animation-delay: calc(.15s + var(--d)); }
.ty.at.on .ty-c { animation-delay: .28s; }
.ty.at.on .ty-c path { animation-delay: .36s; }
.ty.at.on .ty-ln { animation-delay: calc(.4s + var(--k) * .12s); }
.ty.at .ty-s { margin-top: 10px !important; }
.ty.at .ty-t { left: 18px; right: 18px; bottom: 10px; }
@keyframes ty-l { from { opacity: 0; transform: translateY(24px) rotate(8deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ty-cf { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .ty.on .ty-card, .ty.on .ty-h .l, .ty.on .ty-c, .ty.on .ty-ln { animation: none; } .ty-cf { display: none; } }


/* ---------- Petits écrans ---------- */
@media (max-width: 1100px) {
  .lead, .lead-w, .hero-side { grid-column: 1 / -1; }
  .hero-side { align-items: flex-start; text-align: left; }
  .ready { justify-content: flex-start; }
  .sec-t { grid-column: 1 / -1; }
  .sec-a { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .ps-l, .ps-c > div { grid-column: 1 / -1; }
  .ps-art { position: static; grid-column: 1 / -1; justify-self: end; width: min(100%, 620px); margin-right: calc(-1 * var(--m)); }
  .loc { grid-template-columns: 1fr; }
  .apis { grid-template-columns: 1fr; gap: 22px; }
  .price-l, .price-r { grid-column: 1 / -1; }
  .price-r { margin-top: 36px; }
  .end-t, .end-s { grid-column: 1 / -1; }
  .foot .f1, .foot .f2, .foot .f3 { grid-column: 1 / -1; text-align: left; }
  .foot .f3 { padding-top: 0; }
}
@media (max-width: 760px) { .title { font-size: 14vw; } }
@media (max-width: 640px) {
  .bar { gap: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .ready { flex-wrap: wrap; gap: 10px 14px; }
  .ready .mark { font-size: 18px; gap: 8px; }
  .ready .mark svg, .ready .mark img { width: 24px; height: 24px; }
  .bar .buy { padding: 9px 14px; font-size: 14px; }
  .lv-app { height: 620px; }
  .lv-cl { height: 480px; }
  .tw-how { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .tw-how-t { display: none; }
  .tw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-steps li { padding: 7px 8px; font-size: 11px; }
  .tw-rail { grid-template-columns: 1fr; }
  .tw-rail .tc ~ .tc, .tw-rail .tc.proc:not(:last-child) { display: none; }
  .tw-rail .tc.proc + .tc { display: flex; }
  .tw-br { display: none; }
  .tw-row { grid-template-columns: 26px minmax(0, 1fr) 70px; }
  .tw-row > :first-child, .tw-row > .n { display: none; }
  .meme { left: 16px; transform: translate(0, 30px) scale(.9); }
  .lv-app.dog .meme { transform: none; }
  .meme p { margin-bottom: 30px; }
  .meme span { white-space: normal; max-width: 150px; }
  .store { grid-template-columns: 1fr; }
  .apis div:nth-child(2) ul { grid-template-columns: 1fr; }
  .cko { padding: 8px; }
  .cko-vp { height: calc(100dvh - 62px); }
  .cko-wel { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .cko-wel > img { width: 72px; height: 72px; border-radius: 16px; }
  .cko-end { flex-wrap: wrap; }
  .lg-toc ol { columns: 1; }
  .who thead { display: none; }
  .who, .who tbody, .who tr { display: block; }
  .who tr { padding: 14px 0; box-shadow: inset 0 1px 0 var(--elev-3); }
  .who tbody th, .who td { display: block; padding: 0; box-shadow: none; }
  .who tbody th { margin-bottom: 8px; }
  .who td { margin-top: 8px; }
  .who td::before { content: attr(data-k); display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
  .term-b { font-size: 12.5px; padding: 12px 14px 14px; }
}
@media (max-width: 480px) {
  .nav { display: none; }
  .bar .buy { margin-left: auto; }
  .bar .buy-ok .t { display: none; }
}
